设置更新时间字段
This commit is contained in:
parent
1327a0074d
commit
edbad9223b
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user