Browse Source

[FC]:更新分享图;一些其他问题

fengcong 5 years ago
parent
commit
5f2d21b8f5

+ 12 - 0
assets/resources/module/hotUpdate.meta

@@ -0,0 +1,12 @@
+{
+  "ver": "1.1.2",
+  "uuid": "5e7a810b-d23b-485e-878a-4941e40c13f3",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 12 - 0
assets/resources/module/hotUpdate/perfab.meta

@@ -0,0 +1,12 @@
+{
+  "ver": "1.1.2",
+  "uuid": "e45f4d0f-7aa3-4f6e-a64f-6b9bcde71855",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 2 - 2
assets/script/game/module/login/Login.ts

@@ -138,7 +138,7 @@ export default class Login extends cc.Component {
             channel: gData.appData.tfChannel,
             version: gData.appData.appVersion
         }
-
+          
         let response = await mk.http.sendRequest("getForceVersionInfo", 'POST', JSON.stringify(data), false, false)
         if (response.data) {
             gData.appData.needForceUpdate = response.data.isForceUpdate;
@@ -153,7 +153,7 @@ export default class Login extends cc.Component {
         }
 
 
-        mk.console.log("===[Login] gData.appData.needForceUpdate", response);
+        mk.console.logSingle("===[Login] gData.appData.needForceUpdate", response);
     }
 
     //热更新-----------------------------------------------------------------

BIN
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/release/EasyEliminate-release.apk


+ 6 - 1
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/thirdSdk/thinkingdata/TDSDKMgr.java

@@ -31,6 +31,7 @@ public class TDSDKMgr {
 
     public AppActivity appActivity = null;
 
+    /** 初始化(必须调用) */
     public void initSdk(AppActivity appActivity) {
         this.appActivity = appActivity;
 
@@ -38,6 +39,9 @@ public class TDSDKMgr {
         TDConfig config = TDConfig.getInstance(this.appActivity, TA_APP_ID, TA_SERVER_URL);
         // 初始化 SDK
         this.TDInstance = ThinkingAnalyticsSDK.sharedInstance(config);
+
+        //数数注册
+        TDSDKMgr.getInstance().setTAEventRegister();
     }
 
     public void setTAEvent(String eventID, String des) {
@@ -55,7 +59,8 @@ public class TDSDKMgr {
         }
     }
 
-    /** -- 数数相关 --*/
+    //-- 数数相关 --
+    /**注册(必须调用)*/
     public void setTAEventRegister(){
         try {
             JSONObject properties = new JSONObject();

BIN
build/jsb-link/frameworks/runtime-src/proj.android-studio/res/drawable/send_img.jpg


+ 46 - 14
build/jsb-link/js backups (useful for debugging)/main.index.js

@@ -2112,7 +2112,7 @@ this.appId = "wxcf31f0e54f7fefda";
 this.umengChannel = "";
 this.deviceType = "";
 this.androidVersion = "";
-this.mac = "1e:03:e4:13:b3:23,f6:60:e4:1a:b7:27";
+this.mac = "1e:06:e5:13:b3:23,f6:60:e4:1a:b7:27";
 this.machineInfo = {
 android_id: "",
 idfa: "",
@@ -4331,6 +4331,7 @@ i(e, t);
 function e() {
 var e = null !== t && t.apply(this, arguments) || this;
 e.list_data = [];
+e.update_list = !1;
 e.init_rmb_style = !0;
 e._receip_total_rmb = 0;
 e.cash_type = {
@@ -4370,6 +4371,7 @@ for (var e in t) "withdrawalCode" != e && (t[e] = parseInt(t[e]));
 });
 this.list_data = t.data;
 this.initReceipTotalRMB();
+this.update_list = !0;
 }
 return [ 2 ];
 }
@@ -4638,9 +4640,8 @@ e.lbl_none = null;
 return e;
 }
 e.prototype.start = function() {
+gData.cashNormal.getRecord();
 this.initTotal();
-this.initScrollView();
-this.initNoneItem();
 };
 e.prototype.initScrollView = function() {
 this.scroll_view.node.emit("srollview-init", gData.cashNormal.list_data);
@@ -4652,6 +4653,13 @@ e.prototype.initNoneItem = function() {
 var t = gData.cashNormal.list_data.length;
 this.lbl_none.node.active = !t;
 };
+e.prototype.update = function() {
+if (gData.cashNormal.update_list) {
+this.initScrollView();
+this.initNoneItem();
+gData.cashNormal.update_list = !1;
+}
+};
 a([ s({
 displayName: "滚动视图",
 type: cc.ScrollView
@@ -9054,7 +9062,10 @@ this.nodeRedPoint.node_turnable.active = gData.turnable.redPoint();
 this.nodeRedPoint.node_blessingBag.active = gData.blessingBag.redPoint();
 this.nodeRedPoint.node_redeem.active = gData.redeem.redPoint();
 gData.gameData.init_red_point = !1;
-this.nodeRedPoint.node_redbagCash.active && mk.guide.open(2);
+if (this.nodeRedPoint.node_redbagCash.active) {
+mk.ui.closeAllUI([ "game", "guide" ]);
+mk.guide.open(2);
+}
 };
 e.prototype.autoOpenPanel = function() {
 if (!gData.gameData.isNewPlayer()) {
@@ -11795,7 +11806,7 @@ gData.appData.fixDes = e.data.bugRestoreRemark;
 gData.appData.needForceUpdate = 0;
 console.error("[Login]无response.data 请检查.");
 }
-mk.console.log("===[Login] gData.appData.needForceUpdate", e);
+mk.console.logSingle("===[Login] gData.appData.needForceUpdate", e);
 return [ 2 ];
 }
 });
@@ -14091,7 +14102,7 @@ this.lbl_deposit.string = t.toFixed(2) + "元";
 };
 e.prototype.clickCashOP = function() {
 mk.audio.playEffect("button");
-if (gData.gameData.gameData.isWithdrawable) if (gData.gameData.gameData.piggyBank < gData.pigbank.cash_min_limit) mk.tip.pop("满" + gData.pigbank.cash_min_limit + "元可提现"); else if (gData.loginData.isAuth) {
+if (gData.gameData.gameData.isWithdrawable) if (gData.gameData.gameData.piggyBank < gData.pigbank.cash_min_limit) mk.tip.pop("满" + (gData.pigbank.cash_min_limit / 100).toFixed(2) + "元可提现"); else if (gData.loginData.isAuth) {
 mk.data.sendDataEvent(l.DataEventId.jarWithDrawal, "存钱罐提现成功");
 gData.pigbank.cashOP();
 mk.ui.closePanel(this.node.name);
@@ -14865,6 +14876,7 @@ i(e, t);
 function e() {
 var e = null !== t && t.apply(this, arguments) || this;
 e.init_list = !1;
+e.update_list = !1;
 e.c_data = [];
 e._cash_bar = 1;
 return e;
@@ -14894,9 +14906,9 @@ configurable: !0
 });
 e.prototype.cashOP = function() {
 return a(this, void 0, void 0, function() {
-var t, e, n, o, i;
-return r(this, function(a) {
-switch (a.label) {
+var t, e, n, o, i, a, c;
+return r(this, function(r) {
+switch (r.label) {
 case 0:
 if (!gData.loginData.isAuth) {
 s.default.WxAuth();
@@ -14909,7 +14921,7 @@ index: t
 return [ 4, mk.http.sendData("cashUsual", e) ];
 
 case 1:
-if (0 != (n = a.sent()).errcode) {
+if (0 != (n = r.sent()).errcode) {
 mk.tip.pop(n.errmsg);
 mk.console.logSingle("提现index", t);
 mk.console.logSingle("提现错误内容:", n);
@@ -14918,10 +14930,16 @@ return [ 2 ];
 cc.log("红包提现成功");
 0 == (o = n.data).CashMode || o.CashMode;
 this.cash_bar++;
+this.update_list = !0;
 gData.gameData.gameData.cashIndex++;
 i = this.getItemDataByIndex(t);
 gData.gameData.gameData.redMoney -= i.type_value;
-gData.receiptNotice.receip_rmb = o.CashStatusList[0].amount;
+a = 0;
+for (c = 0; c < o.CashStatusList.length; c++) if (o.CashStatusList[c].index == t) {
+a = o.CashStatusList[c].amount;
+break;
+}
+gData.receiptNotice.receip_rmb = a;
 gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
 mk.ui.openPanel("module/receiptNotice/receiptNotice");
 this.sortList();
@@ -15255,13 +15273,17 @@ gData.redBagCash.init_list = !0;
 gData.redBagCash.initState();
 };
 e.prototype.update = function() {
-if (gData.redBagCash.init_list) {
+if (gData.redBagCash.update_list) {
+this.sroll_view.node.emit("srollview-init", gData.redBagCash.c_data);
+this.initMoney();
+} else if (gData.redBagCash.init_list) {
 this.initScrollView();
 this.initMoney();
 }
 };
 e.prototype.lateUpdate = function() {
 gData.redBagCash.init_list = !1;
+gData.redBagCash.update_list = !1;
 };
 e.prototype.initScrollView = function() {
 var t = this;
@@ -15292,7 +15314,7 @@ gData.gameData.setProp(c.GameProp.isOpenBankOnCloseCash, 1);
 }
 };
 e.prototype.onClickClose = function() {
-r.default.Inst.ifPass && r.default.Inst.gameCount();
+r.default.Inst && r.default.Inst.ifPass && r.default.Inst.gameCount();
 };
 a([ u({
 displayName: "滚动视图",
@@ -15481,7 +15503,7 @@ return [ 2 ];
 };
 e.prototype.initItem = function(t) {
 this.item_data = t;
-this.lbl_rmb.string = t.amount + "元";
+this.lbl_rmb.string = (t.amount / 100).toFixed(2) + "元";
 this.lbl_time.string = mk.time.getNowDayString(1e3 * t.applyTime);
 this.lbl_code.string = t.withdrawalCode ? "红包码:" + t.withdrawalCode : "";
 };
@@ -20680,11 +20702,21 @@ mk.event.emit("close-panel", t);
 }
 };
 e.prototype.destroyNode = function(t, e, n) {
+void 0 === n && (n = null);
 t.destroy();
 delete this.curOnPanelDic[e];
 this.isPanelClosing = !1;
 n && n();
 };
+e.prototype.closeAllUI = function(t) {
+void 0 === t && (t = null);
+for (var e in this.curOnPanelDic) if (!(t && t.length > 0 && -1 != t.indexOf(e))) {
+var n = this.getCurOnPanel(e), o = n.getComponent("EffectOpenAndClose");
+o ? o.hideEffect(this.destroyNode.bind(this, n, e)) : this.destroyNode(n, e);
+mk.event.emit("close-panel", e);
+}
+this.isPanelClosing = !1;
+};
 return a([ s ], e);
 }(cc.Component));
 n.default = l;

+ 2 - 2
packages-hot-update/cfg.json

@@ -7,7 +7,7 @@
         "http://",
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminateTest/baseRemote/"
     ],
-    "buildTime": 1625453067419,
-    "genTime": 1625453067419,
+    "buildTime": 1625477127587,
+    "genTime": 1625477127587,
     "genVersion": null
 }