提交 414f66a9 编写于 作者: 宕样's avatar 宕样

add a hook ater user save insert handle

上级 def95a35
......@@ -347,6 +347,20 @@ class UserService
} else {
$data['add_time'] = time();
$user_id = Db::name('User')->insertGetId($data);
// 添加用户后处理钩子
$hook_name = 'plugins_service_user_save_after_insert_handle';
$ret = HookReturnHandle(Hook::listen($hook_name, [
'hook_name' => $hook_name,
'is_backend' => true,
'params' => &$params,
'data' => &$data,
'user_id' => &$user_id,
]));
if(isset($ret['code']) && $ret['code'] != 0)
{
return $ret;
}
}
// 状态
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册