'进程已被锁定请稍后再试'))); } $checktime = TIMESTAMP - 300; $datas = DB::fetch_all("select * from %t where (schk = 0 or lchk = 0) and checktime < %d order by checktime asc limit $start,$limit",array('thumb_preview',$checktime)); foreach ($datas as $v) { $setarr = ['checktime'=>TIMESTAMP]; //更新当前数据获取缩略图执行次数和时间 if ($v['swidth'] != $thumbsize['small']['width'] || $v['sheight'] != $thumbsize['small']['height'] || $v['swaterposition'] != $wp || $v['swatertype'] != $wt || $v['swatercontent'] != $wcontent) { $setarr['schk'] = 1; } if ($v['lwidth'] != $thumbsize['large']['width'] || $v['lheight'] != $thumbsize['large']['height'] || $v['lwaterposition'] != $wp || $v['lwatertype'] != $wt || $v['lwatercontent'] != $wcontent) { $setarr['lchk'] = 1; } C::t('thumb_preview')->update($v['id'],$setarr); } dzz_process::unlock($processname);