|
@@ -455,6 +455,8 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
if (obj.getIntValue("errcode") == 0) {
|
|
|
UserServiceImpl.provider_access_token = obj.getString("provider_access_token");
|
|
|
UserServiceImpl.providerTokenExpireTime = System.currentTimeMillis() + obj.getIntValue("expires_in")*1000;
|
|
|
+ }else{
|
|
|
+ System.err.println("token获取失败");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -494,7 +496,11 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
if (jsonArray!=null){
|
|
|
user = jsonArray.toArray();
|
|
|
}
|
|
|
+ }else{
|
|
|
+ System.err.println("通讯录查询请求无userid列表");
|
|
|
}
|
|
|
+ }else {
|
|
|
+ System.err.println("通讯录查询请求失败");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -514,10 +520,12 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(keyword) && wxCorpInfo!=null && wxCorpInfo.getSaasSyncContact()==1 && departmentId == -1){
|
|
|
Object[] users = getOpenId(wxCorpInfo.getCorpid(), keyword);
|
|
|
if (users!=null){
|
|
|
+ System.err.println("查询到的users列表为:"+users.toString());
|
|
|
List<User> realUser = userMapper.selectList(new QueryWrapper<User>().in("corpwx_userid", users));
|
|
|
data.put("records",realUser);
|
|
|
return httpRespMsg;
|
|
|
}else {
|
|
|
+ System.err.println("没有查询到数据");
|
|
|
ArrayList<Object> records = new ArrayList<>();
|
|
|
data.put("records",records);
|
|
|
return httpRespMsg;
|