Browse Source

add - log

liugc 9 months ago
parent
commit
f2020056aa
1 changed files with 9 additions and 0 deletions
  1. 9 0
      app/api/controller/DouYinController.php

+ 9 - 0
app/api/controller/DouYinController.php

@@ -212,6 +212,7 @@ class DouYinController extends BaseApiController
             $params['user_id'] = $this->userId;
             $params['user_info'] = $this->userInfo;
             $requestOrderData = DouYinService::getPluginCreateOrderData($params['goods_id']??'',$params['quantity']??1,$params['dy_order_id']??'',$params);
+            Log::info('requestOrderData:'.formatLogData($requestOrderData));
             return $this->success('',$requestOrderData);
         } catch (\Exception $e) {
             return $this->fail($e->getMessage());
@@ -221,6 +222,7 @@ class DouYinController extends BaseApiController
     {
         try {
             $params = $this->request->post();
+            Log::info('submitOrderNotify:'.formatLogData($params));
             $msg = is_array($params['msg'])?$params['msg']:json_decode($params['msg'],true);
             $res = DouYinService::submitOrderNotify($msg);
             if($res){
@@ -240,6 +242,7 @@ class DouYinController extends BaseApiController
     {
         try {
             $params = $this->request->post();
+            Log::info('payNotify:'.formatLogData($params));
             $msg = is_array($params['msg'])?$params['msg']:json_decode($params['msg'],true);
             if(DouYinService::payNotify($msg)){
                 return json(["err_no"=>0,"err_tips"=>"success"], 200);
@@ -252,6 +255,7 @@ class DouYinController extends BaseApiController
     {
         try {
             $params = $this->request->post();
+            Log::info('payTailNotify:'.formatLogData($params));
             $msg = is_array($params['msg'])?$params['msg']:json_decode($params['msg'],true);
             if(DouYinService::payTailNotify($msg)){
                 return json(["err_no"=>0,"err_tips"=>"success"], 200);
@@ -273,6 +277,7 @@ class DouYinController extends BaseApiController
     {
         try {
             $params = $this->request->post(); // order_number
+            Log::info('reservation:'.formatLogData($params));
             DouYinService::reservation($params);
             return $this->success();
         } catch (\Exception $e) {
@@ -289,6 +294,7 @@ class DouYinController extends BaseApiController
     {
         try {
             $params = $this->request->post(); // order_number appointment_time
+            Log::info('upReservation:'.formatLogData($params));
             DouYinService::upReservation($params);
             return $this->success();
         } catch (\Exception $e) {
@@ -308,6 +314,7 @@ class DouYinController extends BaseApiController
     {
         try {
             $params = $this->request->post(); // order_number
+            Log::info('cancelOrder:'.formatLogData($params));
             DouYinService::cancelOrder($params);
             return $this->success();
         } catch (\Exception $e) {
@@ -325,6 +332,7 @@ class DouYinController extends BaseApiController
         try {
             $params = $this->request->post(); // order_number appointment_time
             $params['user_id'] = $this->userId;
+            Log::info('refund:'.formatLogData($params));
             DouYinService::refund($params);
             return $this->success();
         } catch (\Exception $e) {
@@ -340,6 +348,7 @@ class DouYinController extends BaseApiController
     {
         try {
             $params = $this->request->post();
+            Log::info('refundNotify:'.formatLogData($params));
             $msg = is_array($params['msg'])?$params['msg']:json_decode($params['msg'],true);
             if(DouYinService::refundNotify($msg)){
                 return json(["err_no"=>0,"err_tips"=>"success"], 200);