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;