sp_get_image_preview_url()

X2.2.0新增

sp_get_image_preview_url($file,$style='watermark')
功能:

获取图片预览链接

参数:

$file: 数据库中保存的文件名 $style:样式(七牛)

返回:

类型string,图片预览链接

使用:
$url = sp_get_image_preview_url('portal/23232.png');
© ThinkCMF all right reserved,powered by Gitbook最后文件编辑时间: 2016-10-04 11:49:25

results matching ""

    No results matching ""