日志控制
This commit is contained in:
@@ -7,6 +7,7 @@ import { KSSDK } from "./ksSDK";
|
||||
import AudioManager from "../Manager/AudioManager";
|
||||
import GlobalValue, { VideoRoleType } from "../Common/GlobalValue";
|
||||
import { luffaSDK } from "./luffaSDK";
|
||||
import { logger } from "db://assets/Scripts/Main/Common/Logger";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -86,9 +87,9 @@ export class SDKManager { //extends Component
|
||||
this.video_reward_map = {}
|
||||
this.share_reward_map = {}
|
||||
|
||||
console.log("平台值 wx:",window["wx"], typeof window["wx"])
|
||||
console.log("平台值 ks:",window["ks"], typeof window["ks"])
|
||||
console.log("平台值 tt:",window["tt"], typeof window["tt"])
|
||||
logger.log("平台值 wx:",window["wx"], typeof window["wx"])
|
||||
logger.log("平台值 ks:",window["ks"], typeof window["ks"])
|
||||
logger.log("平台值 tt:",window["tt"], typeof window["tt"])
|
||||
|
||||
if (typeof window["ks"] !== 'undefined') {
|
||||
this.sdk_channel = E_SDK_Channel.KS
|
||||
@@ -104,7 +105,7 @@ export class SDKManager { //extends Component
|
||||
this.sdk = new WebSDK()
|
||||
}
|
||||
|
||||
console.log("当前平台:",sys.platform, this.sdk_channel)
|
||||
logger.log("当前平台:",sys.platform, this.sdk_channel)
|
||||
if (GlobalValue.NpcVideoMod) {
|
||||
GlobalValue.NpcVideoMod = this.sdk_channel === E_SDK_Channel.WX || this.sdk_channel === E_SDK_Channel.WEB
|
||||
}
|
||||
@@ -192,12 +193,12 @@ export class SDKManager { //extends Component
|
||||
}
|
||||
//看视频广告前
|
||||
static video_ad_pre() {
|
||||
console.log("SDKManager 视频广告前")
|
||||
logger.log("SDKManager 视频广告前")
|
||||
AudioManager.I.PauseMusic();
|
||||
}
|
||||
//看视频广告后返回游戏
|
||||
static video_ad_back() {
|
||||
console.log("SDKManager 视频广告后")
|
||||
logger.log("SDKManager 视频广告后")
|
||||
AudioManager.I.ResumeMusic();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user