wupengfei 2 年之前
父節點
當前提交
acd6388ea1
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 1 1
      addons/shopro/library/PayService.php
  2. 0 1
      addons/shopro/model/UserWalletApply.php

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

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

+ 0 - 1
addons/shopro/model/UserWalletApply.php

@@ -261,7 +261,6 @@ class UserWalletApply extends Model
         } catch (\Exception $e) {
             throw \Exception('提现信息不正确');
         }
-        throw \Exception('999');
         // 3.发起付款 
         try {
             list($code, $response) = $pay->transfer($payload);