|
|
|
@@ -37,10 +37,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
/** |
|
|
|
* Stormeye Wu |
|
|
|
@@ -251,8 +248,23 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
} catch (Exception e) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
} |
|
|
|
// 逐一设置app配置 |
|
|
|
String [] apps = appsStr.split(","); |
|
|
|
// 逐一检查app的设置 |
|
|
|
for(String appId: apps) { |
|
|
|
WxWeappExtSet extSetQ = new WxWeappExtSet(); |
|
|
|
extSetQ.setAppId(appId); |
|
|
|
WxWeappExtSet extSet = weappExtSetService.getByObj(extSetQ); |
|
|
|
if(extSet == null) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(extSet.getExtJson())) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(extSet.getReleaseJson())) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
|
} |
|
|
|
} |
|
|
|
// 逐一设置app配置 |
|
|
|
for(String appId: apps) { |
|
|
|
codeOperation(appId, userVersion, userDesc, templateId); |
|
|
|
} |
|
|
|
|