$thumbnailUrl) { $largeUrl = $largeImages[$index]; $html .= ""; } return $html; // // //默认用等比例缩放 // $process = "?x-oss-process=image/resize,h_{$imgSize},m_lfit"; // $html = '
'; // foreach ($images as $image) { // $html .= "
// //
"; // } // $html .= '
'; } return $html; } /* * 返回oss的url */ public static function ossUrl($image) { if (env('OSS_DOMAIN')) { return "http://".env('OSS_DOMAIN').'/'.$image; } return "http://".env('OSS_BUCKET').'.'.env('OSS_ENDPOINT').'/'.$image; } /* * 替换新增与编辑的url,在后边加上指定的参数 * $addButton = '.tree-quick-create'; * $editButton = '.tree-quick-edit'; * $paramsUrl = 'location=0'; */ public static function replaceAddEditerUrl($addButton,$editButton,$paramsUrl) { Admin::script( <<