Ejemplo n.º 1
0
	public function payReturn()
	{
		$orderid = trim($_GET["orderid"]);

		if (isset($_GET["nohandle"])) {
			$where = array("token" => $this->token, "wecha_id" => $this->wecha_id, "orderid" => $orderid);
			$order = M("Crowdfunding_order")->where($where)->find();
			$this->redirect(U("Crowdfunding/index", array("token" => $this->token, "wecha_id" => $this->wecha_id, "id" => $order["pid"])));
		}
		else {
			ThirdPayCrowdfunding::index($orderid);
		}
	}
Ejemplo n.º 2
0
 public function payReturn()
 {
     $orderid = trim($_GET['orderid']);
     if (isset($_GET['nohandle'])) {
         $where = array('token' => $this->token, 'wecha_id' => $this->wecha_id, 'orderid' => $orderid);
         $order = M('Crowdfunding_order')->where($where)->find();
         $this->redirect(U('Crowdfunding/index', array('token' => $this->token, 'wecha_id' => $this->wecha_id, 'id' => $order['pid'])));
         //已经异步处理过了
     } else {
         ThirdPayCrowdfunding::index($orderid);
     }
     /*		$act 		= $_GET['act'];
     		$orderid 	= $this->_get('orderid','trim');
     		$where 		= array('token'=>$this->token,'wecha_id'=>$this->wecha_id,'orderid'=>$orderid);
     		$order 		= M('Crowdfunding_order')->where($where)->find();
     		if(empty($order)){
     			exit('订单不存在');
     		}else{
     			if($order['paid'] == 1){
     				M('Crowdfunding_order')->where($where)->setField('pay_time',time());
     				M('Crowdfunding')->where(array('token'=>$this->token,'id'=>$order['pid']))->setInc('supports',1);
     				$this->success('支付成功',U('Crowdfunding/index',array('token'=>$this->token,'wecha_id'=>$this->wecha_id,'id'=>$order['pid'])));
     			}else{
     				exit('支付失败');
     			}
     		}*/
 }
Ejemplo n.º 3
0
 public function payReturn()
 {
     $orderid = trim($_GET['orderid']);
     if (isset($_GET['nohandle'])) {
         $where = array('token' => $this->token, 'wecha_id' => $this->wecha_id, 'orderid' => $orderid);
         $order = M('Crowdfunding_order')->where($where)->find();
         $this->redirect(U('Crowdfunding/index', array('token' => $this->token, 'wecha_id' => $this->wecha_id, 'id' => $order['pid'])));
     } else {
         ThirdPayCrowdfunding::index($orderid);
     }
 }