wupengfei 2 gadi atpakaļ
vecāks
revīzija
f0d65bed34
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      addons/shopro/library/PayService.php

+ 2 - 1
addons/shopro/library/PayService.php

@@ -188,8 +188,9 @@ class PayService
         switch ($this->payment) {
             case 'wechat':
                 $payload['amount'] = $payload['amount'] * 100;
+                throw \Exception($payload['amount']);
                 $response = Pay::wechat($this->config)->transfer($payload);
-                throw \Exception($response);
+
                 if ($response['return_code'] === 'SUCCESS' && $response['result_code'] === 'SUCCESS') {
                     $code = 1;
                 }