| @@ -127,6 +127,7 @@ public class WxWeappInfoController extends BaseController { | |||||
| weappInfo.setName(null); | weappInfo.setName(null); | ||||
| } | } | ||||
| } | } | ||||
| weappInfo.setPlat(EnumAppPlat.TOUTIAO.getCode()); | |||||
| weappInfo.setSortColumns(BaseEntity.SortField.CurrentVersion_DESC); | weappInfo.setSortColumns(BaseEntity.SortField.CurrentVersion_DESC); | ||||
| final List<WxWeappInfo> list = authorizerInfoService.getList(weappInfo); | final List<WxWeappInfo> list = authorizerInfoService.getList(weappInfo); | ||||
| return new ResultData(list); | return new ResultData(list); | ||||
| @@ -170,6 +171,7 @@ public class WxWeappInfoController extends BaseController { | |||||
| if(StringUtils.isBlank(appsStr)) { | if(StringUtils.isBlank(appsStr)) { | ||||
| WxWeappInfo weappInfoQ = new WxWeappInfo(); | WxWeappInfo weappInfoQ = new WxWeappInfo(); | ||||
| weappInfoQ.setType(type); | weappInfoQ.setType(type); | ||||
| weappInfoQ.setPlat(EnumAppPlat.TOUTIAO.getCode()); | |||||
| List<WxWeappInfo> list = authorizerInfoService.getList(weappInfoQ); | List<WxWeappInfo> list = authorizerInfoService.getList(weappInfoQ); | ||||
| for(WxWeappInfo info: list) { | for(WxWeappInfo info: list) { | ||||
| appsStr += info.getAuthorizerAppid() + ","; | appsStr += info.getAuthorizerAppid() + ","; | ||||
| @@ -454,6 +456,7 @@ public class WxWeappInfoController extends BaseController { | |||||
| } | } | ||||
| WxWeappInfo authQ = new WxWeappInfo(); | WxWeappInfo authQ = new WxWeappInfo(); | ||||
| authQ.setType(type); | authQ.setType(type); | ||||
| authQ.setPlat(EnumAppPlat.TOUTIAO.getCode()); | |||||
| List<WxWeappInfo> appList = authorizerInfoService.getList(authQ); | List<WxWeappInfo> appList = authorizerInfoService.getList(authQ); | ||||
| appsStr = ""; | appsStr = ""; | ||||
| StringBuilder sb = new StringBuilder(); | StringBuilder sb = new StringBuilder(); | ||||
| @@ -548,6 +551,7 @@ public class WxWeappInfoController extends BaseController { | |||||
| } | } | ||||
| WxWeappInfo authQ = new WxWeappInfo(); | WxWeappInfo authQ = new WxWeappInfo(); | ||||
| authQ.setType(type); | authQ.setType(type); | ||||
| authQ.setPlat(EnumAppPlat.TOUTIAO.getCode()); | |||||
| List<WxWeappInfo> appList = authorizerInfoService.getList(authQ); | List<WxWeappInfo> appList = authorizerInfoService.getList(authQ); | ||||
| appsStr = ""; | appsStr = ""; | ||||
| StringBuilder sb = new StringBuilder(); | StringBuilder sb = new StringBuilder(); | ||||
| @@ -419,9 +419,11 @@ public class WechatWeappSetController { | |||||
| " }") | " }") | ||||
| @PostMapping("/allsApplyPrivacyInterface") | @PostMapping("/allsApplyPrivacyInterface") | ||||
| public ResultData allsApplyPrivacyInterface(@RequestBody Map<String, Object> params) { | public ResultData allsApplyPrivacyInterface(@RequestBody Map<String, Object> params) { | ||||
| Integer type; | |||||
| String apiName,content; | String apiName,content; | ||||
| List<String> urlList,picList,videoList; | List<String> urlList,picList,videoList; | ||||
| try{ | try{ | ||||
| type = (Integer) params.get("type"); | |||||
| apiName = (String) params.get("apiName"); | apiName = (String) params.get("apiName"); | ||||
| content = (String) params.get("content"); | content = (String) params.get("content"); | ||||
| @@ -435,8 +437,10 @@ public class WechatWeappSetController { | |||||
| if(StringUtils.isBlank(apiName) || StringUtils.isBlank(content)){ | if(StringUtils.isBlank(apiName) || StringUtils.isBlank(content)){ | ||||
| return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); | return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); | ||||
| } | } | ||||
| List<WxWeappInfo> applist = authorizerInfoService.getList(new WxWeappInfo()); | |||||
| WxWeappInfo authQ = new WxWeappInfo(); | |||||
| authQ.setType(type); | |||||
| authQ.setPlat(EnumAppPlat.WX.getCode()); | |||||
| List<WxWeappInfo> applist = authorizerInfoService.getList(authQ); | |||||
| for (WxWeappInfo info:applist) { | for (WxWeappInfo info:applist) { | ||||
| String appId = info.getAuthorizerAppid(); | String appId = info.getAuthorizerAppid(); | ||||
| @@ -115,6 +115,7 @@ public class WxWeappInfoController extends BaseController { | |||||
| weappInfo.setName(null); | weappInfo.setName(null); | ||||
| } | } | ||||
| } | } | ||||
| weappInfo.setPlat(EnumAppPlat.WX.getCode()); | |||||
| weappInfo.setSortColumns(BaseEntity.SortField.CurrentVersion_DESC); | weappInfo.setSortColumns(BaseEntity.SortField.CurrentVersion_DESC); | ||||
| final List<WxWeappInfo> list = authorizerInfoService.getList(weappInfo); | final List<WxWeappInfo> list = authorizerInfoService.getList(weappInfo); | ||||
| return new ResultData(list); | return new ResultData(list); | ||||
| @@ -158,6 +159,7 @@ public class WxWeappInfoController extends BaseController { | |||||
| if(StringUtils.isBlank(appsStr)) { | if(StringUtils.isBlank(appsStr)) { | ||||
| WxWeappInfo weappInfoQ = new WxWeappInfo(); | WxWeappInfo weappInfoQ = new WxWeappInfo(); | ||||
| weappInfoQ.setType(type); | weappInfoQ.setType(type); | ||||
| weappInfoQ.setPlat(EnumAppPlat.WX.getCode()); | |||||
| List<WxWeappInfo> list = authorizerInfoService.getList(weappInfoQ); | List<WxWeappInfo> list = authorizerInfoService.getList(weappInfoQ); | ||||
| for(WxWeappInfo info: list) { | for(WxWeappInfo info: list) { | ||||
| appsStr += info.getAuthorizerAppid() + ","; | appsStr += info.getAuthorizerAppid() + ","; | ||||
| @@ -442,6 +444,7 @@ public class WxWeappInfoController extends BaseController { | |||||
| } | } | ||||
| WxWeappInfo authQ = new WxWeappInfo(); | WxWeappInfo authQ = new WxWeappInfo(); | ||||
| authQ.setType(type); | authQ.setType(type); | ||||
| authQ.setPlat(EnumAppPlat.WX.getCode()); | |||||
| List<WxWeappInfo> appList = authorizerInfoService.getList(authQ); | List<WxWeappInfo> appList = authorizerInfoService.getList(authQ); | ||||
| appsStr = ""; | appsStr = ""; | ||||
| StringBuilder sb = new StringBuilder(); | StringBuilder sb = new StringBuilder(); | ||||
| @@ -536,6 +539,7 @@ public class WxWeappInfoController extends BaseController { | |||||
| } | } | ||||
| WxWeappInfo authQ = new WxWeappInfo(); | WxWeappInfo authQ = new WxWeappInfo(); | ||||
| authQ.setType(type); | authQ.setType(type); | ||||
| authQ.setPlat(EnumAppPlat.WX.getCode()); | |||||
| List<WxWeappInfo> appList = authorizerInfoService.getList(authQ); | List<WxWeappInfo> appList = authorizerInfoService.getList(authQ); | ||||
| appsStr = ""; | appsStr = ""; | ||||
| StringBuilder sb = new StringBuilder(); | StringBuilder sb = new StringBuilder(); | ||||