Преглед изворни кода

[微信第三方登录][修改]:code提交默认不检查type

release_toaliyun_real
Stormeye Wu пре 7 година
родитељ
комит
37430112df
1 измењених фајлова са 10 додато и 1 уклоњено
  1. +10
    -1
      mallinkWechatOpen/src/main/java/com/iformall/controller/WxWeappInfoController.java

+ 10
- 1
mallinkWechatOpen/src/main/java/com/iformall/controller/WxWeappInfoController.java Прегледај датотеку

@@ -328,11 +328,20 @@ public class WxWeappInfoController extends BaseController {
Long templateId = null;
try {
templateId = Long.parseLong(templateIdStr);
type = Integer.parseInt(typeStr);
} catch (Exception e) {
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR);
}

try {
type = Integer.parseInt(typeStr);
} catch (Exception e) {
logger.error("type为null");
}
if(StringUtils.isBlank(appsStr)) {
if(type == null) {
logger.error("type为null");
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR);
}
WxWeappInfo authQ = new WxWeappInfo();
authQ.setType(type);
List<WxWeappInfo> appList = authorizerInfoService.getList(authQ);


Loading…
Откажи
Сачувај