change errcode for login expire

This commit is contained in:
zhl 2023-03-14 16:41:02 +08:00
parent df085e9616
commit 2b36cc865c

View File

@ -36,7 +36,7 @@ class WalletBridgeController extends BaseController {
throw new ZError(13, 'login info mismatch') throw new ZError(13, 'login info mismatch')
} }
if (data.status === 0 && data.expire < Date.now()) { if (data.status === 0 && data.expire < Date.now()) {
throw new ZError(12, 'login expired') data.status = -1
} }
return data return data
} }