更新
This commit is contained in:
parent
c10bb1e757
commit
a09855bd8f
|
|
@ -8511,7 +8511,7 @@
|
||||||
"__uuid__": "c5195cb6-e974-4b2b-9b9a-fa73a8c21cfb"
|
"__uuid__": "c5195cb6-e974-4b2b-9b9a-fa73a8c21cfb"
|
||||||
},
|
},
|
||||||
"_texture": null,
|
"_texture": null,
|
||||||
"_stopped": false,
|
"_stopped": true,
|
||||||
"playOnLoad": true,
|
"playOnLoad": true,
|
||||||
"autoRemoveOnFinish": false,
|
"autoRemoveOnFinish": false,
|
||||||
"totalParticles": 100,
|
"totalParticles": 100,
|
||||||
|
|
@ -8687,7 +8687,7 @@
|
||||||
"__uuid__": "a28b8261-be09-47df-aaa7-db3b6edebc3e"
|
"__uuid__": "a28b8261-be09-47df-aaa7-db3b6edebc3e"
|
||||||
},
|
},
|
||||||
"_texture": null,
|
"_texture": null,
|
||||||
"_stopped": false,
|
"_stopped": true,
|
||||||
"playOnLoad": true,
|
"playOnLoad": true,
|
||||||
"autoRemoveOnFinish": false,
|
"autoRemoveOnFinish": false,
|
||||||
"totalParticles": 100,
|
"totalParticles": 100,
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,22 @@ export default class GameManager extends cc.Component {
|
||||||
cc.fx.GameConfig.init(true);
|
cc.fx.GameConfig.init(true);
|
||||||
cc.fx.GameConfig.GM_INFO.sceneValue = "loadScene";
|
cc.fx.GameConfig.GM_INFO.sceneValue = "loadScene";
|
||||||
cc.fx.GameConfig.GM_INFO.gameState = false;
|
cc.fx.GameConfig.GM_INFO.gameState = false;
|
||||||
|
|
||||||
|
//@ts-ignore
|
||||||
|
if (typeof wx !== 'undefined' && wx !== null) {
|
||||||
|
//@ts-ignore
|
||||||
|
let query = wx.getLaunchOptionsSync().query;
|
||||||
|
if (query.ge_ad_id) cc.fx.GameConfig.GM_INFO.ge_ad_id = query.ge_ad_id;
|
||||||
|
if (query.ge_creative_id) cc.fx.GameConfig.GM_INFO.ge_creative_id = query.ge_creative_id;
|
||||||
|
|
||||||
|
// 遍历 query 中除 ge_ad_id、ge_creative_id 之外的其他参数
|
||||||
|
for (const key in query) {
|
||||||
|
if (key !== 'ge_ad_id' && key !== 'ge_creative_id') {
|
||||||
|
cc.fx.GameTool.trackErrorToShushu({ message: key });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
cc.fx.GameTool.initWechatErrorTracking();
|
cc.fx.GameTool.initWechatErrorTracking();
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
|
||||||
|
|
@ -314,7 +314,7 @@ export default class MapConroler extends cc.Component {
|
||||||
}
|
}
|
||||||
Utils.getCityRank((res) => {
|
Utils.getCityRank((res) => {
|
||||||
if (res.code === 1) {
|
if (res.code === 1) {
|
||||||
console.log("城市排行数据:", res.data);
|
// console.log("城市排行数据:", res.data);
|
||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
for (let i = 0; i < res.data.length; i++) {
|
for (let i = 0; i < res.data.length; i++) {
|
||||||
if (res.data[i].addLevel <= cc.fx.GameConfig.GM_INFO.addLevel) {
|
if (res.data[i].addLevel <= cc.fx.GameConfig.GM_INFO.addLevel) {
|
||||||
|
|
@ -3171,7 +3171,7 @@ export default class MapConroler extends cc.Component {
|
||||||
// alert("游戏成功");
|
// alert("游戏成功");
|
||||||
Utils.getCityRank((res) => {
|
Utils.getCityRank((res) => {
|
||||||
if (res.code === 1) {
|
if (res.code === 1) {
|
||||||
console.log("城市排行数据:", res.data);
|
// console.log("城市排行数据:", res.data);
|
||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
for (let i = 0; i < res.data.length; i++) {
|
for (let i = 0; i < res.data.length; i++) {
|
||||||
if (res.data[i].addLevel <= (cc.fx.GameConfig.GM_INFO.addLevel + 1)) {
|
if (res.data[i].addLevel <= (cc.fx.GameConfig.GM_INFO.addLevel + 1)) {
|
||||||
|
|
|
||||||
|
|
@ -1572,6 +1572,17 @@ export namespace MiniGameSdk {
|
||||||
} else {
|
} else {
|
||||||
// console.log('未获取到用户的 account_id');
|
// console.log('未获取到用户的 account_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 设置广告属性
|
||||||
|
if (cc.fx.GameConfig.GM_INFO.ge_ad_id != "") {
|
||||||
|
console.log("___________上报ge_ad_id", cc.fx.GameConfig.GM_INFO.ge_ad_id);
|
||||||
|
API._ta.userSet({ ge_ad_id: cc.fx.GameConfig.GM_INFO.ge_ad_id });
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cc.fx.GameConfig.GM_INFO.ge_creative_id != "") {
|
||||||
|
console.log("___________上报ge_creative_id", cc.fx.GameConfig.GM_INFO.ge_creative_id);
|
||||||
|
API._ta.userSet({ ge_creative_id: cc.fx.GameConfig.GM_INFO.ge_creative_id });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -153,6 +153,8 @@ export class GameConfig {
|
||||||
GameplayType: number; //游戏类型
|
GameplayType: number; //游戏类型
|
||||||
canIos: boolean, //ios展示是否可以
|
canIos: boolean, //ios展示是否可以
|
||||||
iosCanPay: boolean, //ios是否支持支付
|
iosCanPay: boolean, //ios是否支持支付
|
||||||
|
ge_ad_id: string, //广告ID
|
||||||
|
ge_creative_id: string, //创意ID
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -300,7 +302,7 @@ export class GameConfig {
|
||||||
vibrateOpen: true, //震动
|
vibrateOpen: true, //震动
|
||||||
coinnum: 0, //每局的金币数
|
coinnum: 0, //每局的金币数
|
||||||
paid_user: false, //是否是付费用户
|
paid_user: false, //是否是付费用户
|
||||||
version: "1.9.87", //版本号
|
version: "1.9.88", //版本号
|
||||||
shushu_DistinctId: "", //数数访客ID
|
shushu_DistinctId: "", //数数访客ID
|
||||||
shushu_AccountId: "", //数数账号ID
|
shushu_AccountId: "", //数数账号ID
|
||||||
uid: "", //用户和后端唯一id
|
uid: "", //用户和后端唯一id
|
||||||
|
|
@ -353,6 +355,8 @@ export class GameConfig {
|
||||||
GameplayType: 0, // 0 正常模式, 1无尽模式
|
GameplayType: 0, // 0 正常模式, 1无尽模式
|
||||||
canIos: true, //ios展示是否可以
|
canIos: true, //ios展示是否可以
|
||||||
iosCanPay: false, //ios是否支持支付
|
iosCanPay: false, //ios是否支持支付
|
||||||
|
ge_ad_id: "", //广告ID
|
||||||
|
ge_creative_id: "", //广告创意ID
|
||||||
};
|
};
|
||||||
// this.setCode(this.getKey("scode"));
|
// this.setCode(this.getKey("scode"));
|
||||||
// this.GM_INFO.level = 0;
|
// this.GM_INFO.level = 0;
|
||||||
|
|
|
||||||
|
|
@ -965,8 +965,8 @@ export default class Utils {
|
||||||
}, 3000);
|
}, 3000);
|
||||||
console.log("请求uid:" + Utils.uid);
|
console.log("请求uid:" + Utils.uid);
|
||||||
Utils.POST("getRank", { uid: cc.fx.GameConfig.GM_INFO.uid }, res => {
|
Utils.POST("getRank", { uid: cc.fx.GameConfig.GM_INFO.uid }, res => {
|
||||||
console.log("查询排行榜结果");
|
// console.log("查询排行榜结果");
|
||||||
console.log(res);
|
// console.log(res);
|
||||||
// 清除超时定时器
|
// 清除超时定时器
|
||||||
clearTimeout(timeoutId);
|
clearTimeout(timeoutId);
|
||||||
if (!isCallBackCalled) {
|
if (!isCallBackCalled) {
|
||||||
|
|
|
||||||
|
|
@ -2176,6 +2176,9 @@ var GameTool = {
|
||||||
if (error.message.includes("null is not an object (evaluating 't._components.length')")) {
|
if (error.message.includes("null is not an object (evaluating 't._components.length')")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if (error.message.includes("wx7095f7fa398a2f30")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
else if (error.message.includes("o.call is not a function. (In 'o.call(this)', 'o.call' is undefined)")) {
|
else if (error.message.includes("o.call is not a function. (In 'o.call(this)', 'o.call' is undefined)")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -297,8 +297,8 @@ export default class ranking extends cc.Component {
|
||||||
this.selfInfo = null;
|
this.selfInfo = null;
|
||||||
for (let i = 0; i < this.wordRank.length; i++) {
|
for (let i = 0; i < this.wordRank.length; i++) {
|
||||||
if (this.wordRank[i]._id == cc.fx.GameConfig.GM_INFO.uid) {
|
if (this.wordRank[i]._id == cc.fx.GameConfig.GM_INFO.uid) {
|
||||||
console.log("我自己的UID", cc.fx.GameConfig.GM_INFO.uid);
|
// console.log("我自己的UID", cc.fx.GameConfig.GM_INFO.uid);
|
||||||
console.log("排行榜中的ID:", this.wordRank[i]._id);
|
// console.log("排行榜中的ID:", this.wordRank[i]._id);
|
||||||
// this.selfInfo = this.wordRank[i];
|
// this.selfInfo = this.wordRank[i];
|
||||||
this.selfInfo = JSON.parse(JSON.stringify(this.wordRank[i]));
|
this.selfInfo = JSON.parse(JSON.stringify(this.wordRank[i]));
|
||||||
if (this.selfInfo.useravatar == "0" || this.selfInfo.useravatar == "1" || this.selfInfo.useravatar == "2"
|
if (this.selfInfo.useravatar == "0" || this.selfInfo.useravatar == "1" || this.selfInfo.useravatar == "2"
|
||||||
|
|
|
||||||
|
|
@ -601,7 +601,7 @@
|
||||||
"color": 1,
|
"color": 1,
|
||||||
"special": 0,
|
"special": 0,
|
||||||
"length": 2,
|
"length": 2,
|
||||||
"colorArray": "02112"
|
"colorArray": "021102"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 1777,
|
"id": 1777,
|
||||||
|
|
@ -609,7 +609,7 @@
|
||||||
"color": 1,
|
"color": 1,
|
||||||
"special": 0,
|
"special": 0,
|
||||||
"length": 0,
|
"length": 0,
|
||||||
"colorArray": "02112"
|
"colorArray": "021102"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user