Browse Source

Merge branch 'dev_0814' of http://121.42.41.42:7070/r/esua-epdc-cloud into dev_0814

dev
qushutong 6 years ago
parent
commit
11ae2e748e
  1. 5
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/DeptMaCodeServiceImpl.java

5
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/DeptMaCodeServiceImpl.java

@ -121,7 +121,6 @@ public class DeptMaCodeServiceImpl extends BaseServiceImpl<DeptMaCodeDao, DeptMa
if (CollUtil.isEmpty(gridIdList)) {
return new Result();
}
String scenePrefix = "gid=";
String page = "pages/index/index";
Result<String> ossResult;
@ -132,7 +131,7 @@ public class DeptMaCodeServiceImpl extends BaseServiceImpl<DeptMaCodeDao, DeptMa
WxMaQrcodeService qrcodeService = wxMaService.getQrcodeService();
for (Long gridId : gridIdList) {
try {
wxaCodeUnlimit = qrcodeService.createWxaCodeUnlimit(scenePrefix + gridId, page);
wxaCodeUnlimit = qrcodeService.createWxaCodeUnlimit(String.valueOf(gridId), page);
} catch (WxErrorException e) {
log.error("->initDeptMaCode::createWxaCodeUnlimit error::deptId={}", gridId);
continue;
@ -157,7 +156,7 @@ public class DeptMaCodeServiceImpl extends BaseServiceImpl<DeptMaCodeDao, DeptMa
public Result createDeptMaCode(String gridId) {
File wxaCodeUnlimit;
try {
wxaCodeUnlimit = wxMaService.getQrcodeService().createWxaCodeUnlimit("gid=" + gridId, "pages/index/index");
wxaCodeUnlimit = wxMaService.getQrcodeService().createWxaCodeUnlimit(gridId, "pages/index/index");
} catch (WxErrorException e) {
return new Result().error("请求微信接口失败");
}

Loading…
Cancel
Save