|
|
@@ -11,12 +11,12 @@ import com.lzy.okgo.model.HttpHeaders |
|
|
import com.lzy.okgo.model.Response |
|
|
import com.lzy.okgo.model.Response |
|
|
import com.yzx.ebrand.model.User |
|
|
import com.yzx.ebrand.model.User |
|
|
import java.text.SimpleDateFormat |
|
|
import java.text.SimpleDateFormat |
|
|
import java.util.* |
|
|
|
|
|
|
|
|
import java.util.Date |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
object Monitor { |
|
|
object Monitor { |
|
|
val DT_URL = |
|
|
val DT_URL = |
|
|
"https://oapi.dingtalk.com/robot/send?access_token=886b2c609ddbcc1c8ff80abfd847e9c192bbde80815721204799b0b300cd7418" |
|
|
|
|
|
|
|
|
"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=78f41a5d-0d2d-452d-ae57-b0fd1a6aaa98" |
|
|
|
|
|
|
|
|
fun postDingTalkMsg() { |
|
|
fun postDingTalkMsg() { |
|
|
val monitorText = SPUtils.getInstance().getString("crashData") |
|
|
val monitorText = SPUtils.getInstance().getString("crashData") |
|
|
@@ -81,7 +81,7 @@ object Monitor { |
|
|
|
|
|
|
|
|
fun postNetError(errorInfo:StringBuilder){ |
|
|
fun postNetError(errorInfo:StringBuilder){ |
|
|
val stringBuffer = StringBuffer() |
|
|
val stringBuffer = StringBuffer() |
|
|
stringBuffer.append("电子屏异常上报:").append("\n") |
|
|
|
|
|
|
|
|
stringBuffer.append("电子班牌异常上报:").append("\n") |
|
|
stringBuffer.append("异常类型:").append("接口异常").append("\n") |
|
|
stringBuffer.append("异常类型:").append("接口异常").append("\n") |
|
|
stringBuffer.append("系统信息:").append(AppUtils.getAppInfo().versionName).append("\n") |
|
|
stringBuffer.append("系统信息:").append(AppUtils.getAppInfo().versionName).append("\n") |
|
|
val user = User.getUser() |
|
|
val user = User.getUser() |
|
|
|