|
|
@ -290,6 +290,10 @@ class GameController extends ThinkController
|
|
|
|
public function edit($id = null)
|
|
|
|
public function edit($id = null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (IS_POST) {
|
|
|
|
if (IS_POST) {
|
|
|
|
|
|
|
|
if ($_POST['game_score'] <0 || $_POST['game_score'] > 5) {
|
|
|
|
|
|
|
|
$this->error('游戏评分只能为0-5之间的数字!');
|
|
|
|
|
|
|
|
exit;
|
|
|
|
|
|
|
|
}
|
|
|
|
/*if($_POST['apply_status']==0&&$_POST['game_status']==1){
|
|
|
|
/*if($_POST['apply_status']==0&&$_POST['game_status']==1){
|
|
|
|
$this->error('游戏未审核不允许显示');//游戏添加完成
|
|
|
|
$this->error('游戏未审核不允许显示');//游戏添加完成
|
|
|
|
}*/
|
|
|
|
}*/
|
|
|
|