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