Procházet zdrojové kódy

解决分享朋友圈未绑定推荐关系问题

sunxiaobiao před 1 rokem
rodič
revize
5700c8cf8c

+ 1 - 1
app/controller/api/store/product/StoreProduct.php

@@ -364,7 +364,7 @@ class StoreProduct extends BaseController
364 364
 
365 365
         try {
366 366
             $uid = $this->request->uid();
367
-            $product_share_url =  Db::name('product_share')->where('product_id',$id)->where('share_channel',$type)->where('`url` is not null')->value('url');
367
+            $product_share_url =  Db::name('product_share')->where('product_id',$id)->where('uid',$uid)->where('share_channel',$type)->where('`url` is not null')->value('url');
368 368
             //记录Sat
369 369
             $insert_data=[
370 370
                 'uid'=>$uid,