mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 修复Demo影响
This commit is contained in:
parent
ba6a930dc4
commit
cae149338f
@ -196,7 +196,6 @@ class Menu extends Base {
|
||||
|
||||
public function add(){
|
||||
if( $this->request->isPost() ){
|
||||
$this->error('体验版本,关键数据,请勿操作', '');
|
||||
$menuModel = new \app\admin\model\Menu();
|
||||
$result = $menuModel->allowField(true)->validate(
|
||||
[
|
||||
@ -346,7 +345,6 @@ class Menu extends Base {
|
||||
|
||||
public function edit(){
|
||||
if( $this->request->isPut() ){
|
||||
$this->error('体验版本,关键数据,请勿操作', '');
|
||||
$data = $this->request->put();
|
||||
$validate = new Validate([
|
||||
'name' => 'require',
|
||||
@ -505,7 +503,6 @@ class Menu extends Base {
|
||||
}
|
||||
|
||||
public function del(){
|
||||
$this->error('体验版本,关键数据,请勿操作', '');
|
||||
if( $this->request->isDelete() ){
|
||||
$key = $this->request->delete($this->primaryKey);
|
||||
$childNum = \app\admin\model\Menu::where(['fid' => $key])->count();
|
||||
|
@ -303,7 +303,6 @@ class User extends Base {
|
||||
$userModel = new \app\admin\model\User();
|
||||
$userDetail = $userModel->where([$this->primaryKey => $this->uid])->find();
|
||||
if( !empty($this->request->put('password')) ){
|
||||
$this->error('体验版本,关键数据,请勿操作', '');
|
||||
$userDetail->password = $this->request->put('password');
|
||||
}
|
||||
$userDetail->nickname = $this->request->put('nickname');
|
||||
|
Loading…
x
Reference in New Issue
Block a user