日志控制
This commit is contained in:
@@ -17,6 +17,8 @@ import proto from "db://assets/Scripts/proto/proto.pb.js";
|
||||
import { ConfigId, ConfigManager } from "../../manager/ConfigManager";
|
||||
import { PurchaseConfig } from "../../config/PurchaseConfig";
|
||||
import LanguageUtils from "../../../Main/Common/LanguageUtils";
|
||||
import { logger } from "db://assets/Scripts/Main/Common/Logger";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass("PayToTalkSubpanel")
|
||||
@@ -76,7 +78,7 @@ export class PayToTalkSubpanel extends Component {
|
||||
//ChatController.Instance.resetChatCount();
|
||||
const shopData = DataManager.I.getDataById<ShopData>(DataId.Shop);
|
||||
const chatIds = shopData.getChatIds();
|
||||
console.log("聊天商品Id: ", chatIds);
|
||||
logger.log("聊天商品Id: ", chatIds);
|
||||
if (chatIds.length > 0) {
|
||||
this.reqBuyGood(chatIds[0], this.girlId);
|
||||
}
|
||||
@@ -84,7 +86,7 @@ export class PayToTalkSubpanel extends Component {
|
||||
|
||||
onClick_BuyVip() {
|
||||
//购买VIP
|
||||
console.log("购买vip");
|
||||
logger.log("购买vip");
|
||||
const shopData = DataManager.I.getDataById<ShopData>(DataId.Shop);
|
||||
const memberId = shopData.get7DayMemberId();
|
||||
this.reqBuyGood(memberId, this.girlId);
|
||||
@@ -98,7 +100,7 @@ export class PayToTalkSubpanel extends Component {
|
||||
girlId: girlId,
|
||||
};
|
||||
let res = await ShopService.I.reqBuyGood(reqData);
|
||||
console.log("请求使用余额购买商品的响应数据:", res);
|
||||
logger.log("请求使用余额购买商品的响应数据:", res);
|
||||
if (res && res.code === proto.cs.EnmRetCode.SUCCESS) {
|
||||
const resData = res.data;
|
||||
// 保存数据
|
||||
|
||||
Reference in New Issue
Block a user