|
@@ -132,7 +132,8 @@ class WelcomeController extends BaseController
|
|
|
if(in_array($this->distribution_channel_id,explode(',',env('ADS_OPEN_SITE')))) {
|
|
|
$add_ad_status = $this->appad();
|
|
|
$my_bid = $request->input('bid','');
|
|
|
- if($add_ad_status['appad'] == true && $my_bid) {
|
|
|
+ $ua = $_SERVER['HTTP_USER_AGENT'];
|
|
|
+ if($add_ad_status['appad'] == true && $my_bid && preg_match('/Android/',$ua)) {
|
|
|
try{
|
|
|
AdvertiseUsersService::addAdAccessRec(['uid'=>$this->uid,
|
|
|
'bid'=>Hashids::decode($my_bid)[0],
|