|
@@ -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";
|
|
|
}
|