@@ -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
@@ -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":"花掌柜"
}
@@ -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": {
@@ -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;