目录结构更新,增加composer支持

This commit is contained in:
2018-01-14 09:40:04 +08:00
parent 3818619504
commit ae46a73172
945 changed files with 421 additions and 210179 deletions

View File

@@ -40,7 +40,7 @@ class Action extends Admin {
*/
public function add() {
$model = model('Action');
if (IS_POST) {
if ($this->request->isPost()) {
$data = input('post.');
$result = $model->save($data);
if (false != $result) {
@@ -65,7 +65,7 @@ class Action extends Admin {
*/
public function edit($id = null) {
$model = model('Action');
if (IS_POST) {
if ($this->request->isPost()) {
$data = input('post.');
$result = $model->save($data, array('id' => $data['id']));
if ($result !== false) {