|
|
@@ -158,16 +158,19 @@ export function getAllInterface(e) {
|
|
|
* endTime 结束时间 2022-09-29
|
|
|
*/
|
|
|
export function queryBusinessStatistics(params) {
|
|
|
- return new Promise<void>((resolve) => {
|
|
|
- defHttp.post({ url: Api.BusinessStatistics, params })
|
|
|
- .then((r) => {
|
|
|
- if (r.resp_code == 0 && r.datas) {
|
|
|
- resolve(r.datas);
|
|
|
- } else {
|
|
|
- resolve();
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
+ var url = window.location.href;
|
|
|
+ if(!url.indexOf("localhost") > -1 && !url.indexOf("127.0.0.1") > -1 && !url.indexOf("106.12.170.138") > -1){
|
|
|
+ return new Promise<void>((resolve) => {
|
|
|
+ defHttp.post({ url: Api.BusinessStatistics, params })
|
|
|
+ .then((r) => {
|
|
|
+ if (r.resp_code == 0 && r.datas) {
|
|
|
+ resolve(r.datas);
|
|
|
+ } else {
|
|
|
+ resolve();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|