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) {