企微短剧业务系统

TencentController.php 1.4KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Http\Controllers\Admin;
  3. use App\Http\Controllers\Controller;
  4. use App\Log;
  5. use App\Service\Tencent\TencentService;
  6. use Illuminate\Http\Request;
  7. class TencentController extends Controller
  8. {
  9. public function click(Request $request) {
  10. Log::logInfo('回调数据', [$request->all()], 'clickCallBackRecord');
  11. # 将数据保存至数据库中
  12. $data['click_id'] = $request->input('click_id');
  13. $data['click_time'] = $request->input('click_time');
  14. $data['adgroup_id'] = $request->input('adgroup_id');
  15. $data['ad_platform_type'] = $request->input('ad_platform_type');
  16. $data['ad_type'] = $request->input('ad_type');
  17. $data['account_id'] = $request->input('account_id');
  18. $data['agency_id'] = $request->input('agency_id');
  19. $data['click_sku_id'] = $request->input('click_sku_id');
  20. $data['billing_event'] = $request->input('billing_event');
  21. $data['device_os_type'] = $request->input('device_os_type');
  22. $data['process_time'] = $request->input('process_time');
  23. $data['request_id'] = $request->input('request_id');
  24. $data['callback'] = $request->input('callback');
  25. $data['adgroup_name'] = $request->input('adgroup_name');
  26. $data['wechat_openid'] = $request->input('wechat_openid');
  27. $data['promoted_object_id'] = $request->input('promoted_object_id');
  28. TencentService::clickRecordSave($data);
  29. }
  30. }