|
@@ -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());
|