fix:调整顺序
This commit is contained in:
父節點
3a927408c4
當前提交
5884aadc13
@ -79,10 +79,10 @@ export async function acquireCourse(course: IJsonCourse, channel: TChannel): Pro
|
||||
if (resp.data.success === true) {
|
||||
return true
|
||||
} else {
|
||||
logAndNotifyUser(resp.data.message)
|
||||
if(resp.data.message.includes('当前账号已在别处登录')){
|
||||
await resetCookie()
|
||||
}
|
||||
logAndNotifyUser(resp.data.message)
|
||||
return false
|
||||
}
|
||||
} catch (e) {
|
||||
@ -96,10 +96,10 @@ export async function exitCourse(course: IJsonCourse): Promise<boolean> {
|
||||
if (resp.data.success === true) {
|
||||
return true
|
||||
} else {
|
||||
logAndNotifyUser('[exitCourse]退课失败:' + resp.data.message)
|
||||
if(resp.data.message.includes('当前账号已在别处登录')){
|
||||
await resetCookie()
|
||||
}
|
||||
logAndNotifyUser('[exitCourse]退课失败:' + resp.data.message)
|
||||
return false
|
||||
}
|
||||
} catch (e) {
|
||||
|
載入中…
x
新增問題並參考
Block a user