|
@@ -138,7 +138,7 @@ export class gameManager extends Component {
|
|
|
} else {
|
|
|
console.log("测试环境");
|
|
|
this.golabMemory.isReplse = false;
|
|
|
- this.golabMemory.Token = "dttesteyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiI0MjMzMjciLCJpcCI6IjE4My4yNDkuMTEzLjIxNyIsIm9nIjoiMSIsImlhdCI6MTcyNDEzOTE3M30.oZCzn0JH4gfeIXP8nAWe3I91Fn9USK0GKnR0iFLPz6csv4prJMobd9EsHPWz8q9O6pFE9cPQKL73INxm0FLXJQ";
|
|
|
+ this.golabMemory.Token = "dttesteyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiIzNjY2NDIzOCIsImlwIjoiMTgzLjI0OS44OS43MSIsIm9nIjoiMSIsImlhdCI6MTcyNjgxMDY2NX0.HRSb7o2CSlP2p1GJnKlSzF2nXdTiUuP6AfNA_ii1UXJG3OQOJInsMns1xxn1mv8mcc5fZo5iC51KXxTLjLbRdw";
|
|
|
}
|
|
|
|
|
|
this.GetBatchInfo();
|
|
@@ -157,6 +157,9 @@ export class gameManager extends Component {
|
|
|
console.log("获得场次信息返回对象:", data)
|
|
|
var obj: ResponseBase = JSON.parse(data);
|
|
|
if (obj.code != 1) {
|
|
|
+ if (obj.message) {
|
|
|
+ uiManager.instance.showTips(obj.message);
|
|
|
+ }
|
|
|
console.error("请求成功,返回数据错误", data);
|
|
|
return;
|
|
|
}
|
|
@@ -617,13 +620,14 @@ export class gameManager extends Component {
|
|
|
console.log("掉落回调", data);
|
|
|
let url = "coins/manage/getAward";
|
|
|
let timenum = this.getTimestampInSeconds();
|
|
|
- let m: string = `uuid='${data.uuidstr}'&time='${timenum}'fxkj9999`;
|
|
|
+ let m: string = `uuid=${data.uuidstr}&time=${timenum}fxkj9999`;
|
|
|
const md5: Md5 = new Md5();
|
|
|
md5.appendStr(m);
|
|
|
+ let str = md5.end()
|
|
|
let parm = {
|
|
|
time: timenum.toString(),
|
|
|
uuid: data.uuidstr,
|
|
|
- sign: md5.end()
|
|
|
+ sign: str
|
|
|
};
|
|
|
console.log("获得奖品发送数据", parm);
|
|
|
HttpHelp.httpPost(url, JSON.stringify(parm), this.GetGoodsBack, this.golabMemory.Token, this);
|