授权作用域降为snsapi_base
This commit is contained in:
@@ -57,7 +57,7 @@ export const config = {
|
|||||||
getCode({state, dispatch}, tryAgentSign = false) {
|
getCode({state, dispatch}, tryAgentSign = false) {
|
||||||
let {corpid: corpId, suiteId, agentid: agentId} = state, url = location.href, REDIRECT_URI = encodeURIComponent(url), scope = "snsapi_privateinfo"
|
let {corpid: corpId, suiteId, agentid: agentId} = state, url = location.href, REDIRECT_URI = encodeURIComponent(url), scope = "snsapi_privateinfo"
|
||||||
if (/\/AppForm\//.test(location.search)) {
|
if (/\/AppForm\//.test(location.search)) {
|
||||||
scope = "snsapi_userinfo"
|
scope = "snsapi_base"
|
||||||
} else if (suiteId) {
|
} else if (suiteId) {
|
||||||
corpId = suiteId
|
corpId = suiteId
|
||||||
scope = "snsapi_privateinfo"
|
scope = "snsapi_privateinfo"
|
||||||
|
|||||||
Reference in New Issue
Block a user