dzduole 16 小時之前
父節點
當前提交
9a14d358aa

+ 1 - 4
art/fgui/.objs/workspace.json

@@ -7,13 +7,10 @@
     "/"
   ],
   "libview.iconScale": 0,
-  "doc.openedDocs": [
-    "ui://isxx5ak7kt443qc"
-  ],
+  "doc.openedDocs": [],
   "test.device": "Huawei Mate20 Pro",
   "canvasColor": 10066329,
   "auxline2": true,
-  "doc.activeDoc": "ui://isxx5ak7kt443qc",
   "libview.twoColumn": false,
   "libview.expandedNodes": [
     "isxx5ak7",

+ 87 - 4
client/laya/bin/js/bundle.js

@@ -50,6 +50,8 @@
     let CHANGE_SECRETARY = "CHANGE_SECRETARY";
     let POWER_CHANGE = "POWER_CHANGE";
     let POWER_TIME = "POWER_TIME";
+    let LOGIN_OUT = "LOGIN_OUT";
+    let LOGIN_IN = "LOGIN_IN";
     let keyForLoginInfo = "userInfo";
     let TIP_MSG_key = {
         loginTimeOut: "Login timed out, please log in again.",
@@ -153,6 +155,8 @@
         CHANGE_SECRETARY: CHANGE_SECRETARY,
         POWER_CHANGE: POWER_CHANGE,
         POWER_TIME: POWER_TIME,
+        LOGIN_OUT: LOGIN_OUT,
+        LOGIN_IN: LOGIN_IN,
         keyForLoginInfo: keyForLoginInfo,
         TIP_MSG_key: TIP_MSG_key,
         baseHeadUrl: baseHeadUrl,
@@ -6981,8 +6985,13 @@
                                 "buySpids": { 1: false, 7: false }
                             };
                             LocalStorageManager.setItem(keyStr, jsonStr);
+                            let myu = Moyu.getUserInfo();
+                            console.log('zh:myu = ' + JSON.stringify(myu));
+                            DataMgr.updateUserNickName(res.username);
+                            Moyu.updateUserInfo(res.username);
                             xGame.uiMgr.Show(UIMsg, msg);
                             DataMgr.getUserZiChanInfo();
+                            xGame.eventMgr.event(LOGIN_IN);
                             this.closeSelf();
                         }
                         else {
@@ -7554,6 +7563,8 @@
             xGame.eventMgr.on(RESTART_GAME, this, this.beginGame);
             xGame.eventMgr.on(GET_USER_INFO, this, this.onGetUserInfo);
             xGame.eventMgr.on(CHANGE_SECRETARY, this, this.changeSecretary);
+            xGame.eventMgr.on(LOGIN_OUT, this, this.setUserDefaultNickname);
+            xGame.eventMgr.on(LOGIN_IN, this, this.event_login_in);
             let curUse = DataMgr.getCurSecretary();
             this.changeSecretary(curUse);
             this.ui.talkNode.visible = false;
@@ -7565,7 +7576,9 @@
                 console.log("zh:播放小秘书每天语音");
             }
             this.onGetUserInfo();
-            DataMgr.getUserZiChanInfo();
+            if (LocalStorageManager.hasJosnKey(keyForLoginInfo)) {
+                DataMgr.getUserZiChanInfo();
+            }
             this.ui.n83.visible = false;
             if (LocalStorageManager.hasJosnKey(keyForLoginInfo)) {
                 const d = LocalStorageManager.getItem(keyForLoginInfo);
@@ -7575,6 +7588,7 @@
             this.c_btn_for_user();
             window['nativeCallJs'] = this.nativeCallJs.bind(this);
             this.loadUserSpOrderForAd();
+            this.ui.n_fuli.visible = false;
         }
         Logout() {
             if (LocalStorageManager.hasJosnKey(keyForLoginInfo)) {
@@ -7582,6 +7596,13 @@
                 this.freshUser();
             }
             JSBridgeUtils.instance.loginOutForApp();
+            this.setUserDefaultNickname();
+        }
+        setUserDefaultNickname() {
+            let defUsername = "player";
+            this.ui.headNode.nameTxt.text = defUsername;
+            DataMgr.updateUserNickName(defUsername);
+            Moyu.updateUserInfo(defUsername);
         }
         gotoLogin() {
             xGame.uiMgr.Show(UILogin);
@@ -7645,7 +7666,12 @@
         checkForShowFuLi17(spid) {
             let userInfo = LocalStorageManager.getItem(keyForLoginInfo);
             if (userInfo == null) {
-                console.log('zh:没有登录就不显示福利弹框了');
+                if (spid === 1) {
+                    xGame.uiMgr.Show(UIFuli1);
+                }
+                if (spid === 7) {
+                    xGame.uiMgr.Show(UIFuli2);
+                }
                 return;
             }
             console.log('zh:是否需要展示福利 ' + spid + ' 的弹窗');
@@ -7784,6 +7810,14 @@
                 }
                 Laya.timer.once(randTime, this, () => {
                 });
+                Laya.timer.once(1000, this, () => {
+                    console.log('zh: 1秒后  showFuLiSp1');
+                    this.showFuLiSp1();
+                });
+                Laya.timer.once(10000, this, () => {
+                    console.log('zh: 10秒后  showFuLiSp1');
+                    this.showFuLiSp7();
+                });
             }
         }
         checkActive(show) {
@@ -7995,6 +8029,10 @@
             }
             this.freshUser();
         }
+        event_login_in() {
+            console.log("zh:event_login_in被触发");
+            this.freshUser();
+        }
         freshUser() {
             let user = Moyu.getUserInfo();
             if (!user.isAuth) {
@@ -18617,6 +18655,17 @@
                     xGame.eventMgr.event(event, arg);
             });
         }
+        static updateUserNickName(loginUserName) {
+            let kyeStr = 'moyudata_180';
+            console.log('zh:################### kyeStr=' + kyeStr);
+            const moyudata = Laya.LocalStorage.getItem(kyeStr);
+            if (moyudata) {
+                const obj = JSON.parse(moyudata);
+                obj.nickName = loginUserName;
+                Laya.LocalStorage.setItem(kyeStr, JSON.stringify(obj));
+                console.log('zh:################### updateUserNickName');
+            }
+        }
         static saveGameData() {
             if (this.gameSaving)
                 return;
@@ -23791,8 +23840,13 @@
                                 "buySpids": { 1: false, 7: false }
                             };
                             LocalStorageManager.setItem(keyStr, jsonStr);
+                            let myu = Moyu.getUserInfo();
+                            console.log('zh:myu = ' + JSON.stringify(myu));
+                            DataMgr.updateUserNickName(res.username);
+                            Moyu.updateUserInfo(res.username);
                             xGame.uiMgr.Show(UIMsg$1, msg);
                             DataMgr.getUserZiChanInfo();
+                            xGame.eventMgr.event(LOGIN_IN);
                             this.closeSelf();
                         }
                         else {
@@ -24428,6 +24482,8 @@
             xGame.eventMgr.on(RESTART_GAME, this, this.beginGame);
             xGame.eventMgr.on(GET_USER_INFO, this, this.onGetUserInfo);
             xGame.eventMgr.on(CHANGE_SECRETARY, this, this.changeSecretary);
+            xGame.eventMgr.on(LOGIN_OUT, this, this.setUserDefaultNickname);
+            xGame.eventMgr.on(LOGIN_IN, this, this.event_login_in);
             let curUse = DataMgr.getCurSecretary();
             this.changeSecretary(curUse);
             this.ui.talkNode.visible = false;
@@ -24439,7 +24495,9 @@
                 console.log("zh:播放小秘书每天语音");
             }
             this.onGetUserInfo();
-            DataMgr.getUserZiChanInfo();
+            if (LocalStorageManager.hasJosnKey(keyForLoginInfo)) {
+                DataMgr.getUserZiChanInfo();
+            }
             this.ui.n83.visible = false;
             if (LocalStorageManager.hasJosnKey(keyForLoginInfo)) {
                 const d = LocalStorageManager.getItem(keyForLoginInfo);
@@ -24449,6 +24507,7 @@
             this.c_btn_for_user();
             window['nativeCallJs'] = this.nativeCallJs.bind(this);
             this.loadUserSpOrderForAd();
+            this.ui.n_fuli.visible = false;
         }
         Logout() {
             if (LocalStorageManager.hasJosnKey(keyForLoginInfo)) {
@@ -24456,6 +24515,13 @@
                 this.freshUser();
             }
             JSBridgeUtils.instance.loginOutForApp();
+            this.setUserDefaultNickname();
+        }
+        setUserDefaultNickname() {
+            let defUsername = "player";
+            this.ui.headNode.nameTxt.text = defUsername;
+            DataMgr.updateUserNickName(defUsername);
+            Moyu.updateUserInfo(defUsername);
         }
         gotoLogin() {
             xGame.uiMgr.Show(UILogin$1);
@@ -24519,7 +24585,12 @@
         checkForShowFuLi17(spid) {
             let userInfo = LocalStorageManager.getItem(keyForLoginInfo);
             if (userInfo == null) {
-                console.log('zh:没有登录就不显示福利弹框了');
+                if (spid === 1) {
+                    xGame.uiMgr.Show(UIFuli1$1);
+                }
+                if (spid === 7) {
+                    xGame.uiMgr.Show(UIFuli2$1);
+                }
                 return;
             }
             console.log('zh:是否需要展示福利 ' + spid + ' 的弹窗');
@@ -24658,6 +24729,14 @@
                 }
                 Laya.timer.once(randTime, this, () => {
                 });
+                Laya.timer.once(1000, this, () => {
+                    console.log('zh: 1秒后  showFuLiSp1');
+                    this.showFuLiSp1();
+                });
+                Laya.timer.once(10000, this, () => {
+                    console.log('zh: 10秒后  showFuLiSp1');
+                    this.showFuLiSp7();
+                });
             }
         }
         checkActive(show) {
@@ -24869,6 +24948,10 @@
             }
             this.freshUser();
         }
+        event_login_in() {
+            console.log("zh:event_login_in被触发");
+            this.freshUser();
+        }
         freshUser() {
             let user = Moyu.getUserInfo();
             if (!user.isAuth) {

文件差異過大導致無法顯示
+ 0 - 0
client/laya/bin/js/bundle.js.map


+ 71 - 12
client/laya/bin/libs/moyu.js

@@ -43,18 +43,16 @@
 		}
 		sendMsg(t, e, s, i) {
 			//打印这几个参数看看
-			console.log('zh:mark  moyu.js  sendGet t='+t)
+			console.log('zh:mark  moyu.js  sendGet t=' + t)
 			//console.log('zh:mark  moyu.js  sendGet e='+e)
 			//console.log('zh:mark  moyu.js  sendGet s='+s)
 			//console.log('zh:mark  moyu.js  sendGet i='+i)
 			//判断t是否包含字符串:api.yiiwan.cn/app/setting-get-new
-			if (t.indexOf("api.yiiwan.cn/app/setting-get-new") > -1) { 
+			if (t.indexOf("api.yiiwan.cn/app/setting-get-new") > -1) {
 				console.log('zh:mark  moyu.js  lanjie ');
 				return;
 			}
 			console.log('zh:mark  moyu.js  bbbb');
-	
-		
 
 			let a = null,
 				n = window,
@@ -358,16 +356,53 @@
 			return null == p._instance && (p._instance = new p), p._instance
 		}
 		init(e) {
+			//原來的
+			// if (t.debug = e, this.moyuUser = new a, this.data = new l, this.nativeInfo = new r, this.data.getData(this.myId), this.data.userId.length < 2) {
+			// 	let e = this.getRandStr(5);
+			// 	//this.data.headIcon = t.getTagro("headimg/0.jpg");	//zh:用户默认昵称
+			// 	this.data.headIcon = 'res/ty_touxiang.png';
+			// 	this.data.userId = "my" + this.myId + e;
+			// 	this.data.nickName = "player_" + e;
+			// 	this.data.loginCount = 1; this.data.createTime = this.getTime();
+			// } else {
+			// 	this.data.loginCount++;
+			// }
+			console.log('zh:11111111initinitinitinitinitinitinitinitinit')
+			const data_userInfo = Laya.LocalStorage.getItem('userInfo');
 			if (t.debug = e, this.moyuUser = new a, this.data = new l, this.nativeInfo = new r, this.data.getData(this.myId), this.data.userId.length < 2) {
+				console.log('zh:222222')
 				let e = this.getRandStr(5);
-				//zh:用户默认昵称
-				//this.data.headIcon = t.getTagro("headimg/0.jpg");
 				this.data.headIcon = 'res/ty_touxiang.png';
 				this.data.userId = "my" + this.myId + e;
-				this.data.nickName = "player_" + e;
-				this.data.loginCount = 1; this.data.createTime = this.getTime();
-			} else this.data.loginCount++;
-			this.moyuUser.loginCount = this.data.loginCount, this.moyuUser.userId = this.data.userId, this.moyuUser.nickName = this.data.nickName, this.moyuUser.headIcon = this.data.headIcon, this.moyuUser.openId = this.data.openId, this.moyuUser.createTime = this.data.createTime, this.moyuUser.videoCount = [this.data.adScusNum, this.data.adFailNum], this.moyuUser.realName = this.data.realName, this.moyuUser.realCode = this.data.realCode, this.moyuUser.age = this.data.age, this.setGameTime(), this.data.saveData(this.myId)
+				this.data.loginCount = 1;
+				this.data.createTime = this.getTime();
+				if (data_userInfo === null) {
+					this.data.nickName = "player_" + e;
+				} else {
+					console.log('zh:33333333333')
+					let data_userInfo_obj = JSON.parse(data_userInfo);
+					this.data.nickName = data_userInfo_obj.username;
+					this.moyuUser.nickName = data_userInfo_obj.username;
+					console.log('zh:444444444')
+
+				}
+			} else {
+				this.data.loginCount++;
+			}
+
+			this.moyuUser.loginCount = this.data.loginCount;
+			this.moyuUser.userId = this.data.userId;
+			this.moyuUser.nickName = this.data.nickName;
+			this.moyuUser.headIcon = this.data.headIcon;
+			this.moyuUser.openId = this.data.openId;
+			this.moyuUser.createTime = this.data.createTime;
+			this.moyuUser.videoCount = [this.data.adScusNum, this.data.adFailNum];
+			this.moyuUser.realName = this.data.realName;
+			this.moyuUser.realCode = this.data.realCode;
+			this.moyuUser.age = this.data.age;
+			this.setGameTime();
+			this.data.saveData(this.myId);
+
 		}
 		initFCM(t) {
 			t && this.moyuUser.age < 18 && this.moyuUser.realCode.length > 1 ? (this.fcmActive = !0, setInterval(() => {
@@ -877,6 +912,10 @@
 				}
 			})
 		}
+
+
+
+
 		recordeGame(t, e) {
 			"devtools" != p.Inst.platName && (p.Inst.shareMp4 = "", this.recordTime = t, this.recordClip = e, e && (t = 300), p.Inst.onRecordCall = null, this.recorder ? (this.recordStop || (this.recordStop = !0, p.Inst.platLog("上一次录屏没结束,注意检查逻辑")), p.Inst.platLog("recordGame"), this.recorder.start({
 				duration: t,
@@ -1113,7 +1152,7 @@
 				r = e.Inst.codeMsg(p.Inst.myKey, n),
 				o = t.getUrl("app/setting-get-new?", r);
 			e.Inst.sendGet(o, e => {
-				console.log('zh:moyu.js init='+0);
+				console.log('zh:moyu.js init=' + 0);
 				let s = p.Inst;
 				if (e && 0 == e.code && e.data) {
 					let i = JSON.parse(e.data.settingData),
@@ -1184,6 +1223,7 @@
 				}
 			})
 		}
+
 		getOpenId() { }
 		onShare() {
 			this.shared || (this.shared = !0, this.shareCall && (p.Inst.getTime() - this.shareTime < 3100 ? this.shareCall(!1) : this.shareCall(!0)))
@@ -1228,7 +1268,7 @@
 			})
 		}
 		getData(s) {
-			console.log('zh:moyu.js getData='+s);
+			console.log('zh:moyu.js getData=' + s);
 			let i = e.Inst.codeMsg("bc48cbce46946057", {
 				appKey: 100,
 				platform: "web",
@@ -1317,6 +1357,7 @@
 				}
 			})
 		}
+
 		getOpenId() { }
 		onShare() {
 			this.shared || (this.shared = !0, this.shareCall && (p.Inst.getTime() - this.shareTime < 3100 ? this.shareCall(!1) : this.shareCall(!0)))
@@ -1418,6 +1459,7 @@
 				}
 			})
 		}
+
 		initAds() {
 			this.videoType = 3, p.Inst.hasAd = !0, this.initVideoAd(t.ksVideoId), this.initInsertAd(t.ksInsertId)
 		}
@@ -1982,6 +2024,23 @@
 		}
 		getUserInfo() {
 			return C.moyuUser
+		}
+		/**
+		 * zh  
+		 * @param {*} loginUserName 
+		 */
+		updateUserInfo(loginUserName) {
+			console.log('zh: aaaaaaaa 1111111');
+			console.log('zh:updateUserInfo' + loginUserName)
+			//C.moyuUser.nickName = loginUserName;
+			////////this.moyuUser.nickName = this.data.nickName;
+			C.moyuUser.nickName = loginUserName;
+			//let user = Moyu.getUserInfo();
+
+			console.log('zh: aaaaaaaa 2222=' + C.moyuUser.nickName);
+
+
+
 		}
 		clearData() {
 			C.clearData()

+ 5 - 0
client/laya/libs/moyu/Moyu.d.ts

@@ -310,6 +310,11 @@ declare class Moyu
      */
     static getUserInfo():MoyuUser
 
+    /**
+     * ZH:更新用户信息登錄之後更新随机名字
+     */
+    static updateUserInfo(loginUserName: string)
+
     /**
      * 创建微信授权按钮,返回按钮对象btn,根据页面显隐做对应调整:btn.show();btn.hide();
      * 非微信平台或者不需要在创建时返回null;

+ 2 - 2
client/laya/src/GameInit.ts

@@ -121,9 +121,9 @@ function getPlat() {
     let cfg: MoyuCfg = new MoyuCfg();
     cfg.plat = MoyuPlat.web;
 
-    
+
     //cfg.myId = 120; 20250627日Q
-    cfg.myId = 180;
+    cfg.myId = 180;  //不要修改
     cfg.myKey = '8848a885774230a4';
     cfg.version = 0;
     if (window.hasOwnProperty("gamebox")) {

+ 0 - 3
client/laya/src/core/mgrs/HttpMgr.ts

@@ -50,9 +50,6 @@ export class HttpMgr {
     }
 
 
-
-
-
     private isDev: boolean = true;//是否是开发环境
     public getReqData() {
         let reqData = JSON.stringify({

+ 26 - 1
client/laya/src/data/DataMgr.ts

@@ -244,6 +244,29 @@ export default class DataMgr {
                 xGame.eventMgr.event(event, arg);
         });
     }
+
+    /**
+     * zh 更新
+     * @param loginUserName 
+     */
+    public static updateUserNickName(loginUserName: string) {
+        /// let cfg: MoyuCfg = new MoyuCfg();
+        let kyeStr = 'moyudata_180';/////// + cfg.myId;
+        console.log('zh:################### kyeStr=' + kyeStr)
+        const moyudata = Laya.LocalStorage.getItem(kyeStr);
+        if (moyudata) {
+            const obj = JSON.parse(moyudata);
+            obj.nickName = loginUserName;
+            Laya.LocalStorage.setItem(kyeStr, JSON.stringify(obj));
+            console.log('zh:################### updateUserNickName')
+        }
+    }
+
+
+
+
+
+
     static gameSaving = false;
     public static saveGameData(): void {
         if (this.gameSaving)
@@ -682,7 +705,9 @@ export default class DataMgr {
      */
     public static getChallengeMode_overLev(): number {
         this.challengeMode_overLev = this.diyGameData.challengeMode_overLev;
-        // this.saveGameData();
+        ///////////////////// this.saveGameData();
+        //TODO:ZH:临时测试!!!!!!!!!!!!!!
+        // return 5;
         return this.challengeMode_overLev;
     }
 

+ 10 - 0
client/laya/src/data/Define.ts

@@ -44,6 +44,16 @@ export let POWER_CHANGE = "POWER_CHANGE";
 /**体力时间戳改变 */
 export let POWER_TIME = "POWER_TIME";
 
+/**
+ * 退出账号
+ */
+export let LOGIN_OUT = "LOGIN_OUT";
+/**
+ * 登录账号
+ */
+export let LOGIN_IN = "LOGIN_IN";
+
+
 /**
  * 账号登录,本地报错信息KEY
  */

+ 12 - 1
client/laya/src/ui/UILogin.ts

@@ -2,7 +2,7 @@ import UIBase from "../fgui/core/UIBase";
 import ui_UILogin from "../fgui/res/game/ui_UILogin";
 import { LocalStorageManager } from "../utils/LocalStorageManager";
 
-import { keyForLoginInfo, TIP_MSG_key } from "../data/Define";
+import { keyForLoginInfo, TIP_MSG_key, LOGIN_IN } from "../data/Define";
 import { xGame } from "../xGame";
 import UIMsg from "./UIMsg";
 import UIReg from "./UIReg";
@@ -58,8 +58,19 @@ export default class UILogin extends UIBase {
                             "buySpids": { 1: false, 7: false }
                         }
                         LocalStorageManager.setItem(keyStr, jsonStr);
+
+                        let myu = Moyu.getUserInfo();
+                        console.log('zh:myu = ' + JSON.stringify(myu))
+
+
+                        DataMgr.updateUserNickName(res.username);
+                        Moyu.updateUserInfo(res.username);
+
                         xGame.uiMgr.Show(UIMsg, msg)
                         DataMgr.getUserZiChanInfo();
+
+
+                        xGame.eventMgr.event(LOGIN_IN);
                         this.closeSelf();
                     } else {
                         xGame.uiMgr.Show(UIMsg, msg);

+ 48 - 6
client/laya/src/ui/UIMain.ts

@@ -1,6 +1,6 @@
 import SpineMgr from "../core/mgrs/SpineMgr";
 import DataMgr from "../data/DataMgr";
-import { CHANGE_SECRETARY, GameMode, GET_USER_INFO, RESTART_GAME, keyForLoginInfo, TIP_MSG_key } from "../data/Define";
+import { CHANGE_SECRETARY, GameMode, GET_USER_INFO, RESTART_GAME, keyForLoginInfo, TIP_MSG_key, LOGIN_OUT, LOGIN_IN } from "../data/Define";
 import UIBase from "../fgui/core/UIBase";
 import ui_UIMain from "../fgui/res/game/ui_UIMain";
 import PlatMgr from "../game/PlatMgr";
@@ -159,6 +159,11 @@ export default class UIMain extends UIBase {
         xGame.eventMgr.on(GET_USER_INFO, this, this.onGetUserInfo);
         xGame.eventMgr.on(CHANGE_SECRETARY, this, this.changeSecretary);
 
+        xGame.eventMgr.on(LOGIN_OUT, this, this.setUserDefaultNickname);
+        xGame.eventMgr.on(LOGIN_IN, this, this.event_login_in);
+
+        //////  xGame.eventMgr.event(GET_USER_INFO);
+
 
         let curUse = DataMgr.getCurSecretary();
         this.changeSecretary(curUse);
@@ -174,13 +179,14 @@ export default class UIMain extends UIBase {
             console.log("zh:播放小秘书每天语音");
         }
         this.onGetUserInfo();
-        DataMgr.getUserZiChanInfo();
+        if (LocalStorageManager.hasJosnKey(keyForLoginInfo)) {
+            DataMgr.getUserZiChanInfo();
+        }
+
         this.ui.n83.visible = false;
         //万宁台球
         //Moyu.setShareInfo("8Ball Fury", ["台球", "台球", "桌球"], '2300002254');
 
-
-
         if (LocalStorageManager.hasJosnKey(keyForLoginInfo)) {
             const d = LocalStorageManager.getItem<{ username: string, token: string }>(keyForLoginInfo);
             let ua = d.username;
@@ -198,6 +204,8 @@ export default class UIMain extends UIBase {
         // })
         this.loadUserSpOrderForAd();
 
+        this.ui.n_fuli.visible = false;
+
     }
 
     Logout() {
@@ -208,8 +216,20 @@ export default class UIMain extends UIBase {
         }
         //必须要调用APP退出登录
         JSBridgeUtils.instance.loginOutForApp();
+        this.setUserDefaultNickname();
+    }
 
+
+    /**
+     * 设置用户默认昵称
+     */
+    setUserDefaultNickname() {
+        let defUsername = "player";
+        this.ui.headNode.nameTxt.text = defUsername;
+        DataMgr.updateUserNickName(defUsername);
+        Moyu.updateUserInfo(defUsername);
     }
+
     gotoLogin() {
         xGame.uiMgr.Show(UILogin);
     }
@@ -279,10 +299,19 @@ export default class UIMain extends UIBase {
      * @returns 
      */
     checkForShowFuLi17(spid: number) {
+        // let userInfo = LocalStorageManager.getItem(keyForLoginInfo);
+        // if (userInfo == null) {
+        //     console.log('zh:没有登录就不显示福利弹框了');
+        //     return;
+        // }
+
         let userInfo = LocalStorageManager.getItem(keyForLoginInfo);
         if (userInfo == null) {
-            console.log('zh:没有登录就不显示福利弹框了');
-            // xGame.uiMgr.Show(UIMsg, TIP_MSG_key.pleaseLoginIn);
+            if (spid === 1) {
+                xGame.uiMgr.Show(UIFuli1);
+            } if (spid === 7) {
+                xGame.uiMgr.Show(UIFuli2);
+            }
             return;
         }
         console.log('zh:是否需要展示福利 ' + spid + ' 的弹窗');
@@ -458,8 +487,16 @@ export default class UIMain extends UIBase {
                 // xGame.common.autoPopUIView();
             })
 
+            Laya.timer.once(1000, this, () => {
+                console.log('zh: 1秒后  showFuLiSp1')
+                this.showFuLiSp1();
+            })
 
 
+            Laya.timer.once(10000, this, () => {
+                console.log('zh: 10秒后  showFuLiSp1')
+                this.showFuLiSp7();
+            })
         }
     }
     checkActive(show) {
@@ -727,6 +764,11 @@ export default class UIMain extends UIBase {
         this.freshUser();
     }
 
+    event_login_in(){
+        console.log("zh:event_login_in被触发");
+        this.freshUser();
+
+    }
 
     freshUser() {
         let user = Moyu.getUserInfo();

+ 1 - 0
client/laya/src/ui/item/DaoJuDisplay.ts

@@ -54,6 +54,7 @@ export default class DaoJuDisplay {
         }
     }
 
+    //废弃
     gotoBuy1() {
         xGame.soundMgr.playSound(xGame.common.btnClickStr);
         let djItem = cfgTable.daoJuData[this.index + 1];

部分文件因文件數量過多而無法顯示