Skip to content

Commit

Permalink
Update helper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
funadmin authored Dec 15, 2021
1 parent 005b94d commit 9c003f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ function addons_url($url = '', $param = [], $suffix = true, $domain = false)
});
$path= preg_replace("/(\/\[:.*)/",'',$path);
if($domain){
$path= str_replace($domainprefix,$domain,$path);
$array = explode("/", $path);
$path = implode("/", array_slice($array, 1));
// $path= str_replace($domainprefix,$domain,$path);
// $array = explode("/", $path);
// $path = implode("/", array_slice($array, 1));
//手否完整域名
if (!is_bool($domain) && strpos($domain,'.')!==false) {
return httpType() . $domain .'/' . $path;
Expand Down

0 comments on commit 9c003f2

Please sign in to comment.