|
@@ -442,26 +442,26 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
|
|
|
//舒淇要求场景上传取data.fdage中的用户
|
|
|
Long userId = null;
|
|
|
- userName = jsonObject.getString("userId");
|
|
|
- String password = jsonObject.getString("password");
|
|
|
- log.info("场景归属账号为:account:{}", userName);
|
|
|
- if(StrUtil.isNotEmpty(userName)){
|
|
|
- User user = userService.getByUserName(userName);
|
|
|
- if(Objects.isNull(user)){
|
|
|
- //自动注册
|
|
|
- JSONObject registerParams = new JSONObject();
|
|
|
- registerParams.put("phoneNum", userName);
|
|
|
- registerParams.put("password", password);
|
|
|
- registerParams.put("confirmPwd", password);
|
|
|
- registerParams.put("msgAuthCode", "2a22bac40f44af4d3b5fdc20ea706fc5");
|
|
|
- ResultData resultData = httpClient.postJson("http://127.0.0.1:8081/ucenter/sso/user/register", null, registerParams);
|
|
|
- user = userService.getByUserName(userName);
|
|
|
- }
|
|
|
- log.info("场景归属账号id为:userId:{}", user.getId());
|
|
|
- if(Objects.nonNull(user)){
|
|
|
- userId = user.getId();
|
|
|
- }
|
|
|
- }
|
|
|
+// userName = jsonObject.getString("userId");
|
|
|
+// String password = jsonObject.getString("password");
|
|
|
+// log.info("场景归属账号为:account:{}", userName);
|
|
|
+// if(StrUtil.isNotEmpty(userName)){
|
|
|
+// User user = userService.getByUserName(userName);
|
|
|
+// if(Objects.isNull(user)){
|
|
|
+// //自动注册
|
|
|
+// JSONObject registerParams = new JSONObject();
|
|
|
+// registerParams.put("phoneNum", userName);
|
|
|
+// registerParams.put("password", password);
|
|
|
+// registerParams.put("confirmPwd", password);
|
|
|
+// registerParams.put("msgAuthCode", "2a22bac40f44af4d3b5fdc20ea706fc5");
|
|
|
+// ResultData resultData = httpClient.postJson("http://127.0.0.1:8081/ucenter/sso/user/register", null, registerParams);
|
|
|
+// user = userService.getByUserName(userName);
|
|
|
+// }
|
|
|
+// log.info("场景归属账号id为:userId:{}", user.getId());
|
|
|
+// if(Objects.nonNull(user)){
|
|
|
+// userId = user.getId();
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
ScenePlusVO scenePlusVO = this.createScenePlus(sceneNum, cameraDetail.getCameraId(), jsonObject.getString("creator"),
|
|
|
jsonObject.getString("pwd"),cameraType, jsonObject.getJSONObject("cam").getIntValue("type"),
|