|
@@ -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;
|