Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 339

Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 392

Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 394
Joyber 的博客

点击浏览器登录头像旁边的三个点,打开菜单,点击设置,并选择设置菜单中的【外观】,或者直接复制链接打开

edge://settings/appearance

将默认选中的【试用 Microsoft Edge 的全新外观】取消选中,重启浏览器解决

版本 116.0.1938.54 (正式版本) (64 位)

https://github.com/settings/security

选择:Two-factor methods -> Authenticator app

edge浏览器扩展市场搜索,Authenticator
安装扩展:Authenticator: 2FA Client

然后在 Authenticator app 的配置页面,点击扩展,扫描二维码进行账户的添加

然后把生成的密码填写到 Verify the code from the app 的输入框,保存,然后就会提示下载保存一个恢复码文件,这个文件需要自己下载保存到自己的电脑或者其它你自己能找到的地方,长期保存,以免后续可找回账户使用

现在就开启了二次验证了。

下次登录如果需要二次验证,用那个扩展扫码获取密码即可。

注意:nginx配置不支持 if ( && ) 以及 if 嵌套写法

if ($host = 'xxxx.com' ) {
  rewrite ^ https://www.xxxx.com$uri permanent;
}
set $flag "0";
if ($host = 'www.xxxx.com') {
  set $flag "${flag}1";
}
if ( $http_user_agent ~* "(Android|webOS|iPhone|iPad|BlackBerry)" ){
  set $flag "${flag}1";
}
 
if ($flag = "011"){
    rewrite ^/(.*)$ https://m.xxxx.com$uri permanent;
}

打开File, Settings(mac下是phpstorm,preference),Project Setting ,Directories

标记当前项目的protected/runtime, assets为excluded
标记工程项目的根目录问resource root

点击Add Content Root,把yii框架的路径添加进来,标记cli/views目录为excluded

另外,需要排除yiilite.php,否则会补全多次,File,Settings,File Types,右下角的ignore files里面添加yiilite.php