Commit 5b7f958e authored by jiangkebao's avatar jiangkebao

Merge branch 'order_rpc' into test

# Conflicts:
#	src/functions.php
parents e42ecad9 c7192c7b
......@@ -787,6 +787,7 @@ if (!function_exists('str_replace_first')) {
return $subject;
}
}
if (!function_exists('create_file_dir')) {
/**
* 检查当前目录是否存在 不存在就创建一个目录
......@@ -798,4 +799,18 @@ if (!function_exists('create_file_dir')) {
{
return !is_dir($dir) && mkdir($dir, 0777, true);
}
}
if (!function_exists('get_images_url')) {
/**
* 富文本获取图片信息
* @param $str
* @return mixed
*/
function get_images_url($str)
{
preg_match('/<img.+src=\"?(.+\.(jpg|gif|bmp|bnp|png))\"?.+>/i',$str,$match);
return $match;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment