|
@@ -285,7 +285,12 @@ namespace MySystem
|
|
int num = 0;
|
|
int num = 0;
|
|
foreach(RecommandKingItem user in users)
|
|
foreach(RecommandKingItem user in users)
|
|
{
|
|
{
|
|
- if(!Historys.Contains(user.UserId))
|
|
|
|
|
|
+ bool op = true;
|
|
|
|
+ if(Kind == 1)
|
|
|
|
+ {
|
|
|
|
+ op = !Historys.Contains(user.UserId);
|
|
|
|
+ }
|
|
|
|
+ if(op)
|
|
{
|
|
{
|
|
num += 1;
|
|
num += 1;
|
|
RecommendDirectUser item = db.RecommendDirectUser.FirstOrDefault(m => m.UserId == user.UserId && m.TradeMonth == TradeMonth && m.Kind == Kind);
|
|
RecommendDirectUser item = db.RecommendDirectUser.FirstOrDefault(m => m.UserId == user.UserId && m.TradeMonth == TradeMonth && m.Kind == Kind);
|