c\\\\\\
This commit is contained in:
@ -374,11 +374,14 @@ class DistributionLogic extends Logic
|
||||
if($firstLeader->isEmpty()) {
|
||||
throw new \think\Exception('无效的二维码');
|
||||
}
|
||||
$user = User::where(['user_id' => $user_id])
|
||||
$user = User::where(['id' => $user_id])
|
||||
->find();
|
||||
if($user['first_leader'] != 0) {
|
||||
throw new \think\Exception('已扫码');
|
||||
}
|
||||
if($post['user_id'] == $user_id) {
|
||||
throw new \think\Exception('无法扫自己的码');
|
||||
}
|
||||
// 上级
|
||||
$first_leader_id = $firstLeader['id'];
|
||||
$data = [
|
||||
|
||||
Reference in New Issue
Block a user