更新细节
This commit is contained in:
parent
1da7fc8290
commit
6cb4ad03e4
|
@ -22,6 +22,7 @@ class OaSchedule extends ApiController
|
||||||
Auth::class => ['except' => []]
|
Auth::class => ['except' => []]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
//获取工作记录
|
||||||
public function index() {
|
public function index() {
|
||||||
$this->checkAuth();
|
$this->checkAuth();
|
||||||
$this->uid = JWT_UID;
|
$this->uid = JWT_UID;
|
||||||
|
@ -78,7 +79,7 @@ class OaSchedule extends ApiController
|
||||||
$this->apiSuccess('获取成功', $schedule);
|
$this->apiSuccess('获取成功', $schedule);
|
||||||
}
|
}
|
||||||
|
|
||||||
//保存日志数据
|
//新增编辑工作记录
|
||||||
public function add()
|
public function add()
|
||||||
{
|
{
|
||||||
$this->checkAuth();
|
$this->checkAuth();
|
||||||
|
|
|
@ -175,6 +175,8 @@ class UserUser extends ApiController
|
||||||
if (empty($detail['id'])) {
|
if (empty($detail['id'])) {
|
||||||
$this->apiError("员工不存在");
|
$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']);
|
unset($detail['pwd'], $detail['salt'], $detail['reg_pwd']);
|
||||||
$this->apiSuccess('操作成功', $detail);
|
$this->apiSuccess('操作成功', $detail);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue