更新说明文件安装教程;更新数据库安装;兼容不接入时user_hub的提醒;

This commit is contained in:
2022-02-16 22:45:10 +08:00
parent 354c75897d
commit a86a1a1002
6 changed files with 127 additions and 2 deletions

View File

@@ -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');

View File

@@ -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;