挂钩点名称

    1. member_register_after

    挂钩点参数

    1. \Phpcmf\Hooks::trigger('member_register_after', $data);

    $data参数说明

    1. Array
    2. (
    3. [username] => asdfa
    4. [phone] =>
    5. [email] => daf@fda.com
    6. [password] => d45c371b35ded2de44e7b528c00ee964
    7. [name] =>
    8. [salt] => 59b90e1005
    9. [money] => 0
    10. [freeze] => 0
    11. [spend] => 0
    12. [score] => 0
    13. [experience] => 0
    14. [regip] => 127.0.0.1
    15. [regtime] => 1481442182
    16. [randcode] => 230252
    17. [uid] => 8120
    18. [id] => 8120
    19. [is_lock] => 0
    20. [is_auth] => 0
    21. [is_admin] => 0
    22. [is_avatar] => 0
    23. [is_verify] => 0
    24. [is_mobile] => 0
    25. [is_complete] => 0
    26. )
    27. #以实际输出的参数为准

    用法举例

    1. \Phpcmf\Hooks::on('member_register_after', function($data) {
    2. ... 你的程序段
    3. });

    文档最后更新时间:2017-04-25 08:45:21