'', 'modulename' => '', 'uid' => '', 'displayorder' => 0, 'createtime' => '', 'updatetime' => '', ); public function deleteVisitRecord($uid, $delete_modules = array()) { if (!empty($delete_modules)) { $this->query->where('modulename', $delete_modules); } return $this->query->where('uid', $uid) ->where('uniacid', 0) ->delete(); } public function getVistedModule($uid) { return $this->query->where('uid', $uid)->where('uniacid', 0)->getall('modulename'); } }