Browse Source

调整

tags/6.2.7
叙述、别离 10 months ago
parent
commit
7808fc78f3
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/system/archive/listview.class.php
  2. +2
    -2
      src/system/archive/sglistview.class.php

+ 2
- 2
src/system/archive/listview.class.php View File

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


+ 2
- 2
src/system/archive/sglistview.class.php View File

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


Loading…
Cancel
Save