|
@@ -437,7 +437,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
Integer WXCompanyId = userMapper.selectById(request.getHeader("Token")).getCompanyId();
|
|
|
WxCorpInfo wxCorpInfo = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("company_id", WXCompanyId));
|
|
|
- if (wxCorpInfo!=null && keyword!=null && keyword!="" && departmentId == -1){
|
|
|
+ if (wxCorpInfo!=null && keyword!=null && keyword.trim().length()!=0 && departmentId == -1){
|
|
|
if (wxCorpInfo.getSaasSyncContact()==1){
|
|
|
String AccessUrl = "https://qyapi.weixin.qq.com/cgi-bin/service/get_provider_token";
|
|
|
String url = "https://qyapi.weixin.qq.com/cgi-bin/service/contact/search?provider_access_token=ACCESS_TOKEN";
|