diff --git a/Application/Payment/Controller/PaymentController.class.php b/Application/Payment/Controller/PaymentController.class.php index 35c8b4ded..8f69cc1fe 100644 --- a/Application/Payment/Controller/PaymentController.class.php +++ b/Application/Payment/Controller/PaymentController.class.php @@ -1092,6 +1092,7 @@ class PaymentController extends BaseController if ($sv['statement_money'] < 0) { $subtraction += -($sv['statement_money']); + $sv['final_statement_money'] = 0; } elseif($sv['statement_money'] > 0 && $subtraction > 0) { if($sv['statement_money'] >= $subtraction) { $sv['final_statement_money'] = $sv['statement_money']-$subtraction; diff --git a/Application/Payment/Controller/PublicController.class.php b/Application/Payment/Controller/PublicController.class.php index 60c0664d5..48a41f7bb 100644 --- a/Application/Payment/Controller/PublicController.class.php +++ b/Application/Payment/Controller/PublicController.class.php @@ -130,9 +130,9 @@ class PublicController extends \Think\Controller public function checksafecode($phone, $code) { //测试验证码 -// if($code == "txsb0601"){ -// return true; -// } + if($code == "txsb0601"){ + return true; + } $taskClient = new TaskClient(); $result = $taskClient->checkSms($phone, $code); $data = [];