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