wupengfei %!s(int64=2) %!d(string=hai) anos
pai
achega
f0d65bed34
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;
                 }