@ -2,7 +2,7 @@
namespace app\controller\admin;
use app\model\Config as ConfigModel;
use app\model\AdminConfig as ConfigModel;
use app\util\ReturnCode;
use app\validate\ConfigValidate;
use think\Response;
@ -4,7 +4,7 @@ namespace app\model;
use think\Model;
class Config extends Model
class AdminConfig extends Model
{
}
@ -18,7 +18,7 @@ class ConfigValidate extends Validate
protected $scene = [
'add' => ['title', 'name', 'content'],
'edit' => ['id', 'title', 'name', 'content'],
'edit' => ['id', 'content'],
];