add: 增加远程二维码,下载码;
fix:修复新增用户密码二次加密bug。
This commit is contained in:
@@ -38,6 +38,16 @@ public class DeveloperController {
|
||||
public ResponseEntity<Object> getIP(@RequestBody Map<String, String> whereJson) {
|
||||
return new ResponseEntity<>(developService.getIP(whereJson), HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/queryRemoteInfo")
|
||||
@Log("远程支持查询远程码")
|
||||
@ApiOperation("远程支持查询远程码")
|
||||
public ResponseEntity<Object> queryRemoteInfo() {
|
||||
return new ResponseEntity<>(developService.queryRemoteInfo(), HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/getLogList")
|
||||
@Log("开发者选项查询日志列表")
|
||||
@ApiOperation("开发者选项查询日志列表")
|
||||
@@ -45,6 +55,7 @@ public class DeveloperController {
|
||||
public ResponseEntity<Object> getLogList(@RequestBody Map<String, String> whereJson) {
|
||||
return new ResponseEntity<>(developService.getLogList(whereJson), HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/getROSNodeList")
|
||||
@Log("开发者选项查询ros请求列表")
|
||||
@ApiOperation("开发者选项查询ros请求列表")
|
||||
@@ -76,6 +87,7 @@ public class DeveloperController {
|
||||
public ResponseEntity<Object> parameterSetting(@RequestBody Map<String, String> whereJson) {
|
||||
return new ResponseEntity<>(developService.parameterSetting(whereJson), HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/queryPassword")
|
||||
@Log("查询密码")
|
||||
@ApiOperation("查询密码")
|
||||
@@ -83,6 +95,7 @@ public class DeveloperController {
|
||||
public ResponseEntity<Object> queryPassword(@RequestBody Map<String, String> whereJson) {
|
||||
return new ResponseEntity<>(developService.queryPassword(whereJson), HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/softwareVersion")
|
||||
@Log("查询软硬件版本")
|
||||
@ApiOperation("查询软硬件版本")
|
||||
|
||||
@@ -11,6 +11,7 @@ import java.util.Map;
|
||||
* @date 2021-09-02
|
||||
**/
|
||||
public interface DevelopService {
|
||||
|
||||
/**
|
||||
* 开发者选项查询Ifconfig参数
|
||||
*
|
||||
@@ -18,6 +19,14 @@ public interface DevelopService {
|
||||
* @return Map<String, Object>
|
||||
*/
|
||||
Map<String, Object> getIP(Map<String, String> jsonObject);
|
||||
|
||||
/**
|
||||
* 远程支持查询远程码
|
||||
*
|
||||
* @param
|
||||
* @return Map<String, Object>
|
||||
*/
|
||||
Map<String, Object> queryRemoteInfo();
|
||||
/**
|
||||
* 开发者选项查询日志列表
|
||||
*
|
||||
|
||||
@@ -19,15 +19,19 @@ import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import edu.wpi.rail.jrosbridge.services.ServiceResponse;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.nl.agv.service.DevelopService;
|
||||
import org.nl.agv.unit.sendToAgvUtil;
|
||||
import org.nl.common.utils.LangUtils;
|
||||
import org.nl.modules.common.exception.BadRequestException;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* @author zhanghouying
|
||||
@@ -50,6 +54,38 @@ public class DevelopServiceImpl implements DevelopService {
|
||||
return returnjo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> queryRemoteInfo() {
|
||||
JSONObject returnjo = new JSONObject();
|
||||
String anyDeskId = "";
|
||||
String teamViewerId = "";
|
||||
String serviceResponse = "";
|
||||
String rosStringOutput = "";
|
||||
// ServiceResponse response = sendToAgvUtil.send("HMISettingGetRemoteID");
|
||||
// serviceResponse = response.toString();
|
||||
// rosStringOutput = JSONObject.parseObject(response.toString()).getString("ROS_String_Output");
|
||||
String resultInfo = "GetRemotelD:1514937762 [1m TeamViewer ID:[Om 1469530530";
|
||||
if (StringUtils.isNotBlank(resultInfo)) {
|
||||
String regex = "GetRemotelD:(\\d+) \\[1m TeamViewer ID:\\[Om (\\d+)";
|
||||
Pattern pattern = Pattern.compile(regex);
|
||||
Matcher matcher = pattern.matcher(resultInfo);
|
||||
// 查找匹配项
|
||||
if (matcher.find()) {
|
||||
anyDeskId = matcher.group(1);
|
||||
teamViewerId = matcher.group(2);
|
||||
}
|
||||
}
|
||||
JSONObject result = new JSONObject();
|
||||
result.put("teamViewerId", teamViewerId);
|
||||
result.put("anyDeskId", anyDeskId);
|
||||
returnjo.put("code", "1");
|
||||
returnjo.put("desc", LangUtils.getMsgLanguage("QuerySuccess", null));
|
||||
returnjo.put("result", result);
|
||||
returnjo.put("serviceResponse", serviceResponse);
|
||||
returnjo.put("rosStringOutput", rosStringOutput);
|
||||
return returnjo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getLogList(Map<String, String> jsonObject) {
|
||||
JSONObject returnjo = new JSONObject();
|
||||
|
||||
@@ -101,7 +101,7 @@ public class ISysUserServiceImpl extends ServiceImpl<SysUserMapper,SysUser> impl
|
||||
sysUser.setPassword(SaSecureUtil.md5BySalt("123456", "salt"));
|
||||
}
|
||||
else{
|
||||
sysUser.setPassword(SaSecureUtil.md5BySalt(sysUser.getPassword(), "salt"));
|
||||
sysUser.setPassword(SaSecureUtil.md5BySalt(RsaUtils.decryptByPrivateKey(RsaProperties.privateKey,sysUser.getPassword()), "salt"));
|
||||
}
|
||||
String userId = IdUtil.getStringId();
|
||||
sysUser.setUserId(userId);
|
||||
|
||||
@@ -6,7 +6,7 @@ spring:
|
||||
#url: jdbc:log4jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:nl_apt}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true
|
||||
#nl_agv 192.168.137.41 nl_apt
|
||||
#url: jdbc:mysql://${DB_HOST:192.168.137.41}:${DB_PORT:3306}/${DB_NAME:nl_agv}
|
||||
url: jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:nl_agv}
|
||||
url: jdbc:mysql://${DB_HOST:47.98.105.245}:${DB_PORT:3306}/${DB_NAME:nl_agv}
|
||||
username: ${DB_USER:generallu}
|
||||
password: ${DB_PWD:123456}
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver # 指定 MySQL 驱动
|
||||
|
||||
@@ -4,7 +4,7 @@ spring:
|
||||
freemarker:
|
||||
check-template-location: false
|
||||
profiles:
|
||||
active: prod
|
||||
active: dev
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
data:
|
||||
|
||||
Reference in New Issue
Block a user