Browse Source

add wx

master
xhxu 2 years ago
parent
commit
0ac09d69bf
3 changed files with 14 additions and 2 deletions
  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 View File

@@ -127,6 +127,7 @@ public class WxWeappInfoController extends BaseController {
weappInfo.setName(null);
}
}
weappInfo.setPlat(EnumAppPlat.TOUTIAO.getCode());
weappInfo.setSortColumns(BaseEntity.SortField.CurrentVersion_DESC);
final List<WxWeappInfo> list = authorizerInfoService.getList(weappInfo);
return new ResultData(list);
@@ -170,6 +171,7 @@ public class WxWeappInfoController extends BaseController {
if(StringUtils.isBlank(appsStr)) {
WxWeappInfo weappInfoQ = new WxWeappInfo();
weappInfoQ.setType(type);
weappInfoQ.setPlat(EnumAppPlat.TOUTIAO.getCode());
List<WxWeappInfo> list = authorizerInfoService.getList(weappInfoQ);
for(WxWeappInfo info: list) {
appsStr += info.getAuthorizerAppid() + ",";
@@ -454,6 +456,7 @@ public class WxWeappInfoController extends BaseController {
}
WxWeappInfo authQ = new WxWeappInfo();
authQ.setType(type);
authQ.setPlat(EnumAppPlat.TOUTIAO.getCode());
List<WxWeappInfo> appList = authorizerInfoService.getList(authQ);
appsStr = "";
StringBuilder sb = new StringBuilder();
@@ -548,6 +551,7 @@ public class WxWeappInfoController extends BaseController {
}
WxWeappInfo authQ = new WxWeappInfo();
authQ.setType(type);
authQ.setPlat(EnumAppPlat.TOUTIAO.getCode());
List<WxWeappInfo> appList = authorizerInfoService.getList(authQ);
appsStr = "";
StringBuilder sb = new StringBuilder();


+ 6
- 2
mlWechatOpen/src/main/java/com/iformall/controller/WechatWeappSetController.java View File

@@ -419,9 +419,11 @@ public class WechatWeappSetController {
" }")
@PostMapping("/allsApplyPrivacyInterface")
public ResultData allsApplyPrivacyInterface(@RequestBody Map<String, Object> params) {
Integer type;
String apiName,content;
List<String> urlList,picList,videoList;
try{
type = (Integer) params.get("type");
apiName = (String) params.get("apiName");
content = (String) params.get("content");

@@ -435,8 +437,10 @@ public class WechatWeappSetController {
if(StringUtils.isBlank(apiName) || StringUtils.isBlank(content)){
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) {
String appId = info.getAuthorizerAppid();


+ 4
- 0
mlWechatOpen/src/main/java/com/iformall/controller/WxWeappInfoController.java View File

@@ -115,6 +115,7 @@ public class WxWeappInfoController extends BaseController {
weappInfo.setName(null);
}
}
weappInfo.setPlat(EnumAppPlat.WX.getCode());
weappInfo.setSortColumns(BaseEntity.SortField.CurrentVersion_DESC);
final List<WxWeappInfo> list = authorizerInfoService.getList(weappInfo);
return new ResultData(list);
@@ -158,6 +159,7 @@ public class WxWeappInfoController extends BaseController {
if(StringUtils.isBlank(appsStr)) {
WxWeappInfo weappInfoQ = new WxWeappInfo();
weappInfoQ.setType(type);
weappInfoQ.setPlat(EnumAppPlat.WX.getCode());
List<WxWeappInfo> list = authorizerInfoService.getList(weappInfoQ);
for(WxWeappInfo info: list) {
appsStr += info.getAuthorizerAppid() + ",";
@@ -442,6 +444,7 @@ public class WxWeappInfoController extends BaseController {
}
WxWeappInfo authQ = new WxWeappInfo();
authQ.setType(type);
authQ.setPlat(EnumAppPlat.WX.getCode());
List<WxWeappInfo> appList = authorizerInfoService.getList(authQ);
appsStr = "";
StringBuilder sb = new StringBuilder();
@@ -536,6 +539,7 @@ public class WxWeappInfoController extends BaseController {
}
WxWeappInfo authQ = new WxWeappInfo();
authQ.setType(type);
authQ.setPlat(EnumAppPlat.WX.getCode());
List<WxWeappInfo> appList = authorizerInfoService.getList(authQ);
appsStr = "";
StringBuilder sb = new StringBuilder();


Loading…
Cancel
Save