Commit 65ae887c authored by leon's avatar leon

feat:request header add appid

parent fa2c7e1e
......@@ -29,6 +29,7 @@ const install = (Vue, vm) => {
config.header.source = "wechat"
config.header.loginName = uni.getStorageSync('username')
config.header.staffNo = uni.getStorageSync('staffNo')
config.header.appId = wx.getAccountInfoSync().miniProgram.appId
return config
}, (config) => {
return Promise.reject(config)
......
......@@ -54,7 +54,8 @@
var userId = uni.getStorageSync('userId')
var param = {
id: userId,
authorized: this.$data.confirmed
authorized: this.$data.confirmed,
appId: wx.getAccountInfoSync().miniProgram.appId,
}
this.$u.api.getAuthorizedList(param).then(res=>{
const { Status, Result } = res.data
......@@ -72,7 +73,8 @@
var param = {
type: type,
id: id,
operatorId: operatorId
operatorId: operatorId,
appId: wx.getAccountInfoSync().miniProgram.appId,
}
this.$u.api.authorizeOrUnauthorize(param).then(res=>{
const { Status, Result } = res.data
......
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