INSERT INTO `pw_hook` (`name`, `app_id`, `app_name`, `created_time`, `modified_time`, `document`) VALUES
('c_fresh_post', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwPostDoBase'),
('c_manage_domanage', '', 'system', 1341470637, 1341470637, ''),
('c_post_doadd', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwPostDoBase'),
('c_post_domodify', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwPostDoBase'),
('c_post_doreply', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwPostDoBase'),
('c_post_modify', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwPostDoBase'),
('c_post_run', '', 'system', 1341470637, 1341470637, ''),
('c_read_run', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwThreadDisplayDoInterface'),
('c_register', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwRegisterDoBase'),
('c_space_profile', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwSpaceProfileDoInterface'),
('m_PwLikeService', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwLikeDoBase'),
('m_PwMessageService', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwMessageDoBase'),
('m_PwReplyPost', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwPostDoBase'),
('m_PwTopicPost', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwPostDoBase'),
('m_login_welcome', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param PwUserBo $userBo 用户的BO对象\n@param string $ip 登录的IP地址\n\n@return void\r\n\r\nPwUserLoginDoBase'),
('m_task_gainreward', '', 'system', 1341470637, 1341470637, '\r\n\r\n\r\n\r\nPwTaskRewardDoInterface'),
('s_PwEmotionDao_add', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param array $data 表情数据\n\n@return void\r\n\r\n'),
('s_PwEmotionDao_delete', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param int $emotionId 表情id\n\n@return void\r\n\r\n'),
('s_PwEmotionDao_update', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param int $emotionid 表情id\n@param array $data 表情数据\n\n@return void\r\n\r\n'),
('s_PwForumDao_update', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param int $fid 版块id\n@param array $data 版块信息\n\n@return void\n\r\n\r\n'),
('s_PwLikeService_delLike', '', 'system', 1341470637, 1341470637, ''),
('s_PwTaskDao_update', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param int $taskid 任务id\n@param array $data 任务信息\n\n@return void\r\n\r\n'),
('s_PwThreadType', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param array $tType 帖子类型\n\n@return array $tType 帖子类型\r\n\r\n'),
('s_PwThreadsDao_add', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param array $data 帖子数据\n\n@return void\r\n\r\n'),
('s_PwThreadsDao_batchDelete', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param array $tids 批量帖子id\n\n@return void\r\n\r\n'),
('s_PwThreadsDao_batchUpdate', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param array $tids 批量帖子id\n@param array $fields 更新字段\n@param array $increaseFields 增减字段\n@param array $bitFields 位操作字段\n\n@return void\r\n\r\n'),
('s_PwThreadsDao_delete', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param int $tid 帖子id\n\n@param void\r\n\r\n'),
('s_PwThreadsDao_update', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param int $tid 帖子id\n@param array $fields 更新字段\n@param array $increaseFields 增减字段\n@param array $bitFields 位操作字段\n\n@return void\r\n\r\n'),
('s_PwUserDataDao_update', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param int $uid 用户id\n@param array $fields 更新字段\n@param array $increaseFields 增减字段\n\n@return void\r\n\r\n'),
('s_PwUserGroupPermission_update', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param PwUserPermissionDm $dm 用户组权限\n\n@param void\r\n\r\n'),
('s_PwUserGroups_update', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param array $gids 用户组\n\n@return void\r\n\r\n'),
('s_PwUserService_editUser', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param PwUserInfoDm $dm\n\n@return void\r\n\r\n'),
('s_PwUserTagDao_batchDeleteTag', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param array $tagids 批量标签id\n\n@return void\r\n\r\n'),
('s_PwUserTagDao_deleteTag', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param int $tagid 标签id\n\n@return void\r\n\r\n'),
('s_PwUserTagRelationDao_deleteRelation', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param int $tag_id,\n@param array array() 更新数据\n@param array array(''used_count'' => -1) 增减数据\n\n@return void\r\n\r\n'),
('s_PwUserTagRelation_batchDeleteRelation', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param array $tag_ids 批量标签id\n@param PwUserTagRelation $bp\n\n@return void\r\n\r\n'),
('s_PwUserTagRelation_batchDeleteRelationByUids', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param array $uids 批量用户id\n@param PwUserTagRelation $bp\n\n@return void\r\n\r\n'),
('s_PwUserTagRelation_deleteRelationByUid', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param int $uid 用户id\n@param PwUserTagRelation $bp\n\n@return void\r\n\r\n'),
('s_PwUser_add', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param PwUserInfoDm $dm 用户信息DM\n\n@return void\r\n\r\n'),
('s_PwUser_batchDelete', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param array $uids 批量用户id\n \n@return void\r\n\r\n'),
('s_PwUser_delete', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param int $uid 用户id\n\n@return void\r\n\r\n'),
('s_PwUser_update', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param PwUserInfoDm $dm 用户信息DM\n\n@return void\r\n\r\n'),
('s_addFollow', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param $uid 用户a\n@param $touid 被关注的用户b\n\n@return void\r\n\r\n'),
('s_deleteFollow', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param $uid 用户a\n@param $touid 被取消关注的用户b\n\n@return void\r\n\r\n'),
('s_punch', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param PwUserInfoDm $dm\n\n@return void\r\n\r\n'),
('s_update_avatar', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param int $uid 用户id\n\n@return void\r\n\r\n'),
('s_PwAttacmentService_getStorages', '', 'system', 1341470637, 1341470637, '\r\n\r\n@param  array $storages 附件存储类型\n\n@return array $storages 附件存储类型\r\n\r\n');

INSERT INTO `pw_hook_inject` (`hook_name`,`alias`,`class`,`method`,`loadway`,`expression`,`created_time`,`modified_time`,`description`) VALUES 
('c_post_run', 'poll', 'SRV:forum.srv.post.injector.PwPostDoPollInjector', 'run', '', 'special.get==1', '1341470637', '1341470637', ''),
('m_PwTopicPost', 'fresh', 'HOOK:PwPost.do.PwPostDoFresh', '', '', '', '1341470637', '1341470637', ''),
('m_PwTopicPost', 'task', 'SRV:task.srv.condition.PwTaskBbsThreadDo', '', '', '', '1341470637', '1341470637', ''),
('m_PwTopicPost', 'behavior', 'SRV:misc.behavior.do.PwMiscThreadDo', 'addThread', 'load', '', '1341470637', '1341470637', ''),
('m_PwTopicPost', 'medal', 'SRV:medal.srv.condition.do.PwMedalThreadDo', 'addThread', 'load', '', '1341470637', '1341470637', ''),
('m_PwReplyPost', 'task', 'SRV:task.srv.condition.PwTaskBbsPostDo', '', '', '', '1341470637', '1341470637', ''),
('m_PwReplyPost', 'behavior', 'SRV:misc.behavior.do.PwMiscPostDo', 'addPost', 'load', '', '1341470637', '1341470637', ''),
('m_PwReplyPost', 'medal', 'SRV:medal.srv.condition.do.PwMedalPostDo', 'addPost', 'load', '', '1341470637', '1341470637', ''),
('c_post_doadd', 'poll', 'SRV:forum.srv.post.injector.PwPostDoPollInjector', 'doadd', '', 'special.post==1', '1341470637', '1341470637', ''),
('c_post_doadd', 'att', 'SRV:forum.srv.post.injector.PwPostDoAttInjector', 'run', '', 'flashatt.post!=0', '1341470637', '1341470637', ''),
('c_post_doadd', 'album', 'SRC:extensions.album.service.srv.PwPostDoAlbumInjector', 'run', '', 'toAlbums.post!=0', '1341470637', '1341470637', ''),
('c_post_doadd', 'tag', 'SRV:forum.srv.post.injector.PwPostDoTagInjector', 'doadd', '', '', '1341470637', '1341470637', ''),
('c_post_doadd', 'remind', 'SRV:forum.srv.post.injector.PwPostDoRemindInjector', 'doadd', '', '', '1341470637', '1341470637', ''),
('c_post_doreply', 'att', 'SRV:forum.srv.post.injector.PwPostDoAttInjector', 'run', '', 'flashatt.post!=0', '1341470637', '1341470637', ''),
('c_post_doreply', 'dolike_fast_reply', 'SRV:like.srv.fresh.injector.PwLikeDoFreshInjector', 'run', '', 'isfresh.post==1', '1341470637', '1341470637', ''),
('c_post_doreply', 'dolike_reply_lastpid', 'SRV:like.srv.reply.injector.PwLikeDoReplyInjector', 'run', '', 'from_type.post==like', '1341470637', '1341470637', ''),
('c_post_doreply', 'remind', 'SRV:forum.srv.post.injector.PwReplyDoRemindInjector', 'doadd', '', '', '1341470637', '1341470637', ''),
('c_post_modify', 'poll', 'SRV:forum.srv.post.injector.PwPostDoPollInjector', 'modify', '', 'service:special==1', '1341470637', '1341470637', ''),
('c_post_domodify', 'poll', 'SRV:forum.srv.post.injector.PwPostDoPollInjector', 'domodify', '', 'service:action.info.special==1', '1341470637', '1341470637', ''),
('c_post_domodify', 'att', 'SRV:forum.srv.post.injector.PwPostDoAttInjector', 'domodify', '', '', '1341470637', '1341470637', ''),
('c_post_domodify', 'tag', 'SRV:forum.srv.post.injector.PwPostDoTagInjector', 'domodify', '', '', '1341470637', '1341470637', ''),
('c_post_domodify', 'remind', 'SRV:forum.srv.post.injector.PwPostDoRemindInjector', 'domodify', '', '', '1341470637', '1341470637', ''),
('c_read_run', 'poll', 'SRV:forum.srv.threadDisplay.injector.PwThreadDisplayDoPollInjector', 'run', '', 'service:thread.info.special==1', '1341470637', '1341470637', ''),
('c_read_run', 'like', 'SRV:like.srv.threadDisplay.injector.PwThreadDisplayDoLikeInjector', 'run', '', '', '1341470637', '1341470637', ''),
('c_read_run', 'tag', 'SRV:forum.srv.threadDisplay.injector.PwThreadDisplayDoTagInjector', 'run', '', '', '1341470637', '1341470637', ''),
('c_read_run', 'medal', 'SRV:medal.srv.threadDisplay.injector.PwThreadDisplayDoMedalInjector', 'run', '', '', '1341470637', '1341470637', ''),
('c_register', 'invite', 'SRV:user.srv.register.injector.PwRegisterDoInviteInjector', 'run', '', 'service:isOpenInvite==1', '1341470637', '1341470637', ''),
('c_manage_domanage', 'notice', 'SRV:message.srv.notice.injector.PwNoticeDoInviteInjector', 'manageNotice', '', '', '1341470637', '1341470637', ''),
('s_PwThreadsDao_add', 'threadsIndex', 'SRV:forum.dao.PwThreadsIndexDao', 'addThread', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwThreadsDao_add', 'threadsCateIndex', 'SRV:forum.dao.PwThreadsCateIndexDao', 'addThread', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwThreadsDao_update', 'threadsIndex', 'SRV:forum.dao.PwThreadsIndexDao', 'updateThread', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwThreadsDao_update', 'threadsCateIndex', 'SRV:forum.dao.PwThreadsCateIndexDao', 'updateThread', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwThreadsDao_batchUpdate', 'threadsIndex', 'SRV:forum.dao.PwThreadsIndexDao', 'batchUpdateThread', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwThreadsDao_batchUpdate', 'threadsCateIndex', 'SRV:forum.dao.PwThreadsCateIndexDao', 'batchUpdateThread', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwThreadsDao_delete', 'threadsIndex', 'SRV:forum.dao.PwThreadsIndexDao', 'deleteThread', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwThreadsDao_delete', 'threadsCateIndex', 'SRV:forum.dao.PwThreadsCateIndexDao', 'deleteThread', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwThreadsDao_batchDelete', 'threadsIndex', 'SRV:forum.dao.PwThreadsIndexDao', 'batchDeleteThread', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwThreadsDao_batchDelete', 'threadsCateIndex', 'SRV:forum.dao.PwThreadsCateIndexDao', 'batchDeleteThread', 'loadDao', '', '1341470637', '1341470637', ''),
('s_addFollow', 'medal', 'SRV:medal.srv.condition.do.PwMedalFansDo', 'addFollow', 'load', '', '1341470637', '1341470637', ''),
('s_addFollow', 'task', 'SRV:task.srv.condition.PwTaskMemberFansDo', 'addFollow', 'load', '', '1341470637', '1341470637', ''),
('s_addFollow', 'message', 'SRV:message.srv.do.PwNoticeFansDo', 'addFollow', 'load', '', '1341470637', '1341470637', ''),
('s_deleteFollow', 'medal', 'SRV:medal.srv.condition.do.PwMedalFansDo', 'delFollow', 'load', '', '1341470637', '1341470637', ''),
('s_PwTaskDao_update', 'TaskUser', 'SRV:task.dao.PwTaskUserDao', 'updateIsPeriod', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwUserService_editUser', 'task', 'SRV:task.srv.condition.PwTaskProfileConditionDo', 'editUser', 'load', '', '1341470637', '1341470637', ''),
('s_update_avatar', 'task', 'SRV:task.srv.condition.PwTaskMemberAvatarDo', 'uploadAvatar', 'load', '', '1341470637', '1341470637', ''),
('s_update_avatar', 'album', 'SRC:extensions.album.service.srv.PwPhotoUploadAvatarDo', 'uploadAvatar', 'load', '', '1341470637', '1341470637', ''),
('m_task_gainreward', 'group', 'SRV:task.srv.reward.PwTaskGroupRewardDo', '', 'load', 'service:type==group', '1341470637', '1341470637', ''),
('m_task_gainreward', 'credit', 'SRV:task.srv.reward.PwTaskCreditRewardDo', '', 'load', 'service:type==credit', '1341470637', '1341470637', ''),
('m_PwLikeService', 'task', 'SRV:task.srv.condition.PwTaskBbsLikeDo', '', 'load', '', '1341470637', '1341470637', ''),
('m_PwLikeService', 'behavior', 'SRV:misc.behavior.do.PwMiscLikeDo', '', 'load', '', '1341470637', '1341470637', ''),
('m_PwLikeService', 'medal', 'SRV:medal.srv.condition.do.PwMedalLikeDo', '', 'load', '', '1341470637', '1341470637', ''),
('m_PwMessageService', 'task', 'SRV:task.srv.condition.PwTaskMemberMsgDo', '', 'load', '', '1341470637', '1341470637', ''),
('m_login_welcome', 'autotask', 'SRV:task.srv.condition.PwAutoTaskLoginDo', '', 'load', '', '1341470637', '1341470637', ''),
('m_login_welcome', 'behavior', 'SRV:misc.behavior.do.PwMiscUserDo', '', 'load', '', '1341470637', '1341470637', ''),
('m_login_welcome', 'medal', 'SRV:medal.srv.condition.do.PwMedalUserDo', '', 'load', '', '1341470637', '1341470637', ''),
('s_PwUser_delete', 'ban', 'SRC:hooks.PwUser.PwUserDoBan', 'deleteBan', 'load', '', '1341470637', '1341470637', ''),
('s_PwUser_delete', 'belong', 'SRC:hooks.PwUser.PwUserDoBelong', 'deleteUser', 'load', '', '1341470637', '1341470637', ''),
('s_PwUser_delete', 'registerCheck', 'SRC:hooks.PwUser.PwUserDoRegisterCheck', 'deleteUser', 'load', '', '1341470637', '1341470637', ''),
('s_PwUser_delete', 'task', 'SRC:task.PwTaskUser', 'deleteByUid', 'load', '', '1341470637', '1341470637', ''),
('s_PwUser_batchDelete', 'ban', 'SRC:hooks.PwUser.PwUserDoBan', 'batchDeleteBan', 'load', '', '1341470637', '1341470637', ''),
('s_PwUser_batchDelete', 'belong', 'SRC:hooks.PwUser.PwUserDoBelong', 'batchDeleteUser', 'load', '', '1341470637', '1341470637', ''),
('s_PwUser_batchDelete', 'registerCheck', 'SRC:hooks.PwUser.PwUserDoRegisterCheck', 'batchDeleteUser', 'load', '', '1341470637', '1341470637', ''),
('s_PwUser_add', 'belong', 'SRC:hooks.PwUser.PwUserDoBelong', 'editUser', 'load', '', '1341470637', '1341470637', ''),
('s_PwUser_update', 'belong', 'SRC:hooks.PwUser.PwUserDoBelong', 'editUser', 'load', '', '1341470637', '1341470637', ''),
('c_space_profile', 'work', 'SRV:space.srv.profile.injector.PwSpaceProfileInjector', 'extendWork', '', '', '1341470637', '1341470637', ''),
('c_space_profile', 'education', 'SRV:space.srv.profile.injector.PwSpaceProfileInjector', 'extendEducation', '', '', '1341470637', '1341470637', ''),
('s_PwUserDataDao_update', 'level', 'SRV:usergroup.srv.PwUserGroupsService', 'updateLevel', 'load', '', '1341470637', '1341470637', ''),
('s_PwUserGroups_update', 'level_cache', 'SRV:usergroup.srv.PwUserGroupsService', 'updateLevelCache', 'load', '', '1341470637', '1341470637', ''),
('s_PwUserGroupPermission_update', 'level_cache', 'SRV:usergroup.srv.PwUserGroupsService', 'updatePermissionCache', 'load', '', '1341470637', '1341470637', ''),
('s_PwLikeService_delLike', 'delLike', 'SRV:medal.srv.condition.do.PwMedalLikeDo', 'delLike', 'load', '', '1341470637', '1341470637', ''),
('s_PwUserTagRelationDao_deleteRelation', 'PwUserTag', 'SRV:usertag.dao.PwUserTagDao', 'updateTag', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwUserTagDao_deleteTag', 'PwUserTagRelation', 'SRV:usertag.dao.PwUserTagRelationDao', 'deleteRelationByTagid', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwUserTagDao_batchDeleteTag', 'PwUserTagRelation', 'SRV:usertag.dao.PwUserTagRelationDao', 'batchDeleteRelationByTagids', 'loadDao', '', '1341470637', '1341470637', ''),
('s_PwUserTagRelation_batchDeleteRelation', 'PwDeleteRelationDoUpdateTag', 'SRV:usertag.srv.do.PwDeleteRelationDoUpdateTag', 'batchDeleteRelation', 'load', '', '1341470637', '1341470637', ''),
('s_PwUserTagRelation_deleteRelationByUid', 'PwDeleteRelationDoUpdateTag', 'SRV:usertag.srv.do.PwDeleteRelationDoUpdateTag', 'deleteRelationByUid', 'load', '', '1341470637', '1341470637', ''),
('s_PwUserTagRelation_batchDeleteRelationByUids', 'PwDeleteRelationDoUpdateTag', 'SRV:usertag.srv.do.PwDeleteRelationDoUpdateTag', 'batchDeleteRelationByUids', 'load', '', '1341470637', '1341470637', ''),
('s_PwEmotionDao_add', 'addEmotion', 'SRV:emotion.srv.PwEmotionService', 'updateCache', 'load', '', '1341470637', '1341470637', ''),
('s_PwEmotionDao_update', 'addEmotion', 'SRV:emotion.srv.PwEmotionService', 'updateCache', 'load', '', '1341470637', '1341470637', ''),
('s_PwEmotionDao_delete', 'addEmotion', 'SRV:emotion.srv.PwEmotionService', 'updateCache', 'load', '', '1341470637', '1341470637', ''),
('s_PwThreadType', 'debate', 'HOOK:PwThreadType.PwThreadTypeDoDebate', 'getTtype', 'load', '', '1341470637', '1341470637', ''),
('c_fresh_post', 'att', 'SRV:forum.srv.post.injector.PwPostDoAttInjector', 'run', '', 'flashatt.post!=0', '1341470637', '1341470637', ''),
('c_fresh_post', 'remind', 'SRV:attention.srv.post.injector.PwFreshPostDoRemindInjector', 'dopost', '', '', '1341470637', '1341470637', ''),
('s_punch', 'task', 'SRV:task.srv.condition.PwTaskMemberPunchDo', 'doPunch', 'load', '', '1341470637', '1341470637', '')