Browse Source

advertise

tusx 6 years ago
parent
commit
2890d4a802
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Http/Controllers/Wap/Advertises/AdvertiseController.php

+ 2 - 0
app/Http/Controllers/Wap/Advertises/AdvertiseController.php

@@ -146,6 +146,8 @@ class AdvertiseController extends BaseController
         $position = $request->input('position','');
         $params = compact('uid','bid','position');
         $params['created_at'] = $params['updated_at'] = date('Y-m-d H:i:s');
+        $ua = $_SERVER['HTTP_USER_AGENT'];
+        $params['remark'] = $ua;
         DB::table('advertise_access_rec')->insert($params);
         return response()->success();
     }