|
|
|
@@ -73,6 +73,9 @@ public class WxWeappExtSetController extends BaseController { |
|
|
|
if(StringUtils.isBlank(weappExtSet.getExtJson())) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
|
} |
|
|
|
if(weappExtSet.getType() == null) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
|
} |
|
|
|
String extJson = weappExtSet.getExtJson(); |
|
|
|
JSONObject obj = JSON.parseObject(extJson); |
|
|
|
if(obj == null) { |
|
|
|
@@ -108,10 +111,13 @@ public class WxWeappExtSetController extends BaseController { |
|
|
|
} |
|
|
|
obj.put("ext", extObj); |
|
|
|
} |
|
|
|
info.setExtJson(JSON.toJSONString(obj)); |
|
|
|
|
|
|
|
WxWeappExtSet newInfo = new WxWeappExtSet(); |
|
|
|
newInfo.setExtJson(JSON.toJSONString(obj)); |
|
|
|
newInfo.setId(info.getId()); |
|
|
|
|
|
|
|
try { |
|
|
|
weappExtSetService.saveOrUpdate(info); |
|
|
|
weappExtSetService.saveOrUpdate(newInfo); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("APPID " + info.getAppId() + ", 保存失败 " + e.getMessage()); |
|
|
|
} |
|
|
|
|