mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
优化url,多应用之间不能互相根据路由生成url,没有研究透
This commit is contained in:
@@ -136,4 +136,11 @@ class Post extends Model
|
||||
|
||||
return get_source_link($value);
|
||||
}
|
||||
|
||||
public function getReadUrlAttr()
|
||||
{
|
||||
$url_info = parse_url((string)url('index/Index/index')->domain('www'));
|
||||
|
||||
return $url_info['scheme'].'://'.$url_info['host'].'/a'.$this->getData('uid').'.html';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user