yumeng 2 years ago
parent
commit
d4e644edca

+ 4 - 4
ruixuan-live/src/main/java/com/ruixuan/isc/controller/KuaishouItemCollectSamplesController.java

@@ -840,21 +840,21 @@ public class KuaishouItemCollectSamplesController extends BaseController {
                 throw new Exception("该商品已下架或失效");
             }
 
-            KuaishouPromoter onlyPromoterInfo = promoterService.getOnlyPromoterInfo(promoterId);
+            KuaishouPromoter onlyPromoterInfo = promoterService.getOnlyPromoterInfoByUserId(promoterId,userId);
             if (Check.isNull(onlyPromoterInfo)) {
                 throw new Exception("该达人未录入");
             }
 
-            Long id = null;
+          /*  Long id = null;
             KuaishouPromoter userPromoterInfo = promoterService.getOnlyPromoterInfoByUserId(promoterId, userId);
             if (!Check.isNull(userPromoterInfo)) {
                 id = userPromoterInfo.getId();
             } else {
                 id = onlyPromoterInfo.getId();
-            }
+            }*/
             returnJson.put("code", 0);
             returnJson.put("message", "校验通过");
-            returnJson.put("id", id);
+            returnJson.put("id",  onlyPromoterInfo.getId());
         } catch (Exception e) {
             returnJson.put("code", 500);
             returnJson.put("message", e.getMessage());