Commit bddcdaa6 authored by clone's avatar clone

bug

parent f7dffdef
......@@ -153,16 +153,15 @@ class User extends Basic
$clientService = new ClientService();
foreach ($userList as $k => $v) {
$sign_call = 0;
$is_show = $clientService->dialTotal($v["user_id"]);
if ($is_show) {
$sign_call = 1;
}
$is_show = $clientService->dialTotal($v["user_id"]);
$userList[$k]['sign_call'] = $is_show ? 0 : 1;
$is_outstrip_twenty_four_hours = 0;
if ((time() - strtotime($v['create_time'])) > (60 * 60 * 24)) {
$is_outstrip_twenty_four_hours = 1;
}
$userList[$k]['sign_call'] = $sign_call;
$userList[$k]['is_outstrip_twenty_four_hours'] = $is_outstrip_twenty_four_hours;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment