|
|
@@ -22,9 +22,9 @@ namespace MySystem
|
|
|
th.IsBackground = true;
|
|
|
th.Start();
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
private void dosomething()
|
|
|
- {
|
|
|
+ {
|
|
|
bool op = true;
|
|
|
while (op)
|
|
|
{
|
|
|
@@ -48,7 +48,7 @@ namespace MySystem
|
|
|
}
|
|
|
|
|
|
public void sloveAlipayCallBack(string content)
|
|
|
- {
|
|
|
+ {
|
|
|
JsonData jsonObj = JsonMapper.ToObject(content);
|
|
|
string OrderNo = jsonObj["out_trade_no"].ToString();
|
|
|
string TradeNo = jsonObj["transaction_id"].ToString();
|
|
|
@@ -347,7 +347,7 @@ namespace MySystem
|
|
|
function.WriteLog("够资格", "操作小盟主购买逻辑监控日志");
|
|
|
if(user.LeaderLevel == 2 && result)
|
|
|
{
|
|
|
- UserAccount account = db.UserAccount.FirstOrDefault(m => m.Id == LeaderUserId);
|
|
|
+ UserAccount account = db.UserAccount.FirstOrDefault(m => m.Id == user.Id);
|
|
|
if(account != null)
|
|
|
{
|
|
|
function.WriteLog(str: "LeaderReserve:" + account.LeaderReserve, "操作小盟主购买逻辑监控日志");
|
|
|
@@ -371,7 +371,7 @@ namespace MySystem
|
|
|
if(user.UserType >= 1 && result)
|
|
|
{
|
|
|
OpModels.WebCMSEntities opdb = new OpModels.WebCMSEntities();
|
|
|
- OpModels.UserAccount account = opdb.UserAccount.FirstOrDefault(m => m.Id == LeaderUserId) ?? new OpModels.UserAccount();
|
|
|
+ OpModels.UserAccount account = opdb.UserAccount.FirstOrDefault(m => m.Id == user.Id) ?? new OpModels.UserAccount();
|
|
|
function.WriteLog("TotalAmt:" + account.TotalAmt, "操作小盟主购买逻辑监控日志");
|
|
|
if(account.TotalAmt > 0)
|
|
|
{
|