From b3a6fa280d082e7531d4b91db0a90fe91d756245 Mon Sep 17 00:00:00 2001 From: chen wei bo <1025839511@qq.com> Date: Sat, 20 Sep 2025 14:15:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AD=A3=E5=BC=8F?= =?UTF-8?q?=E6=9C=8D=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Scripts/chat18x/config/env/prod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/Scripts/chat18x/config/env/prod.ts b/assets/Scripts/chat18x/config/env/prod.ts index 8542373f..237a559e 100644 --- a/assets/Scripts/chat18x/config/env/prod.ts +++ b/assets/Scripts/chat18x/config/env/prod.ts @@ -5,7 +5,7 @@ import { AppConfigShape, Env } from "./env"; export const prodConfig: AppConfigShape = { env: Env.Prod, endpoints: { - httpBase: "http://120.25.215.205:20600/", + httpBase: "https://xchat188.com/", socketBase: "wss://www.confessioncontract.com/game/ai/response/", cdn: { bgm: "https://hxzgame.vip.hnhxzkj.com/lzx/XiangQin/BGM/", From 57be5b461d54e4fe48bf9a375e883131722539a7 Mon Sep 17 00:00:00 2001 From: chen wei bo <1025839511@qq.com> Date: Sat, 20 Sep 2025 15:52:38 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=89=80=E6=9C=89?= =?UTF-8?q?=E5=B7=B2=E7=BB=8F=E8=A7=A3=E9=94=81=E6=8A=80=E5=B8=88=E7=9A=84?= =?UTF-8?q?=20id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Scripts/chat18x/data/GirlData.ts | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/assets/Scripts/chat18x/data/GirlData.ts b/assets/Scripts/chat18x/data/GirlData.ts index a7a36cd9..28ff6fe7 100644 --- a/assets/Scripts/chat18x/data/GirlData.ts +++ b/assets/Scripts/chat18x/data/GirlData.ts @@ -9,6 +9,7 @@ import { GirlChatData } from "./GirlChatData"; import { GirlFavorabilityData } from "./GirlFavorabilityData"; import { DataId } from "./DataManager"; import proto from "db://assets/Scripts/proto/proto.pb.js"; +import { PriceType } from "../../schema/schema"; // 分类的数据结构 interface CategoryBucket { @@ -218,6 +219,18 @@ export class GirlData extends BaseData { return oneData.getGrilPriceType(); } + /** 技师是否免费类型 */ + public isGirlFreeType(categoryId: string, girlId: number): boolean { + let priceType = this.getGrilPriceType(categoryId, girlId); + return priceType == PriceType.free; + } + + /** 技师是否付费类型 */ + public isGirlPayType(categoryId: string, girlId: number): boolean { + let priceType = this.getGrilPriceType(categoryId, girlId); + return priceType == PriceType.pay; + } + /** 获取原来的价格,除100 */ public getGrilOriginalPrice(categoryId: string, girlId: number): number { let oneData = this.getGrilBrief(categoryId, girlId); @@ -755,6 +768,22 @@ export class GirlData extends BaseData { return oneData.getUnlockedVideoIds(); } + /** 获取所有已经解锁技师的 id,不区分技师的付费类型 */ + public getAllReleaseGirlIds(): number[] { + const result: number[] = []; + const cats = this.ensureCategories(); + + for (const [categoryId, bucket] of cats.entries()) { + for (const girlId of bucket.girlIds) { + if (this.getIsRelease(categoryId, girlId)) { + result.push(girlId); + } + } + } + // 返回结果 + return result; + } + /** --------------------------------------------------------- 技师的聊天数据 --------------------------------------------------------- */ // 解析技师聊天数据,一个