diff --git a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwxapi/WxLoginController.java b/ruoyi-abuwx/src/main/java/com/ruoyi/abuwxapi/WxLoginController.java index 2b24fee..2243a89 100644 --- a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwxapi/WxLoginController.java +++ b/ruoyi-abuwx/src/main/java/com/ruoyi/abuwxapi/WxLoginController.java @@ -252,7 +252,9 @@ public class WxLoginController extends BaseController { @RequestMapping("/selectWXuserRole") public AjaxResult selectWXuserRole(@RequestParam String openid){ if (StringUtils.isEmpty(openid)){ - return AjaxResult.error("请登录!"); + List data = new ArrayList<>(); + data.add(0); + return new AjaxResult(HttpStatus.SUCCESS,"roleIds",data); } //获取当前用户信息 SysUser user = iSysUserService.selectUserByopenid(openid);