Przeglądaj źródła

fix 大学生认证提示信息

zoujiajian 2 lat temu
rodzic
commit
c022da21de

+ 1 - 5
netflix-service/src/main/java/com/cyksj/service/wechat/impl/WeChatServiceImpl.java

@@ -684,11 +684,7 @@ public class WeChatServiceImpl implements WeChatService {
             log.info("获取学生信息失败:{}", re.getStr("errmsg"));
             throw BusinessRuntimeException.getInstance("获取认证信息失败");
         }
-        Boolean isStudent = re.getBool("is_student");
-        if (isStudent == null || !isStudent) {
-            throw BusinessRuntimeException.getInstance("仅支持大学生用户认证");
-        }
-        Integer bindStatus = re.getInt("bind_status");
+        Integer bindStatus = Optional.ofNullable(re.getInt("bind_status")).orElse(1);
         //绑定状态:
         //1-未绑定
         //2-审核中