瀏覽代碼

update dynamic ip

zy_1995 6 月之前
父節點
當前提交
a8959b3ece
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      assets/Scene/Script/Lobby.js

+ 6 - 1
assets/Scene/Script/Lobby.js

@@ -52,6 +52,11 @@ cc.Class({
         this.m_RoomCard = this.$('plazabg/NdButton/BtGetGold/L_RoomCard@Label');
         this.m_MenuNode = this.$('plazabg/NdButton/MenuBG');
         this.m_MenuNode.active == false;
+        //临时处理
+        this.m_StoreBtnNode = this.$('plazabg/NdButton/BottomButton/BtMoreStrong');
+        if (this.m_StoreBtnNode) {
+            this.m_StoreBtnNode.active = cc.sys.OS_IOS == cc.sys.os || CC_DEBUG;
+        }
 
         var pGlobalUserData = g_GlobalUserInfo.GetGlobalUserData();
 
@@ -1015,7 +1020,7 @@ cc.Class({
         }
         // this.ShowTips("购买商品成功,获得钻石99个!");
         let userId = g_GlobalUserInfo.GetGlobalUserData().dwUserID;
-        let webUrl = "http://35.236.162.201:8080/pay.php";
+        let webUrl = `${window["PHP_HOME"]}/pay.php`;
         let sendData = {
             userId: userId,
             orderId: this.orderId,