修改:协议和配置表
This commit is contained in:
@@ -15,29 +15,29 @@ export enum Category {
|
||||
/**
|
||||
* 熟女
|
||||
*/
|
||||
shunv = 0,
|
||||
mature = 0,
|
||||
/**
|
||||
* 20s
|
||||
* 18s
|
||||
*/
|
||||
twenty = 1,
|
||||
eighteen = 1,
|
||||
/**
|
||||
* 辣妈
|
||||
* qinfan
|
||||
*/
|
||||
lama = 2,
|
||||
qinfan = 2,
|
||||
/**
|
||||
* 捆绑
|
||||
* luanlun
|
||||
*/
|
||||
kunbang = 3,
|
||||
luanlun = 3,
|
||||
/**
|
||||
* 公众野战
|
||||
* bdsm
|
||||
*/
|
||||
publicfight = 4,
|
||||
bdsm = 4,
|
||||
/**
|
||||
* 卡通
|
||||
* loli
|
||||
*/
|
||||
cartoon = 5,
|
||||
loli = 5,
|
||||
/**
|
||||
* 未完成
|
||||
* upcomming
|
||||
*/
|
||||
upcomming = 6,
|
||||
}
|
||||
@@ -92,7 +92,7 @@ export class AiCharacters {
|
||||
*/
|
||||
readonly basePrompt: string
|
||||
/**
|
||||
* 额外信息prompt(聊天&评分都需要)
|
||||
* 额外信息prompt(聊天需要)
|
||||
*/
|
||||
readonly additionPrompt: string
|
||||
|
||||
@@ -199,11 +199,11 @@ export class GirlsDetail {
|
||||
*/
|
||||
readonly detailDesc: string
|
||||
/**
|
||||
* 类型
|
||||
* 资源ID
|
||||
*/
|
||||
readonly commercialImages: purchase.CommercialImage[]
|
||||
/**
|
||||
* 视频资源列表
|
||||
* 资源ID
|
||||
*/
|
||||
readonly commercialVideos: purchase.CommercialVideo[]
|
||||
|
||||
@@ -229,10 +229,11 @@ export class GlobalConfig {
|
||||
this.MaxTokens = _buf_.readInt()
|
||||
this.Timeout = _buf_.readInt()
|
||||
this.FreeChatTimes = _buf_.readInt()
|
||||
this.OnceChatAddScore = _buf_.readInt()
|
||||
this.ScoreExchangeStarLevel = _buf_.readInt()
|
||||
this.GameName = _buf_.readString()
|
||||
this.EmotionRating = _buf_.readString()
|
||||
this.girlBasePrompt = _buf_.readString()
|
||||
this.dailyRecommendGirl = _buf_.readInt()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -260,6 +261,14 @@ export class GlobalConfig {
|
||||
* 单个角色免费聊天次数
|
||||
*/
|
||||
readonly FreeChatTimes: number
|
||||
/**
|
||||
* 单次对话增长好感度
|
||||
*/
|
||||
readonly OnceChatAddScore: number
|
||||
/**
|
||||
* 好感度等级兑换比例
|
||||
*/
|
||||
readonly ScoreExchangeStarLevel: number
|
||||
/**
|
||||
* 游戏名
|
||||
*/
|
||||
@@ -272,10 +281,6 @@ export class GlobalConfig {
|
||||
* ai机器人基础规则
|
||||
*/
|
||||
readonly girlBasePrompt: string
|
||||
/**
|
||||
* 每日推荐技师ID,参见:girls.id
|
||||
*/
|
||||
readonly dailyRecommendGirl: number
|
||||
|
||||
resolve(tables:Tables) {
|
||||
|
||||
@@ -289,6 +294,7 @@ export class GlobalConfig {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -343,15 +349,25 @@ export namespace purchase {
|
||||
export class CommercialImage {
|
||||
|
||||
constructor(_buf_: ByteBuf) {
|
||||
this.id = _buf_.readInt()
|
||||
this.imageType = _buf_.readInt()
|
||||
this.imagePrice = _buf_.readFloat()
|
||||
this.unlockCounts = _buf_.readInt()
|
||||
this.imagePrice = _buf_.readInt()
|
||||
this.path = _buf_.readString()
|
||||
}
|
||||
|
||||
/**
|
||||
* 图片资源ID
|
||||
*/
|
||||
readonly id: number
|
||||
/**
|
||||
* 1=详情页展示<br/>2=聊天触发
|
||||
*/
|
||||
readonly imageType: number
|
||||
/**
|
||||
* 聊天触发次数
|
||||
*/
|
||||
readonly unlockCounts: number
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
@@ -365,6 +381,8 @@ export class CommercialImage {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -375,11 +393,16 @@ export namespace purchase {
|
||||
export class CommercialVideo {
|
||||
|
||||
constructor(_buf_: ByteBuf) {
|
||||
this.id = _buf_.readInt()
|
||||
this.path = _buf_.readString()
|
||||
this.emotion = _buf_.readInt()
|
||||
this.videoPrice = _buf_.readFloat()
|
||||
this.videoPrice = _buf_.readInt()
|
||||
}
|
||||
|
||||
/**
|
||||
* 视频资源ID
|
||||
*/
|
||||
readonly id: number
|
||||
/**
|
||||
* 资源路径
|
||||
*/
|
||||
@@ -397,6 +420,7 @@ export class CommercialVideo {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -409,8 +433,8 @@ export class PurchaseConfig {
|
||||
constructor(_buf_: ByteBuf) {
|
||||
this.id = _buf_.readInt()
|
||||
this.name = _buf_.readString()
|
||||
this.desc = _buf_.readString()
|
||||
this.count = _buf_.readInt()
|
||||
this.price = _buf_.readInt()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -424,11 +448,11 @@ export class PurchaseConfig {
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
readonly desc: string
|
||||
/**
|
||||
* 计费点ID
|
||||
*/
|
||||
readonly count: number
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
readonly price: number
|
||||
|
||||
resolve(tables:Tables) {
|
||||
|
||||
@@ -762,6 +786,14 @@ export class TbGlobalConfig {
|
||||
* 单个角色免费聊天次数
|
||||
*/
|
||||
get FreeChatTimes(): number { return this._data.FreeChatTimes; }
|
||||
/**
|
||||
* 单次对话增长好感度
|
||||
*/
|
||||
get OnceChatAddScore(): number { return this._data.OnceChatAddScore; }
|
||||
/**
|
||||
* 好感度等级兑换比例
|
||||
*/
|
||||
get ScoreExchangeStarLevel(): number { return this._data.ScoreExchangeStarLevel; }
|
||||
/**
|
||||
* 游戏名
|
||||
*/
|
||||
@@ -774,10 +806,6 @@ export class TbGlobalConfig {
|
||||
* ai机器人基础规则
|
||||
*/
|
||||
get girlBasePrompt(): string { return this._data.girlBasePrompt; }
|
||||
/**
|
||||
* 每日推荐技师ID,参见:girls.id
|
||||
*/
|
||||
get dailyRecommendGirl(): number { return this._data.dailyRecommendGirl; }
|
||||
|
||||
resolve(tables:Tables) {
|
||||
this._data.resolve(tables)
|
||||
|
||||
Reference in New Issue
Block a user