Skip to content

Commit 84af555

Browse files
author
lucas
committed
Merge branch 'dev_2.7.0' into dev_optimization
2 parents 66fe0dd + 5725dc7 commit 84af555

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

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

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import android.view.ViewGroup;
1010

1111
import com.taobao.luaview.cache.AppCache;
12+
import com.taobao.luaview.util.JsonUtil;
1213

1314
import org.json.JSONException;
1415
import org.json.JSONObject;
@@ -393,12 +394,24 @@ protected void navigation(Uri uri, HashMap<String, String> params, IRouterCallba
393394
}
394395
}
395396
if (params != null) {
396-
String value = params.get("data");
397-
if (!TextUtils.isEmpty(value)) {
397+
String miniAppInfo = params.get(VenvyObservableTarget.Constant.CONSTANT_MINI_APP_INFO);
398+
String videoModeType = params.get(VenvyObservableTarget.Constant.CONSTANT_VIDEO_MODE_TYPE);
399+
if (!TextUtils.isEmpty(miniAppInfo) || !TextUtils.isEmpty(videoModeType)) {
398400
if (targetDataMap == null) {
399401
targetDataMap = new HashMap<>();
400402
}
401-
targetDataMap.put("data", value);
403+
try {
404+
JSONObject valueObj = new JSONObject();
405+
if (!TextUtils.isEmpty(miniAppInfo)) {
406+
valueObj.put("miniAppInfo", new JSONObject(miniAppInfo));
407+
}
408+
if (!TextUtils.isEmpty(videoModeType)) {
409+
valueObj.put("videoModeType", videoModeType);
410+
}
411+
targetDataMap.put("data", valueObj.toString());
412+
} catch (Exception e) {
413+
414+
}
402415
}
403416
}
404417
if (targetDataMap != null) {

0 commit comments

Comments
 (0)