|
@@ -1014,7 +1014,7 @@ class BookController extends BaseController
|
|
|
if(empty($type) || empty($id) || empty($distribution_id)){
|
|
|
return response()->success();
|
|
|
}
|
|
|
-
|
|
|
+ \Log::info('getCheckAdvertisement:type:'.$type.' id:'.$id);
|
|
|
$id = Hashids::decode($id)[0];
|
|
|
if(!$id){
|
|
|
return response()->success();
|
|
@@ -1033,6 +1033,8 @@ class BookController extends BaseController
|
|
|
}
|
|
|
|
|
|
$where = ['channel_ad_id' => $id, 'uid' => $this->uid, 'distribution_id' => $distribution_id];
|
|
|
+ \Log::info('insert_where:');
|
|
|
+ \Log::info(json_encode($where));
|
|
|
ChannelAdUser::firstOrCreate($where);
|
|
|
|
|
|
$date = date('Ymd');
|