mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-09 01:17:06 +08:00
add the tip dialog of LOGIN_STATUS_INVALID
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import DingtalkPlugin from '@geekgeekrun/dingtalk-plugin/index.mjs'
|
import DingtalkPlugin from '@geekgeekrun/dingtalk-plugin/index.mjs'
|
||||||
import { app } from 'electron'
|
import { app, dialog } from 'electron'
|
||||||
import { SyncHook, AsyncSeriesHook } from 'tapable'
|
import { SyncHook, AsyncSeriesHook } from 'tapable'
|
||||||
import {
|
import {
|
||||||
readConfigFile,
|
readConfigFile,
|
||||||
@@ -121,6 +121,11 @@ const runAutoChat = async () => {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof Error) {
|
if (err instanceof Error) {
|
||||||
if (err.message.includes('LOGIN_STATUS_INVALID')) {
|
if (err.message.includes('LOGIN_STATUS_INVALID')) {
|
||||||
|
await dialog.showMessageBox({
|
||||||
|
type: `error`,
|
||||||
|
message: `登录状态无效`,
|
||||||
|
detail: `请重新登录Boss直聘`
|
||||||
|
})
|
||||||
process.exit(AUTO_CHAT_ERROR_EXIT_CODE.LOGIN_STATUS_INVALID)
|
process.exit(AUTO_CHAT_ERROR_EXIT_CODE.LOGIN_STATUS_INVALID)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user