Api url 组装
protected httpBuildQuery ( $url, array $options ) : string | ||
$url | ||
$options | array | |
Résultat | string |
/** * 增加微信基本链接 * @inheritdoc */ protected function httpBuildQuery($url, array $options) { if (stripos($url, 'http://') === false && stripos($url, 'https://') === false) { $url = self::WECHAT_BASE_URL . $url; } return parent::httpBuildQuery($url, $options); }