更新细节

This commit is contained in:
yaooo 2023-11-01 10:52:19 +08:00
parent 1da7fc8290
commit 6cb4ad03e4
2 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,7 @@ class OaSchedule extends ApiController
Auth::class => ['except' => []]
];
//获取工作记录
public function index() {
$this->checkAuth();
$this->uid = JWT_UID;
@ -78,7 +79,7 @@ class OaSchedule extends ApiController
$this->apiSuccess('获取成功', $schedule);
}
//保存日志数据
//新增编辑工作记录
public function add()
{
$this->checkAuth();

View File

@ -175,6 +175,8 @@ class UserUser extends ApiController
if (empty($detail['id'])) {
$this->apiError("员工不存在");
}
$detail['entry_time'] = date('Y-m-d', $detail['entry_time']);
$detail['update_time'] = date('Y-m-d', $detail['update_time']);
unset($detail['pwd'], $detail['salt'], $detail['reg_pwd']);
$this->apiSuccess('操作成功', $detail);
}