设置更新时间字段

This commit is contained in:
wangxiaowei 2024-09-29 15:25:11 +08:00
parent 1327a0074d
commit edbad9223b
2 changed files with 2 additions and 2 deletions

@ -341,7 +341,7 @@ class LocalStore extends Api
{
try {
$post = $this->request->post();
$data = LocalStoreLogic::setPostStation($post, $this->user_id);
return LocalStoreLogic::setPostStation($post, $this->user_id);
} catch(\Exception $e) {
return JsonServer::error($e->getMessage());
}

@ -365,7 +365,7 @@ class LocalStoreLogic extends Logic
$result = LocalStore::where('user_id', $user_id)->update([
'post_station' => json_encode($post, JSON_UNESCAPED_UNICODE),
'update_time' => time()
'update_time' => date('Y-m-d H:i:s')
]);
if ($result) {