mirror of
https://gitee.com/ulthon/ul-file-share.git
synced 2026-07-08 21:52:48 +08:00
更新说明文件安装教程;更新数据库安装;兼容不接入时user_hub的提醒;
This commit is contained in:
@@ -51,6 +51,12 @@ class Common extends BaseController
|
||||
public function ulthonLogin()
|
||||
{
|
||||
|
||||
if(empty(get_system_config('user_hub_key'))){
|
||||
View::assign('system_tips','没有配置user_hub用户中心,登陆功能不可用');
|
||||
View::assign('ulthon_login_url',$this->request->url());
|
||||
return false;
|
||||
}
|
||||
|
||||
if (empty($this->modelUser) || $this->modelUser->type != 'ulthon') {
|
||||
$code = $this->request->param('code');
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ class Index extends Common
|
||||
$post_data['times_last'] = $post_data['times'];
|
||||
$root_dir = App::getRootPath();
|
||||
|
||||
$safe_dir = '/safe/';
|
||||
$safe_dir = 'safe'.DIRECTORY_SEPARATOR;
|
||||
|
||||
$file_preifx = $root_dir . $safe_dir;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user