1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace App\Http\Controllers\Admin;
- use App\Http\Controllers\Controller;
- use App\Log;
- use App\Service\Tencent\TencentService;
- use Illuminate\Http\Request;
- class TencentController extends Controller
- {
- public function click(Request $request) {
- Log::logInfo('回调数据', [$request->all()], 'clickCallBackRecord');
- # 将数据保存至数据库中
- $data['click_id'] = $request->input('click_id');
- $data['click_time'] = $request->input('click_time');
- $data['adgroup_id'] = $request->input('adgroup_id');
- $data['ad_platform_type'] = $request->input('ad_platform_type');
- $data['ad_type'] = $request->input('ad_type');
- $data['account_id'] = $request->input('account_id');
- $data['agency_id'] = $request->input('agency_id');
- $data['click_sku_id'] = $request->input('click_sku_id');
- $data['billing_event'] = $request->input('billing_event');
- $data['device_os_type'] = $request->input('device_os_type');
- $data['process_time'] = $request->input('process_time');
- $data['request_id'] = $request->input('request_id');
- $data['callback'] = $request->input('callback');
- $data['adgroup_name'] = $request->input('adgroup_name');
- $data['wechat_openid'] = $request->input('wechat_openid');
- $data['promoted_object_id'] = $request->input('promoted_object_id');
- TencentService::clickRecordSave($data);
- }
- }
|