Commit fc8bf926 by 赵成彬(PHP)

update

1 parent 60cc11a3
...@@ -25,12 +25,13 @@ $config = [ ...@@ -25,12 +25,13 @@ $config = [
$payData = [ $payData = [
'out_trade_no' => '2019062017085196425851101912', 'out_trade_no' => '2019062017085196425851101912',
'refund_no' => '2019062017085196425851101912', 'refund_no' => '2019062017085196425851101912',
'total_fee'=>0.9
]; ];
//2019062017085196425851101985 //2019062017085196425851101985
try{ try{
$ret = Close::run(Config::LTF_CHARGE, $config, $payData); $ret = Charge::run(Config::LTF_CHANNEL_LITE, $config, $payData);
}catch(PayException $e){ }catch(PayException $e){
exit($e->errorMessage()); exit($e->errorMessage());
} }
......
...@@ -17,7 +17,7 @@ abstract class ChargeBaseData extends LTFBaseData{ ...@@ -17,7 +17,7 @@ abstract class ChargeBaseData extends LTFBaseData{
protected function checkDataParam(){ protected function checkDataParam(){
// TODO: Implement checkDataParam() method. // TODO: Implement checkDataParam() method.
// 检查金额不能低于0.01 // 检查金额不能低于0.01
if ($this->total_fee < 1) { if ($this->total_fee < 0.01) {
throw new PayException('支付金额不能低于 ' . Config::PAY_MIN_FEE . ' 元'); throw new PayException('支付金额不能低于 ' . Config::PAY_MIN_FEE . ' 元');
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!