Selaa lähdekoodia

feat:更新测试服兼容

jinx 3 vuotta sitten
vanhempi
commit
d6965aafa3
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      socket.js

+ 4 - 1
socket.js

@@ -68,7 +68,10 @@ export default {
     let hostUrl
     if (options.url.indexOf('www.4dkankan.com') != -1) {
       hostUrl = 'https://www.4dkankan.com/shop-container-zfb/'
-    } else {
+    } else if(options.url.indexOf('test.4dkankan.com') != -1){
+      hostUrl = 'https://test.4dkankan.com/shop-container-zfb/'
+    }else
+    {
       // hostUrl = 'https://zfb.4dkankan.com/shop-container/'
       hostUrl = remote.viewHost+'/shop-container/'
     }