|
|
@@ -2,7 +2,7 @@
|
|
|
* @Author: mojunshou 1637302775@qq.com
|
|
|
* @Date: 2025-03-20 15:01:09
|
|
|
* @LastEditors: mojunshou 1637302775@qq.com
|
|
|
- * @LastEditTime: 2025-04-27 16:20:21
|
|
|
+ * @LastEditTime: 2025-04-27 19:02:38
|
|
|
* @Description: 消除游戏主场景
|
|
|
*/
|
|
|
import { _decorator, Button, Color, EventTouch, instantiate, JsonAsset, v3, Label, Node, Prefab, randomRangeInt, Sprite, tween, UITransform, Vec2, Vec3, Widget } from "cc";
|
|
|
@@ -1573,6 +1573,10 @@ export class EliminateViewComp extends CCComp {
|
|
|
if (minNum && maxNum) {
|
|
|
const randomNum = randomRangeInt(minNum, maxNum + 1);
|
|
|
//这个数可以被总消除次数整除那就可以弹广告
|
|
|
+ console.log("最小随机数>>>>>>>>>", minNum);
|
|
|
+ console.log("最大随机数>>>>>>>>>", maxNum);
|
|
|
+ console.log("消除总数>>>>>>>>>>>>>", this.eliminateTotal);
|
|
|
+ console.log("randomNum随机数>>>>>>>>>>", randomNum);
|
|
|
if (this.eliminateTotal % randomNum === 0) {
|
|
|
//如果有自动就暂停自动
|
|
|
if (smc.game.GameModel.skipAdConfig != -1) {
|
|
|
@@ -2382,66 +2386,33 @@ export class EliminateViewComp extends CCComp {
|
|
|
}
|
|
|
|
|
|
btn_text() {
|
|
|
- // const param = {
|
|
|
- // "showReward": [
|
|
|
- // {
|
|
|
- // "propId": "1004",
|
|
|
- // "propNum": 500
|
|
|
- // },
|
|
|
- // {
|
|
|
- // "propId": "1005",
|
|
|
- // "propNum": 200
|
|
|
- // },
|
|
|
- // {
|
|
|
- // "propId": "1006",
|
|
|
- // "propNum": 1
|
|
|
- // }
|
|
|
- // ],
|
|
|
- // "levelProgress": {
|
|
|
- // "nextProgress": 1,
|
|
|
- // "levelInfoList": [
|
|
|
- // {
|
|
|
- // "level": 1,
|
|
|
- // "eventType": "WITHDRAW_POINT",
|
|
|
- // "withdraw": true
|
|
|
- // },
|
|
|
- // {
|
|
|
- // "level": 4,
|
|
|
- // "eventType": "WITHDRAW_POINT",
|
|
|
- // "withdraw": false
|
|
|
- // },
|
|
|
- // {
|
|
|
- // "level": 6,
|
|
|
- // "eventType": "WITHDRAW_POINT",
|
|
|
- // "withdraw": false
|
|
|
- // },
|
|
|
- // {
|
|
|
- // "level": 8,
|
|
|
- // "eventType": "WITHDRAW_POINT",
|
|
|
- // "withdraw": false
|
|
|
- // },
|
|
|
- // {
|
|
|
- // "level": 12,
|
|
|
- // "eventType": "SIGN_POINT",
|
|
|
- // "withdraw": false
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // }
|
|
|
- // }
|
|
|
- // let str = JSON.stringify(param);
|
|
|
- // ServerHandler.inst.onDoubleSurprise(str);
|
|
|
+ const param = {
|
|
|
+ "code": 0,
|
|
|
+ "data": {
|
|
|
+ "ssid": "9201d75d019f46f98b8663adfd515a58",
|
|
|
+ "props": {
|
|
|
+ "1004": 7077279,
|
|
|
+ "1005": 2143634,
|
|
|
+ "1006": 12,
|
|
|
+ "1007": 186,
|
|
|
+ "1008": 22,
|
|
|
+ "1009": 299980,
|
|
|
+ "2001": 2,
|
|
|
+ "8001": 530,
|
|
|
+ "9001": 2
|
|
|
+ },
|
|
|
+ "changes": {
|
|
|
+ "1004": 1,
|
|
|
+ "1007": 1
|
|
|
+ },
|
|
|
+ "tipThreshold": true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let str = JSON.stringify(param);
|
|
|
+ ServerHandler.inst.onGetVideorReward(str);
|
|
|
// ServerHandler.inst.GetGuideInfo();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
getRandomUniqueInts(count: number = 3): number[] {
|
|
|
let min: number = 0;
|
|
|
let max: number = 0;
|