public function doEditData($time, $id) { //检查安全性,防止非管理员访问 $uid = $this->where('id=' . $id)->getField('uid'); if ($uid != $this->mid) { return -1; } if ($this->where('id=' . $id)->setField('deadline', $time)) { return 1; } else { return 0; } }