修改:域名获取错误 导致二维码生成错误
This commit is contained in:
parent
e1a088c157
commit
bae34e6a4d
|
|
@ -16,9 +16,9 @@ class UserInviteCode extends BaseModel{
|
||||||
|
|
||||||
// 二维码内容
|
// 二维码内容
|
||||||
public function getQrCodeTextAttr(){
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@ class UserVipExchangeCode extends BaseModel{
|
||||||
|
|
||||||
// 二维码内容
|
// 二维码内容
|
||||||
public function getQrCodeTextAttr(){
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue