shensong00 12 hours ago
parent
commit
f0f197954a
1 changed files with 8 additions and 8 deletions
  1. 8 8
      app/Support/tencentAdSDK/UserActionsOpenApi.php

+ 8 - 8
app/Support/tencentAdSDK/UserActionsOpenApi.php

49
 //                    'trace'        => [
49
 //                    'trace'        => [
50
 //                        'click_id' => $data['click_id']
50
 //                        'click_id' => $data['click_id']
51
 //                    ]
51
 //                    ]
52
-//                    'action_param' => [
53
-//                        'value'        => $data['value'],
54
-//                        'object'       => $data['object'],
55
-//                        'product_name' => $data['product_name'] ?? null
56
-//                    ]
52
+                   'action_param' => [
53
+                       'value'        => $data['value'],
54
+                       'object'       => $data['object'],
55
+                       'product_name' => $data['product_name'] ?? null
56
+                   ]
57
                 ]
57
                 ]
58
             ]
58
             ]
59
         ];
59
         ];
61
         if(isset($data['click_id'])) {
61
         if(isset($data['click_id'])) {
62
             $parameters['actions'][0]['trace']['click_id'] = $data['click_id'];
62
             $parameters['actions'][0]['trace']['click_id'] = $data['click_id'];
63
         }
63
         }
64
-//        if(empty($parameters['actions'][0]['action_param']['product_name'])) {
65
-//            unset($parameters['actions'][0]['action_param']['product_name']);
66
-//        }
64
+       if(empty($parameters['actions'][0]['action_param']['product_name'])) {
65
+           unset($parameters['actions'][0]['action_param']['product_name']);
66
+       }
67
 
67
 
68
         $parameters = json_encode($parameters);
68
         $parameters = json_encode($parameters);
69
         $request_url = $url . '?' . http_build_query($common_parameters);
69
         $request_url = $url . '?' . http_build_query($common_parameters);