Commit 21f5ee0c by 张立顺

fix bug修复

1 parent d6b48e26
...@@ -30,6 +30,9 @@ function request(params = {}, method = RequestMethods.GET, noSignAttr = [], opti ...@@ -30,6 +30,9 @@ function request(params = {}, method = RequestMethods.GET, noSignAttr = [], opti
apiName = "strategy"; apiName = "strategy";
} else if (params.method.includes("dj.api.supervisor")) { } else if (params.method.includes("dj.api.supervisor")) {
apiName = "supervisor"; apiName = "supervisor";
} else if (params.method.includes("dj.pad.api")) {
// rop-dj-pad 等方法名含 dj.pad,split(".api") 会得到 dj.pad 无 mapping;签名与 appKey 沿用 dj
apiName = "dj";
} else { } else {
// console.log(params.method.split(".api")) // console.log(params.method.split(".api"))
apiName = params.method.split(".api")[0]; apiName = params.method.split(".api")[0];
......
...@@ -15,6 +15,27 @@ function scrmCarlifeRopUrl() { ...@@ -15,6 +15,27 @@ function scrmCarlifeRopUrl() {
return "https://scrm.glsx.com.cn/rop-scrm-carlife/router"; return "https://scrm.glsx.com.cn/rop-scrm-carlife/router";
} }
function djPadRopUrl() {
const b = baseConfig || {};
if (b.djPadRouter)
return b.djPadRouter;
const ax = b.axios && b.axios.baseURL;
if (ax && /rop-dj-smartcarlife/i.test(ax))
return ax.replace(/rop-dj-smartcarlife/gi, "rop-dj-pad");
return "https://dj.glsx.com.cn/rop-dj-pad/router";
}
/**
* Pad 网关 — 车架号校验(与小程序 dj.pad.api.vin.validate 一致)
*/
export function padVinValidate(data = {}) {
data.method = "dj.pad.api.vin.validate";
return request(data, RequestMethods.POST, [], {
url: djPadRopUrl(),
returnAll: true,
});
}
/** /**
* SCRM 车生活 — 品牌/子品牌/车系(或下级)树,供级联选择(与 axios2 相同 sign,网关 rop-scrm-carlife) * SCRM 车生活 — 品牌/子品牌/车系(或下级)树,供级联选择(与 axios2 相同 sign,网关 rop-scrm-carlife)
*/ */
......
...@@ -12,7 +12,7 @@ const AI_REPORT_STATUS_MAP = { ...@@ -12,7 +12,7 @@ const AI_REPORT_STATUS_MAP = {
0: "未生成", 0: "未生成",
1: "生成中", 1: "生成中",
2: "已生成", 2: "已生成",
3: "失败", 3: "生成失败",
}; };
const AI_REPORT_STATUS_COLOR = { const AI_REPORT_STATUS_COLOR = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!