songdb 6 yıl önce
ebeveyn
işleme
9babf23653

+ 6 - 0
app/Http/Controllers/Wap/Web/RedirectController.php

@@ -109,6 +109,12 @@ class RedirectController extends Controller
                 $uv = Redis::hget('send_order_uv_' . $param, $key);
                 $this->updateSendOrderTime($param, $uv);
             }
+
+            //判断是否强制到服务号阅读
+            if($link->force_show_qrcode)
+            {
+                Cookie::queue('force_show_qrcode', 1, 0, null, null, false, false);
+            }
             //
             $redirect_path = $request->get('redirect_path');
            if($redirect_path){

+ 1 - 1
app/Modules/SendOrder/Services/SendOrderService.php

@@ -274,7 +274,7 @@ class SendOrderService
      */
     static function getRedirectUrlById($id)
     {
-        return SendOrder::where('id', $id)->select('redirect_url', 'book_id', 'send_time', 'distribution_channel_id', 'name','promotion_point')->first();
+        return SendOrder::where('id', $id)->select('redirect_url', 'book_id', 'send_time', 'distribution_channel_id', 'name','promotion_point','force_show_qrcode')->first();
     }
 
     /**