wupengfei 2 年之前
父节点
当前提交
f0d65bed34
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;
                 }