zz 6 years ago
parent
commit
549bc8eabf
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Libs/Pay/Merchants/Official.php

+ 3 - 1
app/Libs/Pay/Merchants/Official.php

@@ -66,7 +66,7 @@ class Official
         ];
         $order = new Wxorder($attributes);
         $result = $payment->prepare($order);
-        Log::info('Official -------pay-----result----------');
+        Log::info('Official -------pay-----result---------- order is: '.$data['trade_no']);
         Log::info($result);
         if ($result->return_code == 'SUCCESS' && $result->result_code == 'SUCCESS') {
             $data = [
@@ -79,6 +79,8 @@ class Official
             $data['paySign'] = $this->MakeSign($data);
             return $data;
         }
+        Log::error('pay error order is: '.$data['trade_no']);
+        Log::error($result);
         return [];
     }