|
@@ -22,9 +22,9 @@ namespace MySystem
|
|
th.IsBackground = true;
|
|
th.IsBackground = true;
|
|
th.Start();
|
|
th.Start();
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
private void dosomething()
|
|
private void dosomething()
|
|
- {
|
|
|
|
|
|
+ {
|
|
bool op = true;
|
|
bool op = true;
|
|
while (op)
|
|
while (op)
|
|
{
|
|
{
|
|
@@ -48,7 +48,7 @@ namespace MySystem
|
|
}
|
|
}
|
|
|
|
|
|
public void sloveAlipayCallBack(string content)
|
|
public void sloveAlipayCallBack(string content)
|
|
- {
|
|
|
|
|
|
+ {
|
|
JsonData jsonObj = JsonMapper.ToObject(content);
|
|
JsonData jsonObj = JsonMapper.ToObject(content);
|
|
string OrderNo = jsonObj["out_trade_no"].ToString();
|
|
string OrderNo = jsonObj["out_trade_no"].ToString();
|
|
string TradeNo = jsonObj["transaction_id"].ToString();
|
|
string TradeNo = jsonObj["transaction_id"].ToString();
|
|
@@ -141,7 +141,7 @@ namespace MySystem
|
|
}
|
|
}
|
|
else if (pro.ProductId == 28)
|
|
else if (pro.ProductId == 28)
|
|
{
|
|
{
|
|
- Users user = db.Users.FirstOrDefault(m => m.Id == order.UserId && m.LeaderLevel == 0);
|
|
|
|
|
|
+ Users user = db.Users.FirstOrDefault(m => m.Id == order.UserId);// && m.LeaderLevel == 0);
|
|
if(user != null)
|
|
if(user != null)
|
|
{
|
|
{
|
|
BeforeLeaderLevel = user.LeaderLevel;
|
|
BeforeLeaderLevel = user.LeaderLevel;
|
|
@@ -347,7 +347,7 @@ namespace MySystem
|
|
function.WriteLog("够资格", "操作小盟主购买逻辑监控日志");
|
|
function.WriteLog("够资格", "操作小盟主购买逻辑监控日志");
|
|
if(user.LeaderLevel == 2 && result)
|
|
if(user.LeaderLevel == 2 && result)
|
|
{
|
|
{
|
|
- UserAccount account = db.UserAccount.FirstOrDefault(m => m.Id == user.Id);
|
|
|
|
|
|
+ UserAccount account = db.UserAccount.FirstOrDefault(m => m.Id == LeaderUserId);
|
|
if(account != null)
|
|
if(account != null)
|
|
{
|
|
{
|
|
function.WriteLog(str: "LeaderReserve:" + account.LeaderReserve, "操作小盟主购买逻辑监控日志");
|
|
function.WriteLog(str: "LeaderReserve:" + account.LeaderReserve, "操作小盟主购买逻辑监控日志");
|
|
@@ -908,15 +908,15 @@ namespace MySystem
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- if(check.Rank < Rank)
|
|
|
|
- {
|
|
|
|
|
|
+ // if(check.Rank < Rank)
|
|
|
|
+ // {
|
|
check.Rank = Rank;
|
|
check.Rank = Rank;
|
|
check.UpdateDate = DateTime.Now.AddMonths(Month);
|
|
check.UpdateDate = DateTime.Now.AddMonths(Month);
|
|
- }
|
|
|
|
- else if(check.Rank == Rank && check.UpdateDate < DateTime.Now.AddMonths(Month))
|
|
|
|
- {
|
|
|
|
- check.UpdateDate = DateTime.Now.AddMonths(Month);
|
|
|
|
- }
|
|
|
|
|
|
+ // }
|
|
|
|
+ // else if(check.Rank == Rank && check.UpdateDate < DateTime.Now.AddMonths(Month))
|
|
|
|
+ // {
|
|
|
|
+ // check.UpdateDate = DateTime.Now.AddMonths(Month);
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
db.SaveChanges();
|
|
db.SaveChanges();
|
|
}
|
|
}
|