|
|
@ -299,7 +299,7 @@ class GameController extends ThinkController
|
|
|
|
exit;
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!preg_match("/^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/i", $_POST['beta_url'])) {
|
|
|
|
if (!preg_match("/^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/i", $_POST['beta_url'])) {
|
|
|
|
return $this->error("请填写正确的Bata链接");
|
|
|
|
// return $this->error("请填写正确的Bata链接");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/*if($_POST['apply_status']==0&&$_POST['game_status']==1){
|
|
|
|
/*if($_POST['apply_status']==0&&$_POST['game_status']==1){
|
|
|
|
$this->error('游戏未审核不允许显示');//游戏添加完成
|
|
|
|
$this->error('游戏未审核不允许显示');//游戏添加完成
|
|
|
@ -316,6 +316,7 @@ class GameController extends ThinkController
|
|
|
|
$game = D(self::model_name);//M('$this->$model_name','tab_');
|
|
|
|
$game = D(self::model_name);//M('$this->$model_name','tab_');
|
|
|
|
$_POST['discount'] == '' ? $_POST['discount'] = 10 : $_POST['discount'];
|
|
|
|
$_POST['discount'] == '' ? $_POST['discount'] = 10 : $_POST['discount'];
|
|
|
|
$_POST['detail_content'] = $content;
|
|
|
|
$_POST['detail_content'] = $content;
|
|
|
|
|
|
|
|
$_POST['pay_config'] = json_encode($_POST['pay_config']);
|
|
|
|
$res = $game->update();
|
|
|
|
$res = $game->update();
|
|
|
|
$id = $res["id"];
|
|
|
|
$id = $res["id"];
|
|
|
|
$sibling = D("Game")->find($id);
|
|
|
|
$sibling = D("Game")->find($id);
|
|
|
@ -371,6 +372,7 @@ class GameController extends ThinkController
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$id || $this->error('id不能为空');
|
|
|
|
$id || $this->error('id不能为空');
|
|
|
|
$data = D(self::model_name)->detailback($id);
|
|
|
|
$data = D(self::model_name)->detailback($id);
|
|
|
|
|
|
|
|
$data['pay_config'] = json_decode($data['pay_config'],true);
|
|
|
|
$data || $this->error('数据不存在!');
|
|
|
|
$data || $this->error('数据不存在!');
|
|
|
|
if (!empty($data['and_dow_address'])) {
|
|
|
|
if (!empty($data['and_dow_address'])) {
|
|
|
|
$data['and_dow_address'] = ltrim($data['and_dow_address'], '.');
|
|
|
|
$data['and_dow_address'] = ltrim($data['and_dow_address'], '.');
|
|
|
|