mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
#244 修复已知bug
This commit is contained in:
parent
e7ea27bb7e
commit
f28abaccb9
@ -26,10 +26,15 @@ use library\Controller;
|
||||
class Update extends Controller
|
||||
{
|
||||
/**
|
||||
* 基础URL地址
|
||||
* @var string
|
||||
* 访问权限
|
||||
*/
|
||||
protected $baseUri = 'https://demo.thinkadmin.top';
|
||||
protected function initialize()
|
||||
{
|
||||
$domain = $this->app->request->host(true);
|
||||
$isDemo = is_numeric(stripos($domain, 'thinkadmin.top'));
|
||||
$isLocal = in_array($domain, ['127.0.0.1', 'localhost']);
|
||||
if (!$isLocal && !$isDemo) $this->error('只允许访问本地或官方代码!');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取文件列表
|
||||
|
@ -19,7 +19,7 @@
|
||||
"endroid/qr-code": "^1.9",
|
||||
"topthink/framework": "5.1.*",
|
||||
"zoujingli/ip2region": "^1.0",
|
||||
"zoujingli/think-library": "5.1.*-dev",
|
||||
"zoujingli/think-library": "5.1.x-dev",
|
||||
"zoujingli/weopen-developer": "dev-master"
|
||||
},
|
||||
"repositories": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user