@@ -84,7 +84,7 @@ return array
'default' => '',
'desc' => '标题',
'match' => 'option',
- 'list' => 'Dever::load("comment/review.load", "{source_table}", {source_id})',
+ 'list' => 'Dever::load("set/manage.load", "{source_table}", {source_id})',
),
'num_up' => array
'content' => array
'source_uid' => array
@@ -83,7 +83,7 @@ return array
'state' => array
@@ -7,17 +7,6 @@ use Content\Lib\Base;
class Review extends Base
{
- public function load($type, $id)
- {
- $table = $this->type($type);
- $data = Dever::db($table)->one($id);
- if ($data && isset($data['content'])) {
- return $data['content'];
- }
-
- return $data['name'];
/**
* 评论列表
*
@@ -9,8 +9,11 @@ class Base
# 定义返回数据
protected $data;
- public function __construct()
+ public function __construct($state = 1)
+ if ($state == 2) {
+ return;
+ }
# 获取小程序id
$id = Dever::input('appid');
if (!$id || $id < 0) {
@@ -144,7 +147,7 @@ class Base
* @return mixed
*/
- protected function type($type = 1)
+ public function type($type = 1)
$config = array
(
@@ -3,6 +3,7 @@
namespace Set\Src;
use Dever;
+use Content\Lib\Base;
class Manage
@@ -27,4 +28,16 @@ class Manage
return $data;
}
+
+ public function load($type, $id)
+ {
+ $base = new Base(2);
+ $table = $base->type($type);
+ $data = Dever::db($table)->one($id);
+ if ($data && isset($data['content'])) {
+ return $data['content'];
+ return $data['name'];