From b9b263043cbb2e028017b9a5626c664b54513749 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 14 十月 2024 17:46:11 +0800
Subject: [PATCH] 将CMQ替换为rabbitmq

---
 fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java b/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java
index 7ddae40..0f828ea 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java
@@ -732,7 +732,7 @@
      * @param out
      */
     @RequestMapping(value = "getBuyLink", method = RequestMethod.POST)
-    public void getBuyLink(WXMPAcceptData acceptData, Long goodsId, Integer goodsType, String from, String couponUrl,
+    public void getBuyLink(WXMPAcceptData acceptData, String goodsId, Integer goodsType, String from, String couponUrl,
                            Long uid, String inviteCode, PrintWriter out) {
         if (goodsId == null || goodsType == null) {
             out.print(JsonUtil.loadFalseResult(1, "鍟嗗搧淇℃伅浼犻�掗敊璇�"));
@@ -764,7 +764,7 @@
 
         String jumpLink = null;
         if (goodsType.intValue() == Constant.SOURCE_TYPE_JD) { // 浜笢
-            JDGoods goods = jdGoodsCacheUtil.getGoodsInfo(goodsId);
+            JDGoods goods = jdGoodsCacheUtil.getGoodsInfo(Long.parseLong(goodsId));
             if (goods == null) {
                 out.print(JsonUtil.loadFalseResult(2, "鍟嗗搧宸蹭笅鏋�"));
                 return;
@@ -833,7 +833,7 @@
      * @param out
      */
     @RequestMapping(value = "sharePoster", method = RequestMethod.POST)
-    public void sharePoster(WXMPAcceptData acceptData, Long goodsId, Integer goodsType, String from, Integer type,
+    public void sharePoster(WXMPAcceptData acceptData, String goodsId, Integer goodsType, String from, Integer type,
                             Long uid, PrintWriter out) {
         if (uid == null || uid < 1) {
             out.print(JsonUtil.loadFalseResult(1, "鐢ㄦ埛鏈櫥褰�"));
@@ -863,7 +863,7 @@
         }
 
         if (goodsType.intValue() == Constant.SOURCE_TYPE_JD) { // 浜笢
-            createPosterJD(acceptData, goodsId, goodsType, from, type, user, inviteCode, out);
+            createPosterJD(acceptData, Long.parseLong(goodsId), goodsType, from, type, user, inviteCode, out);
         } else if (goodsType.intValue() == Constant.SOURCE_TYPE_PDD) { // 鎷煎澶�
             createPosterPDD(acceptData, goodsId, goodsType, from, type, user, inviteCode, out);
         } else {
@@ -932,7 +932,7 @@
     /**
      * 鍒涘缓鎷煎澶氬垎浜捣鎶�
      */
-    private void createPosterPDD(WXMPAcceptData acceptData, Long goodsId, Integer goodsType, String from, Integer type,
+    private void createPosterPDD(WXMPAcceptData acceptData, String goodsId, Integer goodsType, String from, Integer type,
                                  UserInfo user, String inviteCode, PrintWriter out) {
         PDDGoodsDetail pddGoods = pinDuoDuoCacheUtil.getGoodsInfo(goodsId);
         if (pddGoods == null) {

--
Gitblit v1.8.0