|
@@ -78,7 +78,7 @@ class SgListView |
|
|
//设置一些全局参数的值
|
|
|
//设置一些全局参数的值
|
|
|
foreach ($GLOBALS['PubFields'] as $k => $v) $this->Fields[$k] = $v;
|
|
|
foreach ($GLOBALS['PubFields'] as $k => $v) $this->Fields[$k] = $v;
|
|
|
$this->Fields['rsslink'] = $GLOBALS['cfg_cmsurl']."/static/rss/".$this->TypeID.".xml";
|
|
|
$this->Fields['rsslink'] = $GLOBALS['cfg_cmsurl']."/static/rss/".$this->TypeID.".xml";
|
|
|
//API相关逻辑处理
|
|
|
|
|
|
|
|
|
//api相关逻辑处理
|
|
|
if ($this->mod == 1 && empty($this->Fields['apikey'])) {
|
|
|
if ($this->mod == 1 && empty($this->Fields['apikey'])) {
|
|
|
echo json_encode(array(
|
|
|
echo json_encode(array(
|
|
|
"code" => -1,
|
|
|
"code" => -1,
|
|
@@ -86,7 +86,7 @@ class SgListView |
|
|
));
|
|
|
));
|
|
|
exit;
|
|
|
exit;
|
|
|
}
|
|
|
}
|
|
|
if($this->mod == 1){
|
|
|
|
|
|
|
|
|
if ($this->mod == 1) {
|
|
|
if (empty($GLOBALS['sign'])) {
|
|
|
if (empty($GLOBALS['sign'])) {
|
|
|
echo json_encode(array(
|
|
|
echo json_encode(array(
|
|
|
"code" => -1,
|
|
|
"code" => -1,
|
|
|