Skip to content

Commit e0b3eed

Browse files
author
videopls
committed
解决视联网标签不显示问题
1 parent 9524e7a commit e0b3eed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

VideoOS/venvy_pub/src/main/java/cn/com/videopls/pub/VideoPlusController.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ public void successful(Object result, String miniAppInfo, final ServiceQueryAdsI
169169

170170

171171
HashMap<String, String> skipParams = new HashMap<>();
172-
JSONObject jsonObject = new JSONObject();
173172
try {
174173
// json data
175-
jsonObject.put(CONSTANT_DATA, result.toString());
174+
JSONObject jsonObject = new JSONObject(result.toString());
175+
176176
// 视联网模式 启动模式(气泡、标签).
177177
if (serviceType == ServiceType.ServiceTypeVideoMode_POP) {
178178
jsonObject.put(CONSTANT_VIDEO_MODE_TYPE, "1");
@@ -182,12 +182,12 @@ public void successful(Object result, String miniAppInfo, final ServiceQueryAdsI
182182

183183
// miniAppInfo
184184
if (!TextUtils.isEmpty(miniAppInfo)) {
185-
jsonObject.put(CONSTANT_MINI_APP_INFO, miniAppInfo);
185+
jsonObject.put(CONSTANT_MINI_APP_INFO, new JSONObject(miniAppInfo));
186186
}
187+
skipParams.put(CONSTANT_DATA, jsonObject.toString());
187188
} catch (JSONException e) {
188189
e.printStackTrace();
189190
}
190-
skipParams.put(CONSTANT_DATA, jsonObject.toString());
191191
navigation(builder.build(), skipParams, new IRouterCallback() {
192192
@Override
193193
public void arrived() {

0 commit comments

Comments
 (0)