Explorar el Código

up - 参数转换

liugc hace 9 meses
padre
commit
fe0aeb64de
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/api/service/DouYinService.php

+ 1 - 0
app/api/service/DouYinService.php

@@ -343,6 +343,7 @@ class DouYinService
         try {
             $params['external_platform_id'] = self::EXTERNAL_PLATFORM_ID;
             // order_id goods  total_amount discount cp_extra create_order_time phone_num contact_name open_id
+            $params['cp_extra'] = json_decode($params['cp_extra'], true);
             $user_id = $params['cp_extra']['user_id'];
             $user = User::where('id',$user_id)->findOrEmpty();
             if($params['cp_extra']['douyinOrderId']>0){ // 说明是尾款单