Initial commit,修正
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
# @Author: 嗨噜客科技(www.hiluker.cn) <fm453>
|
||||
# @Date: 1970-01-01T08:00:00+08:00
|
||||
# @Email: fm453@hiluker.com
|
||||
# @Last modified by: fm453
|
||||
# @Last modified time: 2021-09-15T10:14:51+08:00
|
||||
|
||||
/*判断一个路径是网络图片还是本地图片*/
|
||||
function fmFunc_url_img($src,$atturl){
|
||||
$url = $src;
|
||||
$str = str_replace("http://","",$url); //去掉http://
|
||||
$str = str_replace("https://","",$url); //去掉https://
|
||||
if($str==$src) return $atturl.$src; //本地图片
|
||||
return $src;
|
||||
}
|
||||
Reference in New Issue
Block a user