This commit is contained in:
aozhiwei 2022-01-26 19:27:18 +08:00
parent e37a2b5f57
commit a32c17f62d

View File

@ -18,7 +18,7 @@ class MarketController extends BaseController {
private function isTestMode()
{
return isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443;
return isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443 && SERVER_ENV == _TEST;
}
public function searchBox()