|
|
|
@ -174,10 +174,10 @@ class GameController extends ThinkController
|
|
|
|
|
$downloadWays = $_POST['download_ways'] ?? [];
|
|
|
|
|
if (in_array(GameService::DOWNLOAD_BETA, $downloadWays)) {
|
|
|
|
|
if (empty($_POST['beta_url'])) {
|
|
|
|
|
return $this->error("请在Beta按钮开启的情况填写Beta链接");
|
|
|
|
|
return $this->error("请在极速版下载按钮开启的情况填写极速版下载链接");
|
|
|
|
|
}
|
|
|
|
|
if (!preg_match("/^((https|http|itms-beta)?:\/\/)[^\s]+/i", $_POST['beta_url'])) {
|
|
|
|
|
return $this->error("请填写正确的Beta链接");
|
|
|
|
|
return $this->error("请填写正确的极速版下载链接");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$_POST['relation_game_name'] = $_POST['game_name'];
|
|
|
|
@ -316,10 +316,10 @@ class GameController extends ThinkController
|
|
|
|
|
$downloadWays = $_POST['download_ways'] ?? [];
|
|
|
|
|
if (in_array(GameService::DOWNLOAD_BETA, $downloadWays)) {
|
|
|
|
|
if (empty($_POST['beta_url'])) {
|
|
|
|
|
return $this->error("请在Beta按钮开启的情况填写Beta链接");
|
|
|
|
|
return $this->error("请在极速版下载按钮开启的情况填写极速版下载链接");
|
|
|
|
|
}
|
|
|
|
|
if (!preg_match("/^((https|http|itms-beta)?:\/\/)[^\s]+/i", $_POST['beta_url'])) {
|
|
|
|
|
return $this->error("请填写正确的Beta链接");
|
|
|
|
|
return $this->error("请填写正确的极速版下载链接");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/*if($_POST['apply_status']==0&&$_POST['game_status']==1){
|
|
|
|
|