|
|
@@ -589,13 +589,13 @@ class Jt extends BaseController
|
|
589
|
589
|
|
|
590
|
590
|
$formatData['materialUrl'] = '';
|
|
591
|
591
|
if($userId!=''){
|
|
592
|
|
- //加入转链地址
|
|
593
|
|
- $clparams = [
|
|
594
|
|
- 'positionid' => pow(10, 5) + $userId,
|
|
595
|
|
- 'gid' => $goodsId,
|
|
596
|
|
- 'coupon_url' => $detail['couponInfo']['couponList'][0]['discount_link'] ?? '',
|
|
597
|
|
- ];
|
|
598
|
|
- $formatData['materialUrl'] = $this->changLink($clparams);
|
|
|
592
|
+ //加入转链地址 此步骤可优化 分两个步骤
|
|
|
593
|
+ $clparams = [
|
|
|
594
|
+ 'positionid' => pow(10, 5) + $userId,
|
|
|
595
|
+ 'gid' => $goodsId,
|
|
|
596
|
+ 'coupon_url' => $detail['couponInfo']['couponList'][0]['discount_link'] ?? '',
|
|
|
597
|
+ ];
|
|
|
598
|
+ $formatData['materialUrl'] = $this->changLink($clparams);
|
|
599
|
599
|
}
|
|
600
|
600
|
|
|
601
|
601
|
$return[] = $formatData;
|