瀏覽代碼

add wx

master
xhxu 3 年之前
父節點
當前提交
0ac09d69bf
共有 3 個文件被更改,包括 14 次插入2 次删除
  1. +4
    -0
      mlToutiaoOpen/src/main/java/com/iformall/controller/WxWeappInfoController.java
  2. +6
    -2
      mlWechatOpen/src/main/java/com/iformall/controller/WechatWeappSetController.java
  3. +4
    -0
      mlWechatOpen/src/main/java/com/iformall/controller/WxWeappInfoController.java

+ 4
- 0
mlToutiaoOpen/src/main/java/com/iformall/controller/WxWeappInfoController.java 查看文件

@@ -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();


+ 6
- 2
mlWechatOpen/src/main/java/com/iformall/controller/WechatWeappSetController.java 查看文件

@@ -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();


+ 4
- 0
mlWechatOpen/src/main/java/com/iformall/controller/WxWeappInfoController.java 查看文件

@@ -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();


Loading…
取消
儲存