SceneApiController.java 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  1. package com.fdkankan.ucenter.controller.app;
  2. import cn.hutool.core.io.FileUtil;
  3. import cn.hutool.core.util.RuntimeUtil;
  4. import cn.hutool.core.util.StrUtil;
  5. import cn.hutool.core.util.ZipUtil;
  6. import com.alibaba.fastjson.JSONObject;
  7. import com.fdkankan.common.constant.ErrorCode;
  8. import com.fdkankan.common.constant.SceneConstant;
  9. import com.fdkankan.common.exception.BusinessException;
  10. import com.fdkankan.common.util.*;
  11. import com.fdkankan.fyun.face.FYunFileServiceInterface;
  12. import com.fdkankan.redis.constant.RedisKey;
  13. import com.fdkankan.redis.constant.RedisLockKey;
  14. import com.fdkankan.redis.util.RedisLockUtil;
  15. import com.fdkankan.ucenter.annotation.CheckInnerApiPermit;
  16. import com.fdkankan.ucenter.common.BaseController;
  17. import com.fdkankan.ucenter.common.Result;
  18. import com.fdkankan.ucenter.common.constants.ConstantFilePath;
  19. import com.fdkankan.ucenter.common.constants.NacosProperty;
  20. import com.fdkankan.ucenter.constant.CameraConstant;
  21. import com.fdkankan.ucenter.constant.LoginConstant;
  22. import com.fdkankan.ucenter.entity.*;
  23. import com.fdkankan.ucenter.service.*;
  24. import com.fdkankan.ucenter.service.impl.LoginService;
  25. import com.fdkankan.ucenter.service.impl.SceneApiService;
  26. import com.fdkankan.ucenter.util.DateUserUtil;
  27. import com.fdkankan.ucenter.vo.request.LoginParam;
  28. import com.fdkankan.ucenter.vo.request.RequestSceneStatistics;
  29. import com.fdkankan.ucenter.vo.response.LoginVo;
  30. import com.fdkankan.ucenter.vo.response.SceneInfoVo;
  31. import com.fdkankan.ucenter.vo.response.UserVo;
  32. import java.io.File;
  33. import java.io.UnsupportedEncodingException;
  34. import java.net.URLEncoder;
  35. import java.util.*;
  36. import java.util.stream.Collectors;
  37. import javax.servlet.http.HttpServletRequest;
  38. import javax.servlet.http.HttpServletResponse;
  39. import lombok.extern.slf4j.Slf4j;
  40. import org.apache.commons.lang3.StringUtils;
  41. import org.joda.time.DateTime;
  42. import org.springframework.beans.BeanUtils;
  43. import org.springframework.beans.factory.annotation.Autowired;
  44. import org.springframework.beans.factory.annotation.Value;
  45. import org.springframework.util.ObjectUtils;
  46. import org.springframework.web.bind.annotation.*;
  47. @Slf4j
  48. @RestController
  49. @RequestMapping("/ucenter/scene")
  50. public class SceneApiController extends BaseController {
  51. @Autowired
  52. ISceneProService sceneProService;
  53. @Autowired
  54. IScenePlusService scenePlusService;
  55. @Autowired
  56. IScenePlusExtService scenePlusExtService;
  57. @Autowired
  58. IUserService userService;
  59. @Autowired
  60. LoginService loginService;
  61. @Autowired
  62. ICameraService cameraService;
  63. @Autowired
  64. ICameraDetailService cameraDetailService;
  65. @Autowired
  66. ISceneCooperationService cooperationService;
  67. @Autowired
  68. private IScene3dNumService scene3dNumService;
  69. @Autowired
  70. private ISceneStatisticsService sceneStatisticsService;
  71. @Autowired
  72. private RedisLockUtil redisLockUtil;
  73. @Autowired
  74. private ISceneProEditService sceneProEditService;
  75. @Autowired
  76. private FYunFileServiceInterface fYunFileService;
  77. @Autowired
  78. SceneApiService sceneApiService;
  79. @Autowired
  80. private IInnerService innerService;
  81. @Value("${scene.pro.url}")
  82. private String sceneProUrl;
  83. @Value("${scene.pro.new.url}")
  84. private String sceneProNewUrl;
  85. @Value("${scene.v4.url}")
  86. private String sceneProV4Url;
  87. /**
  88. * 获取指定场景信息
  89. * @param num 场景码
  90. */
  91. @RequestMapping("/getInfo")
  92. public Result getInfo(@RequestParam(required = false) String num){
  93. return Result.success( sceneProService.getInfo(num) );
  94. }
  95. //app 使用跳转到编辑页面
  96. @RequestMapping("/goEditScenePage")
  97. public void goEditScenePage(HttpServletRequest request, HttpServletResponse response) throws Exception{
  98. String phoneNum = request.getParameter("phoneNum");
  99. String password = request.getParameter("password");
  100. String sceneNum = request.getParameter("sceneNum");
  101. String childName = request.getParameter("childName");
  102. String lang = request.getParameter("lang");
  103. String vlog = request.getParameter("vlog");
  104. String pad = request.getParameter("pad");
  105. log.info("goEditScenePage---param--phoneNum:{},password:{},sceneNum:{},childName:{},lang:{},vlog:{},pad:{}",
  106. phoneNum,password,sceneNum,childName,lang,vlog,pad);
  107. ScenePro scene = sceneProService.getByNum(sceneNum);
  108. ScenePlus scenePlus = null;
  109. if(scene == null){
  110. scenePlus = scenePlusService.getByNum(sceneNum);
  111. }
  112. if(scene == null && scenePlus == null) {
  113. throw new BusinessException(SceneConstant.FAILURE_CODE_5005, SceneConstant.FAILURE_MSG_5005);
  114. }
  115. Long userId = scene == null ? scenePlus.getUserId() : scene.getUserId();
  116. String webSite = scene == null ? scenePlusExtService.getByPlusId(scenePlus.getId()).getWebSite() : scene.getWebSite();
  117. if(StringUtils.isNotEmpty(childName)){
  118. Camera cameraEntity = cameraService.getByChildName(childName);
  119. if(cameraEntity != null){
  120. CameraDetail cameraDetailEntity = cameraDetailService.getByCameraId(cameraEntity.getId());
  121. if(cameraDetailEntity != null && cameraDetailEntity.getCooperationUser() != null){
  122. throw new BusinessException(SceneConstant.FAILURE_CODE_5014, SceneConstant.FAILURE_MSG_5014);
  123. }
  124. UserVo user = new UserVo();
  125. if(userId == null){
  126. user.setUserName(childName);
  127. user.setCameraLogin(1);
  128. user.setCameraId(cameraEntity.getId());
  129. }else {
  130. User dbUser = userService.getById(userId);
  131. BeanUtils.copyProperties(dbUser,user);
  132. }
  133. sendResponse(user,webSite, request,response,sceneNum,lang,vlog, pad);
  134. }
  135. }
  136. if(StringUtils.isEmpty(phoneNum) || StringUtils.isEmpty(password)
  137. || StringUtils.isEmpty(sceneNum)){
  138. throw new BusinessException(LoginConstant.FAILURE_CODE_3001, LoginConstant.FAILURE_MSG_3001);
  139. }
  140. if(userId == null) {
  141. throw new BusinessException(SceneConstant.FAILURE_CODE_5013, SceneConstant.FAILURE_MSG_5013);
  142. }
  143. User user = userService.getByUserName(phoneNum);
  144. if(user == null){
  145. throw new BusinessException(LoginConstant.FAILURE_CODE_3015, LoginConstant.FAILURE_MSG_3015);
  146. }
  147. UserVo ssoUser = new UserVo();
  148. BeanUtils.copyProperties(user,ssoUser);
  149. if(!ssoUser.getId().equals(userId)) {
  150. HashMap<String, List<User>> cooMap = cooperationService.getByNumList(Arrays.asList(sceneNum),"mesh");
  151. List<User> cooUsers = cooMap.get(sceneNum);
  152. if(cooUsers == null || cooUsers.isEmpty()){
  153. throw new BusinessException(SceneConstant.FAILURE_CODE_5014, SceneConstant.FAILURE_MSG_5014);
  154. }
  155. List<Long> collect = cooUsers.stream().map(User::getId).collect(Collectors.toList());
  156. if(!collect.contains(ssoUser.getId())){
  157. throw new BusinessException(SceneConstant.FAILURE_CODE_5014, SceneConstant.FAILURE_MSG_5014);
  158. }
  159. }
  160. if(!SecurityUtil.MD5(password).equals(ssoUser.getPassword())) {
  161. throw new BusinessException(LoginConstant.FAILURE_CODE_3015, LoginConstant.FAILURE_MSG_3015);
  162. }
  163. sendResponse(ssoUser,webSite, request,response,sceneNum,lang,vlog, pad);
  164. }
  165. private void sendResponse(UserVo user, String webSite, HttpServletRequest request,
  166. HttpServletResponse response, String sceneNum, String lang, String vlog, String pad) {
  167. String token = loginService.redisLogin(user.getUserName(),JSONObject.toJSONString(user),"user");
  168. //登录成功
  169. String mainUrl = NacosProperty.getMainUrl();
  170. if(StringUtils.isBlank(mainUrl)){
  171. mainUrl = "http://"+request.getRemoteHost() +"/";
  172. }
  173. try {
  174. String redirect = null;
  175. if(webSite.contains(sceneProUrl)){
  176. redirect = mainUrl + sceneProUrl.replace("show", "edit").replace("PC", "Mobile") +
  177. sceneNum + "&t=" +System.currentTimeMillis() + "&token=" + token + "&app" +
  178. (lang == null ? "" : "&lang=" + lang) + (vlog == null ? "" : "&vlog=" + vlog);
  179. }
  180. if(webSite.contains(sceneProV4Url)){
  181. redirect = mainUrl + sceneProV4Url.replace("s", "e") +
  182. sceneNum + "&t=" +System.currentTimeMillis() + "&token=" + token + "&app" +
  183. (lang == null ? "" : "&lang=" + lang) + (vlog == null ? "" : "&vlog=" + vlog) + (StrUtil.isEmpty(pad) ? "" : "&pad");
  184. }
  185. if(webSite.contains(sceneProNewUrl)) {
  186. redirect = mainUrl + sceneProNewUrl.replace("s", "e") +
  187. sceneNum + "&t=" + System.currentTimeMillis() + "&token=" + token + "&app" +
  188. (lang == null ? "" : "&lang=" + lang) + (vlog == null ? "" : "&vlog=" + vlog);
  189. }
  190. log.info("goEditScenePage---response--website:{},redirect:{}", webSite,redirect);
  191. response.sendRedirect(redirect);
  192. }catch (Exception e){
  193. e.printStackTrace();
  194. }
  195. }
  196. //app调用 跳转到官网消费页面
  197. @RequestMapping("/goConsumptionPage")
  198. public void goConsumptionPage(HttpServletRequest request, HttpServletResponse response) throws Exception{
  199. String phoneNum = request.getParameter("phoneNum");
  200. String password = request.getParameter("password");
  201. String lang = request.getParameter("lang");
  202. password = URLEncoder.encode(password,"UTF-8");
  203. log.info("phoneNum:{},password:{},lang:{}",phoneNum,password,lang);
  204. if(StringUtils.isEmpty(phoneNum) || StringUtils.isEmpty(password)){
  205. throw new BusinessException(LoginConstant.FAILURE_CODE_3001, LoginConstant.FAILURE_MSG_3001);
  206. }
  207. LoginParam param = new LoginParam();
  208. param.setPhoneNum(phoneNum);
  209. param.setPassword(password);
  210. LoginVo loginVo = loginService.loginClear(param);
  211. //登录成功
  212. String mainUrl = NacosProperty.getMainUrl();
  213. if(StringUtils.isBlank(mainUrl)){
  214. mainUrl = "http://"+request.getRemoteHost() +"/";
  215. }
  216. response.sendRedirect(mainUrl+ "mobile.html?token="+ loginVo.getToken() + "&app" + (lang == null ? "" : "&lang=" + lang)+"#/consumption/0" );
  217. }
  218. /**
  219. * 查找123看房未使用过的场景吗
  220. * */
  221. @PostMapping("/finSkSceneNum")
  222. public Result finSkSceneNum(){
  223. String num = scene3dNumService.generateSceneNum(null);
  224. return Result.success(num);
  225. }
  226. /**
  227. * 查找八目未使用过的场景吗*
  228. * */
  229. @PostMapping("/finSceneNum")
  230. public Result finSceneNum(){
  231. String num = scene3dNumService.generateSceneNum(null);
  232. return Result.success(num);
  233. }
  234. /**
  235. * 根据时间场景码等获取百度统量
  236. * @param param
  237. * @return
  238. */
  239. @PostMapping(value = "/statistics/findByTime")
  240. public Result findByTime(@RequestBody RequestSceneStatistics param){
  241. if(org.springframework.util.StringUtils.isEmpty(param.getSceneNum()) || param.getType() == null ||
  242. org.springframework.util.StringUtils
  243. .isEmpty(param.getStartDate()) || org.springframework.util.StringUtils.isEmpty(param.getEndDate())){
  244. throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
  245. }
  246. return Result.success(sceneStatisticsService.findByTime(
  247. DateUtil.string2Date(param.getStartDate(), DateUtil.YYYYMMDD_DATA_FORMAT),
  248. DateUtil.string2Date(param.getEndDate(), DateUtil.YYYYMMDD_DATA_FORMAT),
  249. param.getSceneNum(), param.getType()));
  250. }
  251. /**
  252. * 下载思为的html页面
  253. */
  254. @GetMapping(value = "/downloadSiWeiHtml")
  255. public Result downloadSiWeiHtml(HttpServletRequest request) throws Exception{
  256. String token = getToken();
  257. if(StringUtils.isEmpty(token)){
  258. throw new BusinessException(ErrorCode.FAILURE_CODE_3004);
  259. }
  260. User user = userService.getByToken(token);
  261. if(user == null){
  262. throw new BusinessException(ErrorCode.FAILURE_CODE_3004);
  263. }
  264. String sceneNum = request.getParameter("sceneNum");
  265. if(StringUtils.isEmpty(sceneNum)){
  266. throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
  267. }
  268. //获取getInfo的数据
  269. ScenePro sceneProEntity = sceneProService.getByNum(sceneNum);
  270. if(sceneProEntity == null){
  271. throw new BusinessException(ErrorCode.FAILURE_CODE_5005);
  272. }
  273. if(sceneProEntity.getPayStatus() != 1){
  274. throw new BusinessException(ErrorCode.FAILURE_CODE_5005);
  275. }
  276. if(sceneProEntity.getStatus() != 1 && sceneProEntity.getStatus() != -2){
  277. throw new BusinessException(ErrorCode.FAILURE_CODE_5005);
  278. }
  279. if(user.getId().longValue() != sceneProEntity.getUserId().longValue()){
  280. throw new BusinessException(ErrorCode.FAILURE_CODE_5014);
  281. }
  282. boolean lock = redisLockUtil.lock(RedisLockKey.LOCK_DOWNLOAD_SIWEI_HTML, RedisKey.EXPIRE_TIME_2_HOUR);
  283. if(!lock){
  284. throw new BusinessException(ErrorCode.FAILURE_CODE_5024, SceneConstant.FAILURE_MSG_5024);
  285. }
  286. try{
  287. SceneInfoVo responseScene = new SceneInfoVo();
  288. SceneProEdit editEntity = sceneProEditService.getByProId(sceneProEntity.getId());
  289. FileUtil.copyContent(new File(ConstantFilePath.BASE_PATH + "/local/localHose"), new File(ConstantFilePath.BASE_PATH + "/local/localHose" + sceneNum), true);
  290. //14表示matterPro场景,需要调用命令获取切图,并且修改sceneScheme为13
  291. if(sceneProEntity.getSceneSource() == 14){
  292. sceneProEntity.setSceneScheme(13);
  293. RuntimeUtil.execForStr("node /opt/4dkankan_scene/index.js -s " + sceneProEntity.getNum() + " -d " + ConstantFilePath.BASE_PATH + "/local/localHose" + sceneNum);
  294. }
  295. BeanUtils.copyProperties(editEntity, responseScene);
  296. BeanUtils.copyProperties(sceneProEntity, responseScene);
  297. if(StrUtil.isNotEmpty(editEntity.getEntry())){
  298. responseScene.setEntry(JSONObject.parseObject(editEntity.getEntry()).toJSONString());
  299. }
  300. if(StrUtil.isNotEmpty(sceneProEntity.getGps())){
  301. responseScene.setGps(JSONObject.parseObject(sceneProEntity.getGps()).toJSONString());
  302. }
  303. responseScene.setCreateTime(sceneProEntity.getCreateTime());
  304. responseScene.setCreateDate(DateExtUtil.parse(sceneProEntity.getCreateTime(), DateExtUtil.dateStyle).getTime());
  305. if(StrUtil.isEmpty(editEntity.getSceneKey())){
  306. responseScene.setIsPublic(0);
  307. }else {
  308. responseScene.setIsPublic(1);
  309. }
  310. //不返回场景访问密码
  311. responseScene.setSceneKey("");
  312. //替换index.html里面的场景码
  313. String indexPath = ConstantFilePath.BASE_PATH + "/local/localHose" + sceneNum + File.separator + "embed.html";
  314. String index = FileUtils.readFile(indexPath);
  315. FileUtils.deleteFile(indexPath);
  316. FileUtils.writeFile(indexPath, index.replace("__ProjectNum__", sceneNum));
  317. //下载oss资源
  318. fYunFileService.downloadFileByCommand(ConstantFilePath.BASE_PATH + "/local/localHose" + sceneNum + "/data", "data/data" + sceneNum);
  319. fYunFileService.downloadFileByCommand(ConstantFilePath.BASE_PATH + "/local/localHose" + sceneNum + "/images", "images/images" + sceneNum);
  320. fYunFileService.downloadFileByCommand(ConstantFilePath.BASE_PATH + "/local/localHose" + sceneNum + "/video", "video/video" + sceneNum);
  321. fYunFileService.downloadFileByCommand(ConstantFilePath.BASE_PATH + "/local/localHose" + sceneNum + "/voice", "voice/voice" + sceneNum);
  322. FileUtils.writeFile(ConstantFilePath.BASE_PATH + "/local/localHose" + sceneNum + "/data/data" + sceneNum + "/getInfo.json",
  323. JSONObject.toJSONString(responseScene));
  324. ZipUtil.zip(ConstantFilePath.BASE_PATH + "/local/localHose" + sceneNum, ConstantFilePath.BASE_PATH + "/local/localHose" + sceneNum + ".zip");
  325. FileUtils.deleteDirectory(ConstantFilePath.BASE_PATH + "/local/localHose" + sceneNum);
  326. return Result.success((Object)"local/localHose" + sceneNum + ".zip");
  327. }catch (Exception e){
  328. log.error("思维下载失败,num=" + sceneNum, e);
  329. return Result.failure(LoginConstant.ERROR_MSG);
  330. }finally {
  331. redisLockUtil.unlockLua(RedisLockKey.LOCK_DOWNLOAD_SIWEI_HTML);
  332. }
  333. }
  334. /**
  335. * 内部使用查询场景名称和场景码
  336. */
  337. @RequestMapping(value = "/getScenesBySnCode", method = RequestMethod.GET)
  338. public Result getScenesBySnCode(String snCode) throws Exception{
  339. return sceneApiService.getScenesBySnCode(snCode,getToken());
  340. }
  341. /**
  342. * 思为获取场景列表
  343. */
  344. @RequestMapping(value = "/siweiSceneList", method = RequestMethod.GET)
  345. public Result siweiSceneList(HttpServletRequest request) throws Exception{
  346. return Result.success(sceneApiService.siweiSceneList(request,getToken()));
  347. }
  348. /**
  349. * 场景浏览
  350. * @return
  351. */
  352. @RequestMapping(value = "/loadAllScene", method = RequestMethod.POST)
  353. public Result loadAllScene(@RequestBody JSONObject param) throws Exception {
  354. return Result.success(sceneApiService.loadAllScene(param));
  355. }
  356. /**
  357. * 增加场景下载次数
  358. */
  359. @RequestMapping(value = "/addDownloadNum", method = RequestMethod.GET)
  360. public Result addDownloadNum(HttpServletRequest request) throws Exception{
  361. sceneApiService.addDownloadNum(request.getParameter("sceneNum"));
  362. return Result.success();
  363. }
  364. /**
  365. * 获取编辑页面的资源下载路径
  366. */
  367. @RequestMapping(value = "/getEditDataUrl")
  368. public Result getEditDataUrl(HttpServletRequest request) throws Exception{
  369. List<String> result = sceneApiService.getEditDataUrl(request.getParameter("num"));
  370. return Result.success(result);
  371. }
  372. /**
  373. * 查询场景资源路径
  374. */
  375. @GetMapping("/querySceneDataSource")
  376. public String querySceneDataSource(String num){
  377. return innerService.querySceneDataSource(num);
  378. }
  379. /**
  380. *
  381. * 获取场景描述等信息
  382. */
  383. @RequestMapping(value = "/getSceneDetail", method = RequestMethod.GET)
  384. public Result getSceneDetail(String sceneNum) throws Exception{
  385. String token = getToken();
  386. if(StringUtils.isEmpty(token)){
  387. throw new BusinessException(3004, "无token参数");
  388. }
  389. User user = userService.getByToken(token);
  390. if(user == null){
  391. throw new BusinessException(3004, "token参数不正确");
  392. }
  393. if(StringUtils.isEmpty(sceneNum)){
  394. throw new BusinessException(LoginConstant.FAILURE_CODE_3001, LoginConstant.FAILURE_MSG_3001);
  395. }
  396. ScenePro pro = sceneProService.getByNum(sceneNum);
  397. ScenePlus plus = scenePlusService.getByNum(sceneNum);
  398. if(pro == null && plus == null){
  399. throw new BusinessException(SceneConstant.FAILURE_CODE_5005, SceneConstant.FAILURE_MSG_5005);
  400. }
  401. Long cameraId = pro == null ? plus.getCameraId() : pro.getCameraId();
  402. String snCode = null;
  403. if(!ObjectUtils.isEmpty(cameraId)){
  404. Camera cameraEntity = cameraService.getById(cameraId);
  405. if(ObjectUtils.isEmpty(cameraEntity)){
  406. throw new BusinessException(CameraConstant.FAILURE_CODE_6029, CameraConstant.FAILURE_MSG_6029);
  407. }
  408. snCode = cameraEntity.getSnCode();
  409. }
  410. Map<String, Object> map = new HashMap<>();
  411. String webSite = null;
  412. String thumb = null;
  413. String sceneName = null;
  414. String sceneDec = null;
  415. String createDate = null;
  416. if(pro != null){
  417. webSite = pro.getWebSite();
  418. thumb = pro.getThumb();
  419. sceneName = pro.getSceneName();
  420. sceneDec = pro.getSceneDec();
  421. createDate = pro.getCreateTime();
  422. }
  423. if(plus != null){
  424. sceneName = plus.getTitle();
  425. createDate = plus.getCreateTime();
  426. sceneDec = plus.getDescription();
  427. ScenePlusExt plusExt = scenePlusExtService.getByPlusId(plus.getId());
  428. if(plusExt != null){
  429. webSite = plusExt.getWebSite();
  430. thumb = plusExt.getThumb();
  431. }
  432. }
  433. map.put("webSite", webSite);
  434. map.put("thumb", thumb);
  435. map.put("num", sceneNum);
  436. map.put("sceneName", sceneName);
  437. map.put("sceneDec", sceneDec);
  438. map.put("snCode", snCode);
  439. map.put("createDate", DateUserUtil.getDate(createDate).getTime());
  440. map.put("createTime", createDate);
  441. return Result.success(map);
  442. }
  443. }