From a0f4dc8a1f84c595d9ec165c6e31f610c7b1ad7c Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Wed, 10 Apr 2024 11:11:06 +0800 Subject: [PATCH] 1 --- app/common/library/wxserver/Server.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index 0ee5d719..083a02a7 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -502,7 +502,10 @@ class Server if ($value['values']) { $item = json_decode($value['values'], true); if (!empty($item['app_id']) && $item['app_id'] == $appid) { - return $value['store_id']; + $store_id = Db::table('yoshop_store')->where(['store_id' => $value['store_id'], 'is_recycle' => 0])->value('store_id'); + if ($store_id) { + return $store_id; + } } } }