shensong00 3 dias atrás
pai
commit
f0f197954a
1 arquivos alterados com 8 adições e 8 exclusões
  1. 8 8
      app/Support/tencentAdSDK/UserActionsOpenApi.php

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

@@ -49,11 +49,11 @@ class UserActionsOpenApi extends BaseOpenApi
49 49
 //                    'trace'        => [
50 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,9 +61,9 @@ class UserActionsOpenApi extends BaseOpenApi
61 61
         if(isset($data['click_id'])) {
62 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 68
         $parameters = json_encode($parameters);
69 69
         $request_url = $url . '?' . http_build_query($common_parameters);