Explorar el Código

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

sunxiaobiao hace 1 año
padre
commit
5700c8cf8c
Se han modificado 1 ficheros con 1 adiciones y 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
         try {
365
         try {
366
             $uid = $this->request->uid();
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
             //记录Sat
368
             //记录Sat
369
             $insert_data=[
369
             $insert_data=[
370
                 'uid'=>$uid,
370
                 'uid'=>$uid,