wupengfei 2 år sedan
förälder
incheckning
f0d65bed34
1 ändrade filer med 2 tillägg och 1 borttagningar
  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;
                 }