From 7845c62734e5ac0202bed2debcefbe88799b1084 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Sun, 29 Sep 2024 15:35:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9B=B4=E6=96=B0=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LocalStoreLogic.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index dcef778a..ffada980 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -363,7 +363,10 @@ class LocalStoreLogic extends Logic throw new \Exception('经纬度不能为空'); } - $result = LocalStore::where('user_id', $user_id)->update([ + $lstore_id = $post['lstore_id']; + unset($post['lstore_id']); + + $result = LocalStore::where(['user_id' => $user_id, 'lstore_id' => $lstore_id])->update([ 'post_station' => json_encode($post, JSON_UNESCAPED_UNICODE), 'update_time' => date('Y-m-d H:i:s') ]);