From 04345420e457ccffcfc94646fde4f5a2204164c3 Mon Sep 17 00:00:00 2001
From: 6c <420680616@qq.com>
Date: 星期三, 15 十月 2025 10:31:18 +0800
Subject: [PATCH] 移动端加载mvc
---
src/main/java/com/product/mobile/core/controller/SignInController.java | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/product/mobile/core/controller/SignInController.java b/src/main/java/com/product/mobile/core/controller/SignInController.java
index de7750c..b6ea1fe 100644
--- a/src/main/java/com/product/mobile/core/controller/SignInController.java
+++ b/src/main/java/com/product/mobile/core/controller/SignInController.java
@@ -106,4 +106,30 @@
return this.error(MobileCoreCode.SIGN_IN_FAIL);
}
}
+ /**
+ * 鍦扮悊鍧愭爣杞崲鎺ュ彛
+ *
+ * @param request
+ * @return
+ */
+ @RequestMapping(value = "/map/coord/convert/{version}", method = RequestMethod.POST)
+ @ApiVersion(1)
+ public String coordinateTransform(HttpServletRequest request) {
+ FieldSetEntity fse = null;
+ Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
+ if (bean != null) {
+ RequestParameterEntity reqp = (RequestParameterEntity) bean;
+ fse = reqp.getFormData();
+ }
+ try {
+ //杩斿洖缁忕含搴�
+ return this.OK_List(signInService.coordinateTransform(fse.getInteger("type"),fse.getDouble("longitude"),fse.getDouble("latitude")));
+
+ } catch (BaseException e) {
+ return this.error(e);
+ } catch (Exception e) {
+
+ return this.error(MobileCoreCode.SIGN_IN_FAIL);
+ }
+ }
}
--
Gitblit v1.9.2