|
|
@@ -656,7 +656,7 @@ class StorePink extends BaseModel
|
|
|
$user = User::where('uid', $product['uid'])->find();
|
|
|
if (!$user) return self::setErrorInfo('用户不存在');
|
|
|
$spread = User::where('uid', $user['spread_uid'])->find();
|
|
|
- if (TreeRecommend::where('uid', $user['uid'])->find()) {
|
|
|
+ if (TreeRecommend::where('uid', $user['uid'])->count() > 1) {
|
|
|
$spread = $user;
|
|
|
}
|
|
|
if (!$spread) return true;
|