|
@@ -55,7 +55,8 @@ function thumb($goods = array(), $type = ''){
|
|
|
* @param mixed $store_id 店铺ID 如果传入,则返回图片完整URL,如果为假,返回系统默认图
|
|
|
* @return string
|
|
|
*/
|
|
|
-function cthumb($file, $type = '', $store_id = false) {
|
|
|
+function cthumb($file, $type = '', $store_id = false)
|
|
|
+{
|
|
|
$type_array = explode(',_', ltrim(GOODS_IMAGES_EXT, '_'));
|
|
|
if (!in_array($type, $type_array)) {
|
|
|
$type = '240';
|