Browse Source

支付测试的东西太危险,去掉

lizhen_gitee 1 year ago
parent
commit
a88aca6f29

+ 1 - 1
application/api/controller/Money.php

@@ -144,7 +144,7 @@ class Money extends Common
         if (!$orderid) $this->error("订单创建失败!");
         $payTest = config('pay_test');//支付测试:0=正常,1=支付0.01
         if ($payTest == 1) {
-            $money = 0.01;
+           // $money = 0.01;
         }
         $params = [
             'type'      => $type,

+ 1 - 1
application/common/service/MoneyService.php

@@ -29,7 +29,7 @@ class MoneyService
             $name= isset($params['name']) ? $params['name'] : '';
             $payTest = config('pay_test');
             if ($payTest == 1) {
-                $money = 0.1;
+               // $money = 0.1;
             }
             $info = [
                 'money' => $money,