|
|
@@ -7976,6 +7976,7 @@ gData.loginData.popIdentifySwitch = "1" == this.configs.ServerConfig.popIdentify
|
|
|
gData.guideToWxData.guideToWxSwith = "1" == this.configs.ServerConfig.guideToWxSwith;
|
|
|
gData.guideToWxData.money = this.configs.ServerConfig.addfriendmoney;
|
|
|
gData.guideToWxData.ghId = this.configs.ServerConfig.ghId;
|
|
|
+gData.guideToWxData.ghIdPath = this.configs.ServerConfig.ghIdPath;
|
|
|
};
|
|
|
t.prototype.initPlayerProp = function(t) {
|
|
|
this.gameData = new c();
|
|
|
@@ -10280,6 +10281,7 @@ this.guideToWxSwith = !1;
|
|
|
this.guideState = a.none;
|
|
|
this.money = "";
|
|
|
this.ghId = "";
|
|
|
+this.ghIdPath = "";
|
|
|
this.init_state = !1;
|
|
|
}
|
|
|
t.prototype.checkPop = function() {
|
|
|
@@ -10482,6 +10484,10 @@ break;
|
|
|
|
|
|
case 1:
|
|
|
gData.guideToWxData.guideState = u.GuideState.canGetMoney;
|
|
|
+if (!mk.storage.getStorage("canGetMoney")) {
|
|
|
+mk.storage.setStorage("canGetMoney", 1);
|
|
|
+mk.data.sendDataEvent(l.DataEventId.guideToWx, "二维码");
|
|
|
+}
|
|
|
break;
|
|
|
|
|
|
case 2:
|
|
|
@@ -10562,6 +10568,7 @@ case u.GuideState.gotMoney:
|
|
|
this.fillPer = 1;
|
|
|
e = "module/guideToWx/texture/getSuccess";
|
|
|
this.node_target.active = !1;
|
|
|
+this.nodeStateArr[3].active = !0;
|
|
|
}
|
|
|
n = this.sp_getMoney;
|
|
|
return [ 4, mk.loader.load(e, cc.SpriteFrame) ];
|
|
|
@@ -10620,7 +10627,7 @@ mk.audio.playEffect("button");
|
|
|
if (gData.guideToWxData.guideState != u.GuideState.none && gData.guideToWxData.guideState != u.GuideState.sendApply && gData.guideToWxData.guideState != u.GuideState.waitForPass) return [ 3, 1 ];
|
|
|
this.lastTimeSpan = Date.now();
|
|
|
mk.console.logSingle("GuideToWx lastTimeSpan ", this.lastTimeSpan);
|
|
|
-s.default.WXLaunchMiniProgram(gData.guideToWxData.ghId);
|
|
|
+s.default.WXLaunchMiniProgram(gData.guideToWxData.ghId, gData.guideToWxData.ghIdPath);
|
|
|
return [ 3, 4 ];
|
|
|
|
|
|
case 1:
|
|
|
@@ -10641,7 +10648,7 @@ this.setState();
|
|
|
return [ 3, 4 ];
|
|
|
|
|
|
case 3:
|
|
|
-gData.guideToWxData.guideState == u.GuideState.gotMoney && mk.tip.pop("您已经领取成功!");
|
|
|
+gData.guideToWxData.guideState == u.GuideState.gotMoney && mk.tip.pop("您已经领取成功!", 1);
|
|
|
e.label = 4;
|
|
|
|
|
|
case 4:
|
|
|
@@ -11533,7 +11540,7 @@ value: !0
|
|
|
n.ServerUrl = n.HttpData = void 0;
|
|
|
var o, a = function() {
|
|
|
function t() {
|
|
|
-this.serverType = 0;
|
|
|
+this.serverType = 1;
|
|
|
}
|
|
|
t.prototype.getServerUrl = function() {
|
|
|
switch (this.serverType) {
|
|
|
@@ -11921,8 +11928,8 @@ gData.wechatData.code = t;
|
|
|
console.log("=== gData.wechatData.code", gData.wechatData.code);
|
|
|
gData.loginData.wxLogin();
|
|
|
};
|
|
|
-t.WXLaunchMiniProgram = function(t) {
|
|
|
-cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "WXLaunchMiniProgram", "(Ljava/lang/String;)V", t) : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WXLaunchMiniProgram", "");
|
|
|
+t.WXLaunchMiniProgram = function(t, e) {
|
|
|
+cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "WXLaunchMiniProgram", "(Ljava/lang/String;Ljava/lang/String;)V", t, e) : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WXLaunchMiniProgram", "");
|
|
|
};
|
|
|
t.OpenMiniGame = function() {
|
|
|
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "OpenMiniGame", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
|
|
|
@@ -12121,7 +12128,7 @@ value: !0
|
|
|
n.LogTagColor = void 0;
|
|
|
var a, i = function() {
|
|
|
function t() {
|
|
|
-this.ifShowLog = !0;
|
|
|
+this.ifShowLog = !1;
|
|
|
this._tagChar = "...";
|
|
|
this._frontChar = " ";
|
|
|
this._keyValueChar = " = ";
|