4949public class VisionProgramConfigModel extends VideoPlusBaseModel {
5050
5151
52- private static final String CONFIG = "/vision/getMiniAppConf" ;
52+ private static final String CONFIG = "/vision/v2/ getMiniAppConf" ;
5353
5454 private VisionProgramConfigCallback callback ;
5555 private PreloadLuaUpdate mDownLuaUpdate ;
@@ -131,7 +131,6 @@ public void requestFinish(Request request, IResponse response) {
131131 }
132132
133133 final JSONObject decryptData = new JSONObject (jsonStr );
134-
135134 if (isH5Type ) {
136135 final String h5Url = decryptData .optString ("h5Url" );
137136 if (TextUtils .isEmpty (h5Url )) {
@@ -142,22 +141,22 @@ public void requestFinish(Request request, IResponse response) {
142141 bundle .putString (CONSTANT_H5_URL , h5Url );
143142 ObservableManager .getDefaultObserable ().sendToTarget (VenvyObservableTarget .TAG_H5_VISION_PROGRAM , bundle );
144143 }
145-
146144 return ;
147145 }
148146 // lua文件列表 sample : [{url:xxx, md5:xxx}, {url:xxx, md5:xxx} , ...]
149147 // 开发者模式下 则是:[{url:本地filePath}, {url:本地filePath} , ...]
150- JSONArray fileListArray = decryptData .optJSONArray ("luaList" );
151- final String template = decryptData .optString ("template" ); // 入口lua文件名称
148+ JSONObject miniAppInfoObj = decryptData .optJSONObject ("miniAppInfo" );
149+ final String template = miniAppInfoObj .optString ("template" );
150+ final String miniAppId = miniAppInfoObj .optString ("miniAppId" );
151+ JSONArray fileListArray = miniAppInfoObj .optJSONArray ("luaList" );
152+
152153 String resCode = App .isIsDevMode () ? "-1" : decryptData .optString ("resCode" ); // 应答码 00-成功 01-失败
153154 JSONObject displayObj = decryptData .optJSONObject ("display" );
154-
155155 if (displayObj != null ) {
156156 final String nativeTitle = displayObj .optString ("navTitle" );
157157 updateVisionTitle (nativeTitle );
158158 }
159159
160-
161160 if (resCode .equalsIgnoreCase ("00" )) {
162161 //LuaArray --> JavaBean
163162 List <LuaFileInfo > luaFileInfoList = new ArrayList <>();
0 commit comments