Commit 09976b85 authored by 邱旭's avatar 邱旭

1

parent 9503f907
...@@ -2024,6 +2024,7 @@ export class NetManager extends ABNetManager { ...@@ -2024,6 +2024,7 @@ export class NetManager extends ABNetManager {
uri: window['duiba'] +'/customActivity/happyclear/acceptInvitationPrize', uri: window['duiba'] +'/customActivity/happyclear/acceptInvitationPrize',
type: 'get', type: 'get',
dataType: 'json', dataType: 'json',
hideMsg: true,
param: { param: {
detect: window['detect'], detect: window['detect'],
deviceSessionId: window['_device_session_id'], deviceSessionId: window['_device_session_id'],
......
...@@ -460,6 +460,8 @@ export default class MapScene extends Scene { ...@@ -460,6 +460,8 @@ export default class MapScene extends Scene {
} }
NetManager.ins.acceptInvitationPrize((success, res) => { NetManager.ins.acceptInvitationPrize((success, res) => {
if (!success) { if (!success) {
showToast("哎呀,萌狮开小差啦!\n过会再来看吧!");
GDispatcher.dispatchEvent("getInviteInfo");
return; return;
} }
// console.log(res.data); // console.log(res.data);
......
{ {
"success": true, "success": false,
"code": "0000000000", "code": "0000000000",
"desc": "OK", "desc": "OK",
"timestamp": 1571227735841, "timestamp": 1571227735841,
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"avatar": null "avatar": null
} }
], ],
"completeFlag": 6, "completeFlag": 1,
"openPrizeMsg": "图片", "openPrizeMsg": "图片",
"prizeType": "nickname", "prizeType": "nickname",
"prizeName": "nickname", "prizeName": "nickname",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment