';
// foreach ($images as $image) {
// $html .= "
//
.$process . ")
//
";
// }
// $html .= '
';
}
return $html;
}
/*
* 返回oss的url
*/
public static function ossUrl($imageUrl)
{
if (strpos($imageUrl, 'http:') === 0 || strpos($imageUrl, 'https:') === 0) {
return $imageUrl;
}
if (env('OSS_DOMAIN')) {
return "http://".env('OSS_DOMAIN').'/'.$imageUrl;
}
return "http://".env('OSS_BUCKET').'.'.env('OSS_ENDPOINT').'/'.$imageUrl;
}
/*
* 替换新增与编辑的url,在后边加上指定的参数 (适用于弹出框的新增与编辑)
* $addButton = '.tree-quick-create';
* $editButton = '.tree-quick-edit';
* $paramsUrl = 'location=0';
*/
public static function replaceAddEditerUrl($addButton,$editButton,$paramsUrl) {
Admin::script(
<<