Commit 7eeaff6d by 李伟康

增加预发布配置

1 parent a809f908
import { preReleaseAppId } from '~/config' import { preReleaseAppId } from '~/config'
const target = ['ip', 'dev', 'uat', 'prod', 'preRelease'] const target = ['ip', 'dev', 'uat', 'prod', 'preRelease']
let index = 2 let index = 4
/** /**
* *
......
...@@ -54,7 +54,8 @@ class Request { ...@@ -54,7 +54,8 @@ class Request {
} : { } : {
'Cache-Control': 'no-cache' 'Cache-Control': 'no-cache'
} }
header.merchantId = wx.$merchant_id || defaultMerchantId let {merchantId} = wx.p.storage.get('merchant_info')
header.merchantId = merchantId || wx.$merchant_id || defaultMerchantId
let projectName = this.getRopProject(params.method) let projectName = this.getRopProject(params.method)
if (!projectName) projectName = this.getRopProject(params.method) if (!projectName) projectName = this.getRopProject(params.method)
const path = pathEnum[projectName] const path = pathEnum[projectName]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!