付款订单有效性问题

master
yulingwei 5 years ago
parent cf67739a9e
commit d90186b301

@ -186,6 +186,9 @@ class CoinOrderController extends BaseController
public function pay_center(){ public function pay_center(){
$trade_no = I("trade_no"); $trade_no = I("trade_no");
$order = M("coin_pay_order","tab_")->where("order_number='$trade_no'")->find(); $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); $this->assign("data",$order);
/*if($order && $order['pay_amount']>='5000'){ /*if($order && $order['pay_amount']>='5000'){
$this->do_sq_pay($trade_no,$order); $this->do_sq_pay($trade_no,$order);
@ -201,6 +204,9 @@ class CoinOrderController extends BaseController
$order_id = I("trade_no"); $order_id = I("trade_no");
if($order_id){ if($order_id){
$order_info = M("coin_pay_order", "tab_")->where("order_number='$order_id'")->find(); $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']; $pay_amount = $order_info['pay_amount'];
if(get_pid()==138 || get_pid()==165){ if(get_pid()==138 || get_pid()==165){
$pay_amount = 0.01; $pay_amount = 0.01;

@ -50,7 +50,7 @@
<td class="l">充值方式:</td> <td class="l">充值方式:</td>
<td class="r form-radio jspayradio"> <td class="r form-radio jspayradio">
<label><input type="radio" value="1" name="pay_type" checked><i class="current"></i><span>在线转账</span></label> <label><input type="radio" value="1" name="pay_type" checked><i class="current"></i><span>在线转账</span></label>
<label><input type="radio" value="2" name="pay_type"><i></i><span>线下转账</span><span class="noticetxt">(需上传截图)</span></label> <!-- <label><input type="radio" value="2" name="pay_type"><i></i><span>线下转账</span><span class="noticetxt">(需上传截图)</span></label> -->
</td> </td>
</tr> </tr>
<tr> <tr>

Loading…
Cancel
Save