Commit f2930326 by 李伟康

增加默认门店

1 parent 80be028e
......@@ -106,10 +106,9 @@ const pathEnum = {
busassistant: '/rop-scrm-busassistant/'
}
const defaultMerchantId = {
ip: '44184606',
dev: '44184606',
uat: '44184606',
preRelease: '44184606',
ip: '44210895',
dev: '44210895',
uat: '44210895',
prod: '44189923'
}[target[index]]
module.exports = {
......
import {
defaultMerchantId,
secretKey,
pathEnum,
domain,
......@@ -32,8 +33,7 @@ class Request {
let header = RequestMethods === 'POST' ? {
'content-type': 'application/x-www-form-urlencoded'
} : {'Cache-Control': 'no-cache'}
// const merchantId = wx.p.util.getStorageSync('srcm_shopmall_merchant_id')
// if (merchantId) header.merchantId = merchantId
header.merchantId = defaultMerchantId
let projectName = this.getRopProject(params.method)
if (!projectName) projectName = this.getRopProject(params.method)
const path = pathEnum[projectName]
......
......@@ -21,7 +21,7 @@ Page({
message
} = await wx.p.api.userApi.login()
wx.$authStatus = code != 0
if (data) wx.setStorageSync('merchant_info', {
if (data) wx.p.storage.set('merchant_info', {
merchantId: data.merchantId,
merchantName: data.merchantName
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!