新增用户调用统一方法

This commit is contained in:
gongfuxiang 2022-02-08 22:14:06 +08:00
parent 6aabda73c7
commit e30395c73c

View File

@ -400,7 +400,12 @@ class UserService
}
} else {
$data['add_time'] = time();
$user_id = Db::name('User')->insertGetId($data);
$ret = self::UserInsert($data);
if($ret['code'] != 0)
{
return $ret;
}
$user_id = $ret['data']['user_id'];
}
// 添加用户后处理钩子