|
|
@@ -112,7 +112,7 @@ Loop: |
|
|
|
//找出前两个人 如果不是就分团队奖 如果是就再找 |
|
|
|
sql := `SELECT u.uid,u.first_arrive_at FROM user_profile up |
|
|
|
LEFT JOIN user u on u.uid=up.uid |
|
|
|
WHERE up.parent_uid=? and u.level=1 ORDER BY u.first_arrive_at asc,u.uid asc LIMIT 2` |
|
|
|
WHERE up.parent_uid=? ORDER BY u.first_arrive_at asc,u.uid asc LIMIT 2` |
|
|
|
nativeString, err := db.QueryNativeString(eg, sql, node.ParentUser.Uid) |
|
|
|
if err != nil { |
|
|
|
return zhios_order_relate_logx.Warn("sql error") |
|
|
@@ -121,6 +121,7 @@ Loop: |
|
|
|
for _, v := range nativeString { |
|
|
|
if zhios_order_relate_utils.StrToInt(v["uid"]) == extendUid { |
|
|
|
isNext = 1 |
|
|
|
extendUid = node.ParentUser.Uid |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|