提交 7f36cd88 编写于 作者: 2 23700113@qq.com

fix(app): 一键登录样式显示问题,113997

上级 08b6dc35
......@@ -31,7 +31,7 @@ export function login (params, callbackId) {
authResult: authResult,
errMsg: 'login:ok'
})
}, errorCallback, provider === 'apple' ? { scope: 'email' } : params.univerifyStyle || {})
}, errorCallback, provider === 'apple' ? { scope: 'email' } : { univerifyStyle: params.univerifyStyle } || {})
}
// 先注销再登录
// apple登录logout之后无法重新触发获取email,fullname;一键登录无logout
......
......@@ -185,21 +185,21 @@ export function warpPlusEvent (module, name) {
}
}
export function warpPlusSuccessCallback (callbackId, neme) {
export function warpPlusSuccessCallback (callbackId, name) {
return function errorCallback (result) {
result = result || {}
invoke(callbackId, Object.assign({}, result, {
errMsg: `${neme}:ok`
errMsg: `${name}:ok`
}))
}
}
export function warpPlusErrorCallback (callbackId, neme, errMsg) {
export function warpPlusErrorCallback (callbackId, name, errMsg) {
return function errorCallback (error) {
error = error || {}
const code = error.code || 0
invoke(callbackId, {
errMsg: `${neme}:fail ${error.message || errMsg || ''}`,
errMsg: `${name}:fail ${error.message || errMsg || ''}`,
errCode: code,
code
})
......@@ -232,4 +232,4 @@ export function getFileName (path) {
export function getExtName (path) {
const array = path.split('.')
return array.length > 1 ? '.' + array[array.length - 1] : ''
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册