|
@@ -286,7 +286,7 @@ public class appAction extends ActionSupport implements ServletRequestAware {
|
|
|
ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
- if (login.getLevel().equals("2")){
|
|
|
|
|
|
|
+ if (login.getLevel().equals("1")){
|
|
|
resultJson.put("message", "管理员无权限绑定");
|
|
resultJson.put("message", "管理员无权限绑定");
|
|
|
resultJson.put("code", 205);
|
|
resultJson.put("code", 205);
|
|
|
resultJson.put("data","");
|
|
resultJson.put("data","");
|
|
@@ -294,6 +294,7 @@ public class appAction extends ActionSupport implements ServletRequestAware {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
CodeEntity codeEntity = appService.getCodeInfo(code);
|
|
CodeEntity codeEntity = appService.getCodeInfo(code);
|
|
|
|
|
+ System.out.println(codeEntity.getOpenid());
|
|
|
AdminManager admin = appService.queryMaByNameAndOpenid(admin_name,codeEntity.getOpenid());
|
|
AdminManager admin = appService.queryMaByNameAndOpenid(admin_name,codeEntity.getOpenid());
|
|
|
if (admin!=null){
|
|
if (admin!=null){
|
|
|
resultJson.put("message", "该账户已绑定,请勿重复绑定");
|
|
resultJson.put("message", "该账户已绑定,请勿重复绑定");
|