log修改
This commit is contained in:
parent
5a0aa60061
commit
4e5287047f
|
@ -31,7 +31,9 @@ class MainApplication : Application() {
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
instance = this
|
instance = this
|
||||||
LogUtils.getConfig().setLog2FileSwitch(true)
|
LogUtils.getConfig()
|
||||||
|
.setBorderSwitch(false)
|
||||||
|
.setLog2FileSwitch(true)
|
||||||
initEvn()
|
initEvn()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -220,8 +220,7 @@ object JsonUtils {
|
||||||
try {
|
try {
|
||||||
taskJson?.let {
|
taskJson?.let {
|
||||||
val deviceJo = it.getJSONObject("device")
|
val deviceJo = it.getJSONObject("device")
|
||||||
LogUtils.e("deviceJo:$deviceJo")
|
// LogUtils.d("deviceJo:$deviceJo")
|
||||||
LogUtils.e("deviceJo sensor:${deviceJo.optJSONArray("sensor")}")
|
|
||||||
val deviceParamJo: JSONObject = DeviceConvertUtil.MGConvert(deviceJo)
|
val deviceParamJo: JSONObject = DeviceConvertUtil.MGConvert(deviceJo)
|
||||||
if (it.has("isCollectURL")) {
|
if (it.has("isCollectURL")) {
|
||||||
deviceJo.put("isCollectURL", true)
|
deviceJo.put("isCollectURL", true)
|
||||||
|
|
Loading…
Reference in New Issue