|
@@ -272,6 +272,8 @@ class Pay extends Controller
|
|
|
if (!$order_no) $this->error('订单号参数错误');
|
|
|
$order_type = input('order_type');
|
|
|
if (!$order_type) $this->error('订单类型参数错误');
|
|
|
+ $pay_money = input('pay_money');
|
|
|
+ if (!$pay_money) $this->error('支付金额参数错误');
|
|
|
|
|
|
if (strlen($receipt_data) < 20) {
|
|
|
$this->error("非法参数");
|
|
@@ -304,7 +306,7 @@ class Pay extends Controller
|
|
|
|
|
|
$out_trade_no = $order_no;
|
|
|
$order = Db::name('SystemRecharge')->where('number',$out_trade_no)->find();
|
|
|
- $buyer_pay_amount = $order['need_pay'];
|
|
|
+ $buyer_pay_amount = $pay_money;
|
|
|
if($order['status'] == 0) {
|
|
|
if ($order['need_pay'] == $buyer_pay_amount) {
|
|
|
Db::startTrans();
|