|
@@ -22,6 +22,7 @@ import com.xzl.web.utils.ali.DingTalkUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections.MapUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.sql.Timestamp;
|
|
@@ -54,8 +55,13 @@ public class UserPortraitServiceImpl implements UserPortraitService {
|
|
|
return userPortraitMapper.getWordCloudInfo();
|
|
|
}
|
|
|
|
|
|
+ @Value("${login.nlp}")
|
|
|
+ private boolean loginNlp;
|
|
|
|
|
|
public String loginNLP(String username) {
|
|
|
+ if (!loginNlp) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
SysUser sysUser = userService.selectUserByUserName(username);
|
|
|
String nlpName = sysUser.getNlpName();
|
|
|
String nlpPwd = sysUser.getNlpPwd();
|