yujian
2019-03-14 8a23fdc23fc1b5edda31743de005a108fa1b7543
fanli/src/main/java/com/yeshi/fanli/controller/admin/UserInfoAdminController.java
@@ -1158,7 +1158,7 @@
         forbiddenUserIdentifyCode.setIdentifyCode(currentInfo.getWxUnionId());
         forbiddenUserIdentifyCode.setBeiZhu(currentInfo.getWxName());
         try {
            forbiddenUserIdentifyCodeService.addIdentifyCode(forbiddenUserIdentifyCode);
            forbiddenUserIdentifyCodeService.forbiddenIdentifyCode(forbiddenUserIdentifyCode);
         } catch (ForbiddenUserIdentifyCodeException e) {
            e.printStackTrace();
         }
@@ -1168,7 +1168,7 @@
         forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.phone);
         forbiddenUserIdentifyCode.setIdentifyCode(currentInfo.getPhone());
         try {
            forbiddenUserIdentifyCodeService.addIdentifyCode(forbiddenUserIdentifyCode);
            forbiddenUserIdentifyCodeService.forbiddenIdentifyCode(forbiddenUserIdentifyCode);
         } catch (ForbiddenUserIdentifyCodeException e) {
            e.printStackTrace();
         }
@@ -1180,7 +1180,7 @@
            forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.taobaoUid);
            forbiddenUserIdentifyCode.setIdentifyCode(taoBao.getTaoBaoUid());
            try {
               forbiddenUserIdentifyCodeService.addIdentifyCode(forbiddenUserIdentifyCode);
               forbiddenUserIdentifyCodeService.forbiddenIdentifyCode(forbiddenUserIdentifyCode);
            } catch (ForbiddenUserIdentifyCodeException e) {
               e.printStackTrace();
            }
@@ -1196,7 +1196,7 @@
               forbiddenUserIdentifyCode.setIdentifyCode(ba.getAccount());
               forbiddenUserIdentifyCode.setBeiZhu(ba.getName());
               try {
                  forbiddenUserIdentifyCodeService.addIdentifyCode(forbiddenUserIdentifyCode);
                  forbiddenUserIdentifyCodeService.forbiddenIdentifyCode(forbiddenUserIdentifyCode);
               } catch (ForbiddenUserIdentifyCodeException e) {
                  e.printStackTrace();
               }
@@ -1288,8 +1288,9 @@
   @RequestMapping(value = "saveForbiddenInfo")
   public void saveForbiddenInfo(String callback, String code, Integer type, PrintWriter out) {
      try {
         if (code == null || code.trim().length() == 0 || type == null) {
         if (code == null || code.trim().length() == 0 || type == null ||"NULL".equalsIgnoreCase(code)) {
            JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("参数不能为空"));
            return;
         }
         
         forbiddenUserIdentifyCodeService.saveForbiddenInfo(code, type);