From edbad9223b6d55f585360cd7dfd116dedcb4396b Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Sun, 29 Sep 2024 15:25:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/LocalStore.php | 2 +- app/api/logic/LocalStoreLogic.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/controller/LocalStore.php b/app/api/controller/LocalStore.php index 1ba10fd1..863f9012 100755 --- a/app/api/controller/LocalStore.php +++ b/app/api/controller/LocalStore.php @@ -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()); } diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index d85db009..dcef778a 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -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) {