日志控制

This commit is contained in:
chen wei bo
2025-09-21 20:36:25 +08:00
parent e78f6b937e
commit 93bfe3174f
23 changed files with 91 additions and 81 deletions
+3 -2
View File
@@ -8,6 +8,7 @@ import { CommAdDialog } from "./Item/CommAdDialog";
import Utils from "../Main/Common/Utils";
import { InnerMsgCode } from "../Main/Config/InnerMsgCode";
import { TipsPanel } from "../chat18x/ui/panels/TipsPanel";
import { logger } from "db://assets/Scripts/Main/Common/Logger";
const { ccclass, property } = _decorator;
@@ -34,7 +35,7 @@ export default class SubManager {
/**通用确认框 { content: string, strYes?: string, strNo?: string, yesCallback?: Function, noCallback?: Function, closeCallback?: Function } */
public static ShowConfirm(param: any) {
if (!GameRootUI.I) {
console.warn("GameRootUI还未初始化", param);
logger.warn("GameRootUI还未初始化", param);
return;
}
ResManager.I.loadSubpackagePrefab("item/ConfirmDialog", (n_node: Node) => {
@@ -48,7 +49,7 @@ export default class SubManager {
/**通用广告框 { content: string, strAd?: string, strLeft?: string, adCallback?: Function, leftCallback?: Function, closeCallback?: Function } */
public static ShowCommonAdDialog(param: any) {
if (!GameRootUI.I) {
console.warn("GameRootUI还未初始化", param);
logger.warn("GameRootUI还未初始化", param);
return;
}
ResManager.I.loadSubpackagePrefab("item/CommAdDialog", (n_node: Node) => {
+1 -1
View File
@@ -95,7 +95,7 @@ export class SceneBgVideoLayer extends li_BaseView {
}
) {
if (!this.videoPlayer) {
console.error("SceneBgVideoLayer: VideoPlayer未初始化");
logger.error("SceneBgVideoLayer: VideoPlayer未初始化");
return;
}