挂钩点名称
- member_register_after
挂钩点参数
- \Phpcmf\Hooks::trigger('member_register_after', $data);
$data参数说明
- Array
- (
- [username] => asdfa
- [phone] =>
- [email] => daf@fda.com
- [password] => d45c371b35ded2de44e7b528c00ee964
- [name] =>
- [salt] => 59b90e1005
- [money] => 0
- [freeze] => 0
- [spend] => 0
- [score] => 0
- [experience] => 0
- [regip] => 127.0.0.1
- [regtime] => 1481442182
- [randcode] => 230252
- [uid] => 8120
- [id] => 8120
- [is_lock] => 0
- [is_auth] => 0
- [is_admin] => 0
- [is_avatar] => 0
- [is_verify] => 0
- [is_mobile] => 0
- [is_complete] => 0
- )
- #以实际输出的参数为准
用法举例
- \Phpcmf\Hooks::on('member_register_after', function($data) {
- ... 你的程序段
- });
文档最后更新时间:2017-04-25 08:45:21