Commit f2930326 by 李伟康

增加默认门店

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