* + score model

This commit is contained in:
滔哥
2017-10-27 23:46:50 +08:00
parent 3833a7f861
commit a0e8b24f25
17 changed files with 203 additions and 64 deletions
+2
View File
@@ -131,6 +131,7 @@ class block extends control
$this->dao->delete()->from(TABLE_BLOCK)->where('`id`')->eq($id)->andWhere('account')->eq($this->app->user->account)->andWhere('module')->eq($module)->exec();
}
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));
$this->loadModel('score')->score('block', 'set');
$this->send(array('result' => 'success'));
}
@@ -157,6 +158,7 @@ class block extends control
}
if(dao::isError()) $this->send(array('result' => 'fail'));
$this->loadModel('score')->score('block', 'set');
$this->send(array('result' => 'success'));
}