|
|
|
@ -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;
|
|
|
|
|