function img()
{
import('ORG.Util.Image');
$string=M("news")->field('startwhere')->limit(10)->select();
Image::buildString($string, $rgb=array(), $filename='', $type='png', $disturb=1, $border=true);
}
输出为一张空图片,没有内容
$string改成数量统计就能正常输出
$string=M("news")->where('docar < 2')->count();