Commit 7e1cd4d2 authored by xuguangxing's avatar xuguangxing

feat: vcc开关状态查询请求头version跟随app版本

parent a5316dc0
...@@ -26,9 +26,18 @@ export default { ...@@ -26,9 +26,18 @@ export default {
}); });
}, },
getFinanceSetting() { getFinanceSetting() {
const customHeader: any = {};
if (EASY_ENV_IS_BROWSER) {
const ua = window.navigator.userAgent;
const appVersion = ua.match(/xyqb\/([\d|.]+)/) ? (ua.match(/xyqb\/([\d|.]+)/) as string[])[1] : '8.2.00';
customHeader.version = appVersion;
}
// return http.post(`http://yapi.quantgroups.com/mock/351/api/kdsp/api/kdsp/vcc_switch`, { // return http.post(`http://yapi.quantgroups.com/mock/351/api/kdsp/api/kdsp/vcc_switch`, {
return http.post(`${config.kdspHost}/api/kdsp/vcc_switch/get-vcc-status`, { return http.post(`${config.kdspHost}/api/kdsp/vcc_switch/get-vcc-status`, {
areaType: 6 areaType: 6
}, {
customHeader
}); });
} }
}; };
\ No newline at end of file
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
}, },
"redis": { "redis": {
"port": "30835", "port": "30835",
"host": "172.16.4.6", "host": "172.16.4.89",
"password": "", "password": "",
"db": 0 "db": 0
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment