This commit is contained in:
zlzw 2023-04-19 14:17:01 +08:00
parent 840129651d
commit 1dce512d27

View File

@ -190,7 +190,6 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
if (!TextUtils.isEmpty(adInfo)) { if (!TextUtils.isEmpty(adInfo)) {
JSONObject obj = JSON.parseObject(adInfo); JSONObject obj = JSON.parseObject(adInfo);
Log.i(TAG, "callback: " + adInfo); Log.i(TAG, "callback: " + adInfo);
obj.put("switch", 1);
if (obj.getIntValue("switch") == 1) { if (obj.getIntValue("switch") == 1) {
List<AdBean> list = JSON.parseArray(obj.getString("list"), AdBean.class); List<AdBean> list = JSON.parseArray(obj.getString("list"), AdBean.class);
if (list != null && list.size() > 0) { if (list != null && list.size() > 0) {