Example #1
0
 function __construct($payObject)
 {
     //设置接口链接
     $this->url = "https://api.mch.weixin.qq.com/pay/downloadbill";
     //设置curl超时时间
     $this->curl_timeout = 15;
     parent::__construct($payObject);
 }
Example #2
0
 function __construct()
 {
     parent::__construct();
     //设置接口链接
     $this->url = "https://api.mch.weixin.qq.com/pay/unifiedorder";
     //设置curl超时时间
     $this->curl_timeout = $this->curltimeout;
 }
Example #3
0
 public function __construct($config)
 {
     parent::__construct($config);
     //设置接口链接
     $this->url = "https://api.mch.weixin.qq.com/tools/shorturl";
     //设置curl超时时间
     $this->curl_timeout = self::CURL_TIMEOUT;
 }