|
|
@@ -2,6 +2,9 @@ package com.ruoyi.app.order;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.List;
|
|
|
+
|
|
|
+import com.ruoyi.common.core.domain.entity.SysDictData;
|
|
|
+import com.ruoyi.common.utils.DictUtils;
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
@@ -39,7 +42,19 @@ public class InfoAddressController extends BaseController
|
|
|
@Autowired
|
|
|
private InfoAddressMapper infoAddressMapper;
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 返回谷歌地图key
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Anonymous
|
|
|
+ @GetMapping("/getGoogleMapKey")
|
|
|
+ public AjaxResult getGoogleMapKey(){
|
|
|
+ List<SysDictData> dictData= DictUtils.getDictCache("sys_googlemap_key");
|
|
|
+ if (dictData != null && !dictData.isEmpty()) {
|
|
|
+ return success("成功", dictData.get(0).getDictValue());
|
|
|
+ }
|
|
|
+ return error("未找到Google地图配置");
|
|
|
+ }
|
|
|
//删除收货地址
|
|
|
@Anonymous
|
|
|
@GetMapping("/deleaddress")
|