|
@@ -400,7 +400,7 @@ class AboutActivity : CommonBVMActivity<ActivityAboutBinding, AboutViewModel>()
|
|
|
binding.ivLogo.setOnClickListener {
|
|
|
|
|
|
// pageSize++
|
|
|
- getCook("3844312")
|
|
|
+// getCook("4115812")
|
|
|
|
|
|
weightAlignCount++
|
|
|
if (weightAlignCount >= 7) {
|
|
@@ -484,7 +484,7 @@ class AboutActivity : CommonBVMActivity<ActivityAboutBinding, AboutViewModel>()
|
|
|
|
|
|
binding.tvAppVersion.setOnClickListener {
|
|
|
|
|
|
- getCook("3899112")
|
|
|
+// getCook("3899112")
|
|
|
|
|
|
|
|
|
adbCount++
|
|
@@ -499,6 +499,8 @@ class AboutActivity : CommonBVMActivity<ActivityAboutBinding, AboutViewModel>()
|
|
|
}
|
|
|
|
|
|
binding.tvFirmware.setOnClickListener {
|
|
|
+// getappLog()
|
|
|
+
|
|
|
tpCount++
|
|
|
if (tpCount >= 7) {
|
|
|
tpCount = 0
|
|
@@ -516,7 +518,7 @@ class AboutActivity : CommonBVMActivity<ActivityAboutBinding, AboutViewModel>()
|
|
|
|
|
|
|
|
|
binding.devSn.setOnClickListener {
|
|
|
- getCook("3858012")
|
|
|
+// getCook("1878112")
|
|
|
|
|
|
|
|
|
testCount++
|
|
@@ -603,8 +605,8 @@ class AboutActivity : CommonBVMActivity<ActivityAboutBinding, AboutViewModel>()
|
|
|
var titleMap = HashMap<String, Any>()
|
|
|
var map = HashMap<String, Any>()
|
|
|
map["lang"] = "PL"
|
|
|
- map["categoryIds"] = ""
|
|
|
- map["name"] = "Arancello"
|
|
|
+// map["categoryIds"] = ""
|
|
|
+ map["name"] = "A"
|
|
|
map["orderType"] = 1
|
|
|
map["pageNo"] = 0
|
|
|
map["pageSize"] = 40
|
|
@@ -613,15 +615,16 @@ class AboutActivity : CommonBVMActivity<ActivityAboutBinding, AboutViewModel>()
|
|
|
|
|
|
android.util.Log.e("TAG TUYA", "json:" + json)
|
|
|
|
|
|
- appGlobalScope.launch(Dispatchers.IO) {
|
|
|
- var httpResponse =
|
|
|
- TuyaUtils.ioTSDKManager.httpRequest("tuya.device.menu.lang.list", "1.0", json)
|
|
|
- var str = httpResponse.result
|
|
|
- withContext(Dispatchers.Main) {
|
|
|
- Log.d("TAG", "json:$str")
|
|
|
- }
|
|
|
+ CommonUtils.getTuyaBean<RecipesListBean>("tuya.device.menu.lang.list", "1.0",
|
|
|
+ json, RecipesListBean::class.java, object : CommonUtils.TuyaHttp<RecipesListBean> {
|
|
|
+ override fun bean(t: RecipesListBean) {
|
|
|
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
+ override fun fail() {
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
|
|
|
}
|
|
|
|