Commit e9d21e1b authored by Hsinli's avatar Hsinli

addd

parent 57bf6d65
Pipeline #19372 passed with stage
in 1 minute 12 seconds
...@@ -138,7 +138,20 @@ class CheckService extends Service { ...@@ -138,7 +138,20 @@ class CheckService extends Service {
//pro环境 142对应193 143对应194 //pro环境 142对应193 143对应194
//uat环境 174对应175 176对应177 //uat环境 174对应175 176对应177
let bid = inputParams['business_id'] ? Number(inputParams['business_id']) : 142; let bid = inputParams['business_id'] ? Number(inputParams['business_id']) : 142;
let businessId = this.config.CFG_ENV === 'pro' ? (bid === 142 ? 193 : 194) : (this.config.CFG_ENV === 'uat' ? (bid === 174 ? 175 : 177) : 1); let businessId = 1;
if (this.config.CFG_ENV === 'pro') {
if (bid === 142) {
businessId = 193;
} else if (bid === 143) {
businessId = 194;
} else if (bid === 133) {
businessId = 195
} else {
ctx.failed('配置信息异常');
}
} else if (this.config.CFG_ENV === 'uat') {
businessId = bid === 174 ? 175 : 177;
}
let businessInfo = await this.getBusinessInfo(businessId); let businessInfo = await this.getBusinessInfo(businessId);
ret.url = businessInfo.url; ret.url = businessInfo.url;
} }
......
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