Explorar o código

'补充参数为空判断'

zhuchengjie %!s(int64=3) %!d(string=hai) anos
pai
achega
54cd1779e9
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      app/Http/Controllers/QuickApp/Book/BookController.php

+ 3 - 0
app/Http/Controllers/QuickApp/Book/BookController.php

@@ -1032,6 +1032,9 @@ class BookController extends BaseController
         $uid = $this->uid;
         $distribution_id = $this->distribution_channel_id;
         $cacheKey = 'advertisement:uid:'.$uid.':id';
+        if(empty($order_id)){
+            return response()->error();
+        }
         if(Redis::exists($cacheKey)){
             $channel_ad_id = Redis::get($cacheKey);
             $type = ($channel_ad_id > 0) ? 1 : 0;