Exemple #1
0
 /**
  *
  * 回调方法入口,子类可重写该方法
  * 注意:
  * 1、微信回调超时时间为2s,建议用户使用异步处理流程,确认成功之后立刻回复微信服务器
  * 2、微信服务器在调用失败或者接到回包为非确认包的时候,会发起重试,需确保你的回调是可以重入
  *
  * @param array  $data 回调解释出的参数
  * @param string $msg 如果回调处理失败,可以将错误信息输出到该方法
  *
  * @return true回调出来完成不需要继续回调,false回调处理未完成需要继续回调
  */
 public function NotifyProcess($data, &$msg)
 {
     $notifyer = new \WxPayNotify();
     if (!array_key_exists("transaction_id", $data)) {
         $msg = "输入参数不正确";
         return false;
     }
     //查询订单,判断订单真实性
     if (!$notifyer->Queryorder($data["transaction_id"])) {
         $msg = "订单查询失败";
         return false;
     }
     return true;
 }
 function __construct($config)
 {
     //		$this->config = array($this->config,$config);
     parent::__construct($config);
 }
Exemple #3
0
 public function __construct($action)
 {
     $this->action = $action;
     parent::__construct();
 }