Ver código fonte

fix:“限制子账号绑定机器“

soobin 1 ano atrás
pai
commit
8bcede58fe

+ 4 - 0
src/main/java/com/szwl/controller/IndexController.java

@@ -352,6 +352,10 @@ public class IndexController {
         if (admin == null) {
             return "找不到商家";
         }
+        Integer type = admin.getType();
+        if (type != null && type == 3) {
+            return "账号类型错误,请使用商家账号绑定";
+        }
         //所属商家
         String username = admin.getUsername();
         equipmentApply.setAdminId(adminId);