567 Star 1.5K Fork 515

白俊遥 / thinkphp-bjyadmin

 / 详情

增删改查疑惑?

Done
Opened this issue  
2016-10-26 17:46

/**
* 添加菜单
*/
public function add(){
$data=I('post.');
unset($data['id']);
D('AdminNav')->addData($data);
$this->success('添加成功',U('Admin/Nav/index'));
}
增删改查的操作没有做判断,baseModel里面return了id,但是这里么有做判断,是为了系统性能不做判断的吗?

Comments (2)

这个判断不影响性能的;仔细想想;还是加上判断更合理些;多谢提醒;已经全部添加成功和失败的提示了;

Status changed to closed

Sign in to comment

状态
Assignees
Milestones
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
132125 baijunyao 1578918986
PHP
1
https://gitee.com/baijunyao/thinkphp-bjyadmin.git
git@gitee.com:baijunyao/thinkphp-bjyadmin.git
baijunyao
thinkphp-bjyadmin
thinkphp-bjyadmin

Search