Forráskód Böngészése

'补充参数为空判断'

zhuchengjie 2 éve
szülő
commit
54cd1779e9
1 módosított fájl, 3 hozzáadás és 0 törlés
  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;