修改:域名获取错误 导致二维码生成错误

This commit is contained in:
wuhui_zzw 2024-07-12 10:40:47 +08:00
parent e1a088c157
commit bae34e6a4d
2 changed files with 4 additions and 4 deletions

View File

@ -16,9 +16,9 @@ class UserInviteCode extends BaseModel{
// 二维码内容
public function getQrCodeTextAttr(){
$domain = 'https://' . app()->request->host();
$siteUrl = systemConfig('site_url');
return $domain. "?type=invite&code=" . $this->exchange_code;
return trim($siteUrl,'/'). "?type=invite&code=" . $this->exchange_code;
}

View File

@ -18,9 +18,9 @@ class UserVipExchangeCode extends BaseModel{
// 二维码内容
public function getQrCodeTextAttr(){
$domain = 'https://' . app()->request->host();
$siteUrl = systemConfig('site_url');
return $domain. "?type=exchange&code=" . $this->exchange_code;
return trim($siteUrl,'/'). "?type=exchange&code=" . $this->exchange_code;
}