fix bug
This commit is contained in:
@@ -118,7 +118,6 @@ class WeworkService : AccessibilityService() {
|
|||||||
//隐藏软键盘模式
|
//隐藏软键盘模式
|
||||||
softKeyboardController.showMode = SHOW_MODE_AUTO
|
softKeyboardController.showMode = SHOW_MODE_AUTO
|
||||||
webSocketManager.close(1000, "service Destroy")
|
webSocketManager.close(1000, "service Destroy")
|
||||||
FloatWindowHelper.hideWindow()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inner class EchoWebSocketListener : WebSocketListener() {
|
inner class EchoWebSocketListener : WebSocketListener() {
|
||||||
|
|||||||
@@ -112,8 +112,10 @@ object HttpUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onError(response: Response<String>) {
|
override fun onError(response: Response<String>) {
|
||||||
ToastUtils.showLong("获取配置失败 请检查机器人ID")
|
if (toast) {
|
||||||
LogUtils.e("获取配置失败 请检查机器人ID")
|
ToastUtils.showLong("获取配置失败,请检查网络/Host/机器人ID")
|
||||||
|
}
|
||||||
|
LogUtils.e("获取配置失败: ${response.code()} ${response.exception?.message}")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user