public function write(gbookModel $gb, $data) { $book = $gb->getbookPath(); $gb->write($data); // 记录日志 }