日志控制
This commit is contained in:
@@ -26,6 +26,8 @@ import { ViewManager } from "../../../Main/Manager/ViewManager";
|
||||
import { TipsPanel } from "./TipsPanel";
|
||||
import ResManager from "../../../Main/Manager/ResManager";
|
||||
import { InnerMsgCode } from "../../../Main/Config/InnerMsgCode";
|
||||
import { logger } from "db://assets/Scripts/Main/Common/Logger";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass("GirlListPopupPanel")
|
||||
@@ -79,7 +81,7 @@ export class GirlListPopupPanel extends li_BaseView {
|
||||
|
||||
const path = girlData.getGrilAvatar(this.category.toString(), this.girlId);
|
||||
this.refreshCoinNum();
|
||||
//console.log(path);
|
||||
//logger.log(path);
|
||||
// 加载远程资源
|
||||
const envData = DataManager.I.getDataById<EnvData>(DataId.Env);
|
||||
let newPath = envData.cdn + "/" + "Girls/" + path + ".png";
|
||||
@@ -101,13 +103,13 @@ export class GirlListPopupPanel extends li_BaseView {
|
||||
}
|
||||
async buyCharacter() {
|
||||
// 购买id为girlId的女生
|
||||
console.log(this.girlId);
|
||||
logger.log(this.girlId);
|
||||
// 请求解锁
|
||||
const reqData = {
|
||||
id: this.girlId,
|
||||
};
|
||||
let res = await GirlService.I.reqUnlockGirl(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