update 默认不加密;环境异常提示

This commit is contained in:
gallonyin
2023-07-19 19:11:40 +08:00
parent 535498617c
commit 7ac8a8527c
4 changed files with 6 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ object Constant {
set(value) {
SPUtils.getInstance().put(weworkCorpName + "weworkMP", value)
}
var encryptType: Int = SPUtils.getInstance().getInt("encryptType", 1)
var encryptType: Int = SPUtils.getInstance().getInt("encryptType", 0)
var autoReply: Int = SPUtils.getInstance().getInt("autoReply", 1)
var groupStrict: Boolean
get() = SPUtils.getInstance().getBoolean("groupStrict", false)

View File

@@ -139,7 +139,7 @@ class ListenActivity : AppCompatActivity() {
if (riskRetry > 10) {
ToastUtils.showLong("再点${20 - riskRetry}次 允许本次运行")
} else {
ToastUtils.showLong("新号请勿使用模拟器/云手机")
ToastUtils.showLong("环境监测异常,请勿使用本应用")
}
if (++riskRetry > 20) {
SPUtils.getInstance().put("risk", false)

View File

@@ -80,8 +80,8 @@ object WeworkLoopImpl {
return false
}
if (SPUtils.getInstance().getBoolean("risk", false)) {
LogUtils.e("新号请勿使用模拟器/云手机")
ToastUtils.show("新号请勿使用模拟器/云手机")
LogUtils.e("环境监测异常,请勿使用本应用")
ToastUtils.show("环境监测异常,请勿使用本应用")
MyApplication.launchIntent()
sleep(5000)
return false

View File

@@ -95,8 +95,8 @@ object HttpUtil {
if (CheckRoot.isDeviceRooted()) {
val date = TimeUtils.string2Date(commonResult.data.createTime, "yyyy-MM-dd'T'HH:mm:ss")
if (System.currentTimeMillis() - date.time < 7 * 68400 * 1000) {
LogUtils.e("新号使用模拟环境!")
ToastUtils.showLong("新号请勿使用模拟器/云手机")
LogUtils.e("环境监测异常,请勿使用本应用")
ToastUtils.showLong("环境监测异常,请勿使用本应用")
SPUtils.getInstance().put("risk", true)
}
}