|
@@ -15,7 +15,10 @@ import com.cyksj.common.util.StringUtil;
|
|
|
import com.cyksj.dto.Result;
|
|
import com.cyksj.dto.Result;
|
|
|
import com.cyksj.dto.UserSharedDto;
|
|
import com.cyksj.dto.UserSharedDto;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
-import com.cyksj.mapper.*;
|
|
|
|
|
|
|
+import com.cyksj.mapper.GiftCardGoodsSkuMapper;
|
|
|
|
|
+import com.cyksj.mapper.GoodsDonSkuMapper;
|
|
|
|
|
+import com.cyksj.mapper.OrderDonMapper;
|
|
|
|
|
+import com.cyksj.mapper.RegisterOrderDonMapper;
|
|
|
import com.cyksj.mapper.manage.coupon.CouponUserMapper;
|
|
import com.cyksj.mapper.manage.coupon.CouponUserMapper;
|
|
|
import com.cyksj.mapper.shop.YhShopGoodsSkuMapper;
|
|
import com.cyksj.mapper.shop.YhShopGoodsSkuMapper;
|
|
|
import com.cyksj.mapper.sys.SysConfigMapper;
|
|
import com.cyksj.mapper.sys.SysConfigMapper;
|
|
@@ -29,6 +32,7 @@ import com.cyksj.service.shop.YhShopFrontService;
|
|
|
import com.cyksj.service.translations.BackInfoTranslationsFrontService;
|
|
import com.cyksj.service.translations.BackInfoTranslationsFrontService;
|
|
|
import com.cyksj.service.user.UserBindRelationService;
|
|
import com.cyksj.service.user.UserBindRelationService;
|
|
|
import com.cyksj.service.user.UserService;
|
|
import com.cyksj.service.user.UserService;
|
|
|
|
|
+import com.cyksj.service.verify.ApiVerifyService;
|
|
|
import com.cyksj.web.util.StpUserUtil;
|
|
import com.cyksj.web.util.StpUserUtil;
|
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
|
import com.ejlchina.searcher.SearchResult;
|
|
import com.ejlchina.searcher.SearchResult;
|
|
@@ -90,6 +94,8 @@ public class GoodsDonController {
|
|
|
|
|
|
|
|
private final BackInfoTranslationsFrontService backInfoTranslationsFrontService;
|
|
private final BackInfoTranslationsFrontService backInfoTranslationsFrontService;
|
|
|
|
|
|
|
|
|
|
+ private final ApiVerifyService apiVerifyService;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 获取平台商品分类
|
|
* 获取平台商品分类
|
|
|
*/
|
|
*/
|
|
@@ -1478,6 +1484,18 @@ public class GoodsDonController {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(goodsDons);
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(goodsDons);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询ip地址所属地
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/get/ipAddress")
|
|
|
|
|
+ public Result<String> getIpAddress(@RequestBody Map<String, Object> params) throws Exception {
|
|
|
|
|
+ Boolean b = apiVerifyService.verifyApiDo(Jsons.toJson(params));
|
|
|
|
|
+ if (b) {
|
|
|
|
|
+ String newestIpAddress = StringUtil.getNewestIpAddress(ServletUtil.getClientIP(request));
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(newestIpAddress);
|
|
|
|
|
+ }
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获取平台销量
|
|
* 获取平台销量
|