安装程序bug修复

This commit is contained in:
2020-04-15 18:16:42 +08:00
parent 1d4d785721
commit 69f8f61e5b
3 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
APP_DEBUG = true
APP_DEBUG = false

View File

@@ -99,7 +99,7 @@ function get_username($uid = 0) {
}
function avatar($uid, $size = 'middle') {
return request()->root(true) . '/static/common/images/default_avatar_' . $size . '.jpg';
return request()->domain() . '/static/common/images/default_avatar_' . $size . '.jpg';
}
// 分析枚举类型配置值 格式 a:名称1,b:名称2

View File

@@ -256,7 +256,7 @@ function showmsg(msg, classname){
<?php } ?>
</tbody>
</table>
<?php if(session('error')){ ?>
<?php if(!session('error')){ ?>
<div class="margin-top" style="text-align: center;">
<div class="btn-group">
<a class="btn btn-default" href="?action=index">上一步</a>