|
@@ -12,6 +12,8 @@ class Base
|
|
if ($p) {
|
|
if ($p) {
|
|
$this->config = Dever::json_decode(Dever::decode($p, $this->key));
|
|
$this->config = Dever::json_decode(Dever::decode($p, $this->key));
|
|
}
|
|
}
|
|
|
|
+ # 第三方账户
|
|
|
|
+ $this->account = $this->getConfig('account', 1);
|
|
# 小刊分类
|
|
# 小刊分类
|
|
$this->cate = $this->getConfig('cate', 1);
|
|
$this->cate = $this->getConfig('cate', 1);
|
|
# 渠道
|
|
# 渠道
|
|
@@ -27,6 +29,9 @@ class Base
|
|
# 创建url
|
|
# 创建url
|
|
public function createUrl()
|
|
public function createUrl()
|
|
{
|
|
{
|
|
|
|
+ # 第三方账户
|
|
|
|
+ $this->account = Dever::input('account', 1);
|
|
|
|
+ # 分类
|
|
$this->cate = Dever::input('cate', 1);
|
|
$this->cate = Dever::input('cate', 1);
|
|
# 渠道
|
|
# 渠道
|
|
$this->source = Dever::input('source', 1);
|
|
$this->source = Dever::input('source', 1);
|
|
@@ -58,7 +63,7 @@ class Base
|
|
$cate['bglogo'] = ':url('.$cate['logo'].') no-repeat;';
|
|
$cate['bglogo'] = ':url('.$cate['logo'].') no-repeat;';
|
|
|
|
|
|
$url = urlencode($this->url('list'));
|
|
$url = urlencode($this->url('list'));
|
|
- $cate['login'] = 'location.href=\'' . Dever::url('request.auth?account=1&source='.$this->source.'&refer=' . $url, 'oauth') . '\'';
|
|
|
|
|
|
+ $cate['login'] = 'location.href=\'' . Dever::url('request.auth?account='.$this->account.'&source='.$this->source.'&refer=' . $url, 'oauth') . '\'';
|
|
return $cate;
|
|
return $cate;
|
|
}
|
|
}
|
|
|
|
|