소스 검색

【bug】修改翻倍弹窗位置距离计算问题

mojunshou 7 달 전
부모
커밋
e9f672de2f

+ 1 - 2
assets/script/game/common/manager/ProtocolEvent.ts

@@ -2,14 +2,13 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-04-07 10:17:16
  * @Date: 2025-04-07 10:17:16
  * @LastEditors: mojunshou 1637302775@qq.com
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-29 17:06:07
+ * @LastEditTime: 2025-04-29 18:40:25
  * @Description: 消息定义
  * @Description: 消息定义
  */
  */
 
 
 // const server_url = "http://192.168.10.103:8880";
 // const server_url = "http://192.168.10.103:8880";
 // https://central-test.atmob.com
 // https://central-test.atmob.com
 const server_url = "https://central-test.atmob.com";
 const server_url = "https://central-test.atmob.com";
-
 export enum ProtocolEvent {
 export enum ProtocolEvent {
     /**微信登录*/
     /**微信登录*/
     WechatLogin = server_url + "/project/playlet/v1/user/login",
     WechatLogin = server_url + "/project/playlet/v1/user/login",

+ 2 - 4
assets/script/game/common/manager/ServerHandler.ts

@@ -2,7 +2,7 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-04-11 10:16:41
  * @Date: 2025-04-11 10:16:41
  * @LastEditors: mojunshou 1637302775@qq.com
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-29 14:57:44
+ * @LastEditTime: 2025-04-29 18:39:46
  * @Description: 
  * @Description: 
  */
  */
 // ServerHandler.ts
 // ServerHandler.ts
@@ -361,9 +361,6 @@ export class ServerHandler {
         this.sendMsgToServer(param);
         this.sendMsgToServer(param);
     }
     }
 
 
-
-
-
     onGetVideorReward(str: string) {
     onGetVideorReward(str: string) {
         console.log('[服务器] 获取视频奖励放回', str);
         console.log('[服务器] 获取视频奖励放回', str);
         let result = JSON.parse(str);
         let result = JSON.parse(str);
@@ -380,6 +377,7 @@ export class ServerHandler {
             account.hbCoin = props['1004'] || 0;
             account.hbCoin = props['1004'] || 0;
             game.changeHbCoin = changes['1004'] || 0;
             game.changeHbCoin = changes['1004'] || 0;
             game.changeWxCoin = changes['1005'] || 0;
             game.changeWxCoin = changes['1005'] || 0;
+            game.skipAdCount = props['1008'] || 0;
             oops.message.dispatchEvent(GameEvent.showCoinAnimation);
             oops.message.dispatchEvent(GameEvent.showCoinAnimation);
         }
         }
     }
     }

+ 1 - 2
assets/script/game/view/CashRebateView.ts

@@ -2,7 +2,7 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-03-21 11:45:43
  * @Date: 2025-03-21 11:45:43
  * @LastEditors: mojunshou 1637302775@qq.com
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-23 16:06:31
+ * @LastEditTime: 2025-04-29 18:11:07
  * @Description: 提现必返
  * @Description: 提现必返
  */
  */
 import { _decorator, Label } from 'cc';
 import { _decorator, Label } from 'cc';
@@ -10,7 +10,6 @@ import { oops } from 'db://oops-framework/core/Oops';
 import { DeviceUtil } from 'db://oops-framework/core/utils/DeviceUtil';
 import { DeviceUtil } from 'db://oops-framework/core/utils/DeviceUtil';
 import { GameComponent } from "db://oops-framework/module/common/GameComponent";
 import { GameComponent } from "db://oops-framework/module/common/GameComponent";
 import { UIID } from '../common/config/GameUIConfig';
 import { UIID } from '../common/config/GameUIConfig';
-import { CocosHandler } from '../common/manager/CocosHandler';
 import { ADHandler } from '../common/manager/ADHandler';
 import { ADHandler } from '../common/manager/ADHandler';
 import { smc } from '../common/SingletonModuleComp';
 import { smc } from '../common/SingletonModuleComp';
 import { GameEvent } from '../common/config/GameEvent';
 import { GameEvent } from '../common/config/GameEvent';

+ 2 - 2
assets/script/game/view/DoubleRewardsView.ts

@@ -2,7 +2,7 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-03-21 11:57:43
  * @Date: 2025-03-21 11:57:43
  * @LastEditors: mojunshou 1637302775@qq.com
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-29 17:09:44
+ * @LastEditTime: 2025-04-29 18:34:18
  * @Description: 惊喜翻倍弹窗
  * @Description: 惊喜翻倍弹窗
  */
  */
 import { _decorator, instantiate, Label, Node, Prefab, UITransform } from 'cc';
 import { _decorator, instantiate, Label, Node, Prefab, UITransform } from 'cc';
@@ -255,7 +255,7 @@ export class DoubleRewardsView extends VMParent {
         const levelRange = lastLevel - firstLevel || 1;
         const levelRange = lastLevel - firstLevel || 1;
         let foundFirstNotWithdraw = false;
         let foundFirstNotWithdraw = false;
         //现在要算平均长度,总长度除数组长度
         //现在要算平均长度,总长度除数组长度
-        let singleLength = totalLength / levelInfoList.length;
+        let singleLength = totalLength / (levelInfoList.length - 1);
         const secondLastIndex = levelInfoList.length - 2;
         const secondLastIndex = levelInfoList.length - 2;
         const allBeforeSecondLastWithdrawed = levelInfoList
         const allBeforeSecondLastWithdrawed = levelInfoList
             .slice(0, secondLastIndex)
             .slice(0, secondLastIndex)

+ 1 - 0
assets/script/game/view/EliminateViewComp.ts

@@ -1596,6 +1596,7 @@ export class EliminateViewComp extends CCComp {
                                 console.log("randomNum随机数>>>>>>>>>>", randomNum);
                                 console.log("randomNum随机数>>>>>>>>>>", randomNum);
                                 //打印少量领取总数
                                 //打印少量领取总数
                                 console.log("少量领取总数>>>>>>>>>>>>>>>", smc.game.GameModel.smallAdCount);
                                 console.log("少量领取总数>>>>>>>>>>>>>>>", smc.game.GameModel.smallAdCount);
+                                console.log("skipAdCount>>>>>>>>>>>>>>", smc.game.GameModel.skipAdCount)
                                 console.log("skipAdConfig>>>>>>>>>>>>>>", smc.game.GameModel.skipAdConfig);
                                 console.log("skipAdConfig>>>>>>>>>>>>>>", smc.game.GameModel.skipAdConfig);
                                 //打印全都要总数
                                 //打印全都要总数
                                 console.log("全都要总数>>>>>>>>>>>>>>>", smc.game.GameModel.allAdCount);
                                 console.log("全都要总数>>>>>>>>>>>>>>>", smc.game.GameModel.allAdCount);