支付取消地域限制

This commit is contained in:
aozhiwei 2019-08-31 14:23:54 +08:00
parent e04bb05363
commit 90ae2df199
3 changed files with 30 additions and 2 deletions

View File

@ -17,7 +17,8 @@ class ServerSwitchController {
private function isForbidCity() private function isForbidCity()
{ {
if (in_array(strtolower($_REQUEST['province']), return false;
/*if (in_array(strtolower($_REQUEST['province']),
array( array(
strtolower('Shanghai'), strtolower('Shanghai'),
strtolower('Beijing'), strtolower('Beijing'),
@ -36,7 +37,7 @@ class ServerSwitchController {
) { ) {
return true; return true;
} }
return false; return false;*/
} }
public function getSwitch() public function getSwitch()

View File

@ -170,6 +170,9 @@ class ShopController{
return; return;
} }
$shop_id = $_REQUEST['shop_id']; $shop_id = $_REQUEST['shop_id'];
if (!isset($_REQUEST['shop_uuid'])) {
return;
}
$shop_uuid = $_REQUEST['shop_uuid']; $shop_uuid = $_REQUEST['shop_uuid'];
$item_id = 0; $item_id = 0;
$item_num = 0; $item_num = 0;
@ -237,6 +240,9 @@ class ShopController{
phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); phpcommon\sendError(ERR_USER_BASE + 1, 'session无效');
return; return;
} }
if (!isset($_REQUEST['shop_uuid'])) {
return;
}
$shop_id = $_REQUEST['shop_id']; $shop_id = $_REQUEST['shop_id'];
$shop_uuid = $_REQUEST['shop_uuid']; $shop_uuid = $_REQUEST['shop_uuid'];
$item_id = 0; $item_id = 0;
@ -291,6 +297,9 @@ class ShopController{
phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); phpcommon\sendError(ERR_USER_BASE + 1, 'session无效');
return; return;
} }
if (!isset($_REQUEST['shop_uuid'])) {
return;
}
$shop_uuid = $_REQUEST['shop_uuid']; $shop_uuid = $_REQUEST['shop_uuid'];
$shop_type = $_REQUEST['shop_type']; $shop_type = $_REQUEST['shop_type'];
$shop_list = array(); $shop_list = array();

View File

@ -49,6 +49,9 @@ class TeamController{
public function teamInfo() public function teamInfo()
{ {
if (!isset($_REQUEST['team_uuid'])) {
return;
}
$team_uuid = $_REQUEST['team_uuid']; $team_uuid = $_REQUEST['team_uuid'];
$r = $this->getRedis($team_uuid); $r = $this->getRedis($team_uuid);
@ -87,6 +90,9 @@ class TeamController{
public function joinTeam() public function joinTeam()
{ {
if (!isset($_REQUEST['team_uuid'])) {
return;
}
$team_uuid = $_REQUEST['team_uuid']; $team_uuid = $_REQUEST['team_uuid'];
$r = $this->getRedis($team_uuid); $r = $this->getRedis($team_uuid);
@ -137,6 +143,9 @@ class TeamController{
public function kickoutMember() public function kickoutMember()
{ {
if (!isset($_REQUEST['team_uuid'])) {
return;
}
$team_uuid = $_REQUEST['team_uuid']; $team_uuid = $_REQUEST['team_uuid'];
$r = $this->getRedis($team_uuid); $r = $this->getRedis($team_uuid);
if (!$r) { if (!$r) {
@ -189,6 +198,9 @@ class TeamController{
public function leaveTeam() public function leaveTeam()
{ {
if (!isset($_REQUEST['team_uuid'])) {
return;
}
$team_uuid = $_REQUEST['team_uuid']; $team_uuid = $_REQUEST['team_uuid'];
$r = $this->getRedis($team_uuid); $r = $this->getRedis($team_uuid);
@ -235,6 +247,9 @@ class TeamController{
public function updateTeam() public function updateTeam()
{ {
if (!isset($_REQUEST['team_uuid'])) {
return;
}
$team_uuid = $_REQUEST['team_uuid']; $team_uuid = $_REQUEST['team_uuid'];
$r = $this->getRedis($team_uuid); $r = $this->getRedis($team_uuid);
@ -272,6 +287,9 @@ class TeamController{
public function startGame() public function startGame()
{ {
if (!isset($_REQUEST['team_uuid'])) {
return;
}
$team_uuid = $_REQUEST['team_uuid']; $team_uuid = $_REQUEST['team_uuid'];
$r = $this->getRedis($team_uuid); $r = $this->getRedis($team_uuid);