/** * 判断是否可修改 * @access private * @return true|false */ private function verify($status = '10000') { $id = get_post_value('id'); //echo $id; $m = new Website(); $m->clear(); $m->setTable('vcb_index_website'); $m->setWhere('website_id', '=', $id); $m->setWhere('status', '=', $status); $data = $m->getFieldValue('COUNT(*)'); return $data > 0 ? false : true; }