调整订单推广人查询
This commit is contained in:
parent
c13dbd0145
commit
5f7648ccdc
@ -319,7 +319,11 @@ class Merchant extends BaseModel
|
||||
|
||||
public function promoter()
|
||||
{
|
||||
return User::where('uid', $this->uid)->field('spread_uid as uid,nickname')->find();
|
||||
$spreadId = User::where('uid', $this->uid)->value('spread_uid');
|
||||
if ($spreadId > 0) {
|
||||
return User::where('uid', $spreadId)->field('uid,nickname')->find();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user