shish преди 5 години
родител
ревизия
8171ac3005
променени са 4 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 1 1
      ghs/src/constant/index.js
  2. 2 2
      ghs/src/ext.json
  3. 1 1
      ghs/src/manifest.json
  4. 1 1
      ghs/src/utils/socket.js

+ 1 - 1
ghs/src/constant/index.js

@@ -24,7 +24,7 @@ const envVal = {
 
 // #ifdef H5
 envVal.formal = process.env.NODE_ENV == 'development' ? 'https://ghs.huaml.com' : `${window.location.protocol}//${window.location.host}`
-envVal.hostUrl = process.env.NODE_ENV == 'development' ? `https://api.ghs.huaml.com` : `${window.location.protocol}//api.${window.location.host}`
+envVal.hostUrl = process.env.NODE_ENV == 'development' ? `https://api.shop.hzghd.com` : `${window.location.protocol}//api.${window.location.host}`
 // #endif
 
 // #ifdef MP-WEIXIN

+ 2 - 2
ghs/src/ext.json

@@ -4,8 +4,8 @@
   "directCommit": false,
   "ext": {
     "account": 0,
-    "apiHost": "https://api.ghs.huaml.com",
-    "imgHost": "https://img.huaml.com",
+    "apiHost": "https://api.shop.hzghd.com",
+    "imgHost": "https://img.hzghd.com",
     "merchantName":"花掌柜"
   }
 }

+ 1 - 1
ghs/src/manifest.json

@@ -121,7 +121,7 @@
             "port": 81,
             "proxy": {
                 "/api": {
-                    "target": "http://api.ghs.huaml.com",
+                    "target": "http://api.shop.hzghd.com",
                     "secure": false,
                     "changeOrigin": true,
                     "pathRewrite": {

+ 1 - 1
ghs/src/utils/socket.js

@@ -17,7 +17,7 @@ const SocketConfig = {
 };
 class SocketUtil {
 	constructor({ url, onOpen, onMessage, onClose, onError }) {
-		this.url = url || "api.ghs.huaml.com:8282";
+		this.url = url || "api.shop.hzghd.com:8282";
 		this.socket = this.connectSocket(this.url);
 		this.onOpenCall = onOpen;
 		this.onMessageCall = onMessage;