diff --git a/application/common/Model/DepartmentMember.php b/application/common/Model/DepartmentMember.php index c5e0656..99fdc33 100644 --- a/application/common/Model/DepartmentMember.php +++ b/application/common/Model/DepartmentMember.php @@ -172,6 +172,8 @@ class DepartmentMember extends CommonModel } } } + } else { + $this->inviteMember($memberAccount['code'], ''); } } diff --git a/application/project/controller/Account.php b/application/project/controller/Account.php index 1a314fa..0cefcf1 100644 --- a/application/project/controller/Account.php +++ b/application/project/controller/Account.php @@ -71,7 +71,7 @@ class Account extends BasicApi list($start, $end) = explode('~', $params['date']); $where[] = ['last_login_time', 'between', ["{$start} 00:00:00", "{$end} 23:59:59"]]; } - $list = $this->model->_list($where, 'id asc'); + $list = $this->model->_list($where, 'id desc'); if ($list['list']) { foreach ($list['list'] as &$item) { $memberInfo = Member::where(['code' => $item['member_code']])->field('id', true)->find();