Commit 8ad0a7b6 authored by wildfirecode's avatar wildfirecode

1

parent fd5fdb23
......@@ -68,7 +68,7 @@ export default class TransScene extends Scene {
onshake() {
this['shareTips'].visible = false;
let sharecode = DataManager.ins.getData('genInvite').data;
let sharecode = GameConst.getQueryString("shareCode");
NetManager.ins.yyh_updateAnimationState(sharecode, 3, (success) => {
if (success) {
this.changeToTrans();
......@@ -115,8 +115,12 @@ export default class TransScene extends Scene {
console.log('onTap_btn');
this['shareTips'].visible = true;
//进入页面后发送确认消息
yzwNet.accept(() => {
this.addShareEvent();
yzwNet.accept((success) => {
if (success) {
yzwNet.openPass(() => {
this.addShareEvent();
}, window['projectId'], GameConst.getQueryString("shareCode"))
}
}, window['projectId'], GameConst.getQueryString("shareCode"));
setTimeout(() => {
......
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