function WSTReadExcel($file) { Vendor("PHPExcel.PHPExcel"); Vendor("PHPExcel.PHPExcel.IOFactory"); return PHPExcel_IOFactory::load(WSTRootPath() . "/Upload/" . $file); }
/** * 根据网页图片路径替换出手机版图片 * @param string $picurl 网页版图片领 */ function WSTMoblieImg($imgurl) { $img = str_replace('.', C('WST_M_IMG_SUFFIX') . '.', $imgurl); return file_exists(WSTRootPath() . "/" . $img) ? $img : $imgurl; }