Explorar o código

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

sunxiaobiao hai 1 ano
pai
achega
5700c8cf8c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/controller/api/store/product/StoreProduct.php

+ 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,