Kaynağa Gözat

京东详细

xialei 1 yıl önce
ebeveyn
işleme
a24a709313
1 değiştirilmiş dosya ile 7 ekleme ve 7 silme
  1. 7 7
      app/controller/api/store/product/Jt.php

+ 7 - 7
app/controller/api/store/product/Jt.php

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