From d90186b301097a17293bc1dfe0b74575d5b04abf Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Thu, 14 Nov 2019 13:53:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E6=AC=BE=E8=AE=A2=E5=8D=95=E6=9C=89?= =?UTF-8?q?=E6=95=88=E6=80=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/CoinOrderController.class.php | 6 ++++++ Application/Home/View/default/CoinOrder/order_add.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Application/Home/Controller/CoinOrderController.class.php b/Application/Home/Controller/CoinOrderController.class.php index 6a854903c..4c08ba073 100644 --- a/Application/Home/Controller/CoinOrderController.class.php +++ b/Application/Home/Controller/CoinOrderController.class.php @@ -186,6 +186,9 @@ class CoinOrderController extends BaseController public function pay_center(){ $trade_no = I("trade_no"); $order = M("coin_pay_order","tab_")->where("order_number='$trade_no'")->find(); + if ($order['order_status'] == 1) { + return $this->error("该订单已经付款成功,请重新发起一笔订单!", U("CoinOrder/order_add")); + } $this->assign("data",$order); /*if($order && $order['pay_amount']>='5000'){ $this->do_sq_pay($trade_no,$order); @@ -201,6 +204,9 @@ class CoinOrderController extends BaseController $order_id = I("trade_no"); if($order_id){ $order_info = M("coin_pay_order", "tab_")->where("order_number='$order_id'")->find(); + if ($order_info['order_status'] == 1) { + return $this->error("该订单已经付款成功,请重新发起一笔订单!", U("CoinOrder/order_add")); + } $pay_amount = $order_info['pay_amount']; if(get_pid()==138 || get_pid()==165){ $pay_amount = 0.01; diff --git a/Application/Home/View/default/CoinOrder/order_add.html b/Application/Home/View/default/CoinOrder/order_add.html index 93fe57060..92808ab5e 100644 --- a/Application/Home/View/default/CoinOrder/order_add.html +++ b/Application/Home/View/default/CoinOrder/order_add.html @@ -50,7 +50,7 @@