v1.1.3
This commit is contained in:
parent
cb46da07a0
commit
c66735b8b9
@ -2,8 +2,8 @@
|
||||
"name" : "wx-starlock",
|
||||
"appid" : "__UNI__933D519",
|
||||
"description" : "",
|
||||
"versionName" : "1.1.2",
|
||||
"versionCode" : "29",
|
||||
"versionName" : "1.1.3",
|
||||
"versionCode" : "30",
|
||||
"transformPx" : false,
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin" : {
|
||||
|
||||
@ -303,7 +303,7 @@
|
||||
js_code: loginRes.code
|
||||
})
|
||||
if(code === 0) {
|
||||
setStorage('openid', data.openid)
|
||||
await setStorage('openid', data.openid)
|
||||
if(data.accessToken) {
|
||||
setStorage('token', data.accessToken)
|
||||
that.getLockList(that.lockSearch)
|
||||
|
||||
@ -35,7 +35,10 @@ export const useUserStore = defineStore('user', {
|
||||
},
|
||||
async phoneLogin(params) {
|
||||
const { iv, encryptedData } = params
|
||||
const openid = getStorage('openid')
|
||||
const openid = await getStorage('openid')
|
||||
if(!openid) {
|
||||
return false
|
||||
}
|
||||
const { code, data } = await phoneLoginRequest({ iv, encryptedData, openid })
|
||||
if(code === 0) {
|
||||
setStorage('token', data.accessToken)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user