From 95758960cb53e8c5c3d407aa0912f6d8d178a3a5 Mon Sep 17 00:00:00 2001 From: bruce <1272542526@qq.com> Date: Tue, 12 Mar 2024 21:30:55 +0800 Subject: [PATCH] update --- app/api/controller/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/User.php b/app/api/controller/User.php index 92a4db33..ac3cb45b 100644 --- a/app/api/controller/User.php +++ b/app/api/controller/User.php @@ -412,7 +412,7 @@ class User extends Controller ->select() ->toArray(); foreach ($data as &$v) { - $v['url_path'] = $v['url'] ? $qrObj->getOtherQrcode((int)$storeId, $v['url']) : ''; + $v['url_path'] = $v['url'] ? str_replace(root_path() . "public/", base_url(), $qrObj->getOtherQrcode((int)$storeId, $v['url'])) : ''; $tags[] = $v; } $item['tags'] = $tags;