Browse Source

提交渲染时,增加判断, 返回四维看看错误

xiewenjie 3 years ago
parent
commit
15e2a7b7a1

+ 5 - 2
sxz-core/src/main/java/com/fdkk/sxz/webApi/controller/ImportDataController.java

@@ -360,8 +360,11 @@ public class ImportDataController extends BaseController {
                 map.put("oldNum", sceneNum);
                 map.put("sceneName", entity.getStyleName());
                 map.put("resolution", type);
-                OkHttpUtils.httpPostForm(mainUrl + "api/scene/createChangeScene", map);
-
+                String resultData = OkHttpUtils.httpPostForm(mainUrl + "api/scene/createChangeScene", map);
+                JSONObject getInfoJson = JSON.parseObject(resultData);
+                if (getInfoJson.getInteger("code") != 0) {
+                    return failure(getInfoJson.getString("msg"));
+                }
                 if (StringUtils.isEmpty(type)) {
                     type = "1024";
                 }