Просмотр исходного кода

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

release_toaliyun_real
Stormeye Wu 7 лет назад
Родитель
Сommit
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);


Загрузка…
Отмена
Сохранить