未验证 提交 68dee5ca 编写于 作者: 安正超 提交者: GitHub

Bugfix.

上级 44423a3b
......@@ -90,19 +90,20 @@ class ChuanglanGateway extends Gateway
*/
protected function buildEndpoint(Config $config, $idDCode = 86)
{
$channel = $this->getChannel($config);
$channel = $this->getChannel($config, $idDCode);
return sprintf(self::ENDPOINT_URL_TEMPLATE, $channel);
}
/**
* @param Config $config
* @param int $idDCode
*
* @return mixed
*
* @throws InvalidArgumentException
*/
protected function getChannel(Config $config)
protected function getChannel(Config $config, $idDCode)
{
if (86 != $idDCode) {
return self::INT_URL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册