|
@@ -19,6 +19,8 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -34,7 +36,7 @@ import java.util.Set;
|
|
|
@ApiPassToken
|
|
|
public class WxController extends ApiBaseController {
|
|
|
|
|
|
-
|
|
|
+ private static final Logger log = LoggerFactory.getLogger(WxController.class);
|
|
|
@Autowired
|
|
|
private QyWxUserUtil qyWxUserUtil;
|
|
|
|
|
@@ -91,11 +93,12 @@ public class WxController extends ApiBaseController {
|
|
|
return AjaxResult.error(301,"当前用户不是企业成员");
|
|
|
}
|
|
|
userId = json.getString("UserId");
|
|
|
+ log.info("当前企业用户登录名称:"+userId);
|
|
|
SysUser user = sysUserService.selectUserByLoginName(userId);
|
|
|
if(user==null){
|
|
|
- return AjaxResult.error(302,"当前用户不属于DIY用户或经销商用户");
|
|
|
+ return AjaxResult.error(302,"当前用户:"+userId+",不属于DIY用户或经销商用户");
|
|
|
}else if(user.getRoles().size()==0){
|
|
|
- return AjaxResult.error(302,"企业微信尚未分配用户权限,请联系管理员!");
|
|
|
+ return AjaxResult.error(302,"当前用户:"+userId+",企业微信尚未分配用户权限,请联系管理员!");
|
|
|
}else{
|
|
|
return AjaxResult.success().putKV("sysUser",user);
|
|
|
}
|