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; + } } } }