mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-30 02:49:03 +08:00
新增用户调用统一方法
This commit is contained in:
parent
6aabda73c7
commit
e30395c73c
@ -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'];
|
||||
}
|
||||
|
||||
// 添加用户后处理钩子
|
||||
|
Loading…
Reference in New Issue
Block a user