优化用户登录时间为0时为暂无登录

master
chenzhi 5 years ago
parent b1701889c4
commit d4a498baba

@ -196,7 +196,7 @@ class MemberController extends ThinkController
}
$v['register_time'] = date('Y-m-d H:i:s',$v['register_time']);
$v['login_time'] = date('Y-m-d H:i:s',$v['login_time']);
$v['login_time'] = set_show_time($v['login_time']);
$v['lock_status'] = get_info_status($v['lock_status'],4);
$v['check_status'] = $v['check_status']==1 ? "正常" :"拉黑";
$v['is_repeat'] = $v['is_repeat']==1 ? "是" :"否";

@ -311,7 +311,7 @@
<if condition="$data.login_time eq null">
<else />
<span class="login_old">{$data['login_time']|date='Y-m-d H:i:s',###}</span>
<span class="login_old">{:set_show_time($data['login_time'])}</span>
</if>
</td>

Loading…
Cancel
Save