|
@@ -240,7 +240,19 @@ namespace MySystem
|
|
bool checkPrize = db.UserAccountRecord.Any(m => m.QueryCount == OrderId && m.ChangeType == 112);
|
|
bool checkPrize = db.UserAccountRecord.Any(m => m.QueryCount == OrderId && m.ChangeType == 112);
|
|
function.WriteLog("OrderId:" + OrderId, "推荐下单奖励监控日志");
|
|
function.WriteLog("OrderId:" + OrderId, "推荐下单奖励监控日志");
|
|
function.WriteLog("checkPrize:" + checkPrize, "推荐下单奖励监控日志");
|
|
function.WriteLog("checkPrize:" + checkPrize, "推荐下单奖励监控日志");
|
|
- if (!checkPrize)
|
|
|
|
|
|
+ if (checkPrize)
|
|
|
|
+ {
|
|
|
|
+ Users user = db.Users.FirstOrDefault(m => m.Id == order.UserId);
|
|
|
|
+ if (user != null)
|
|
|
|
+ {
|
|
|
|
+ if(user.LeaderLevel > 0 || user.UserType == 1) //盟主或运营中心
|
|
|
|
+ {
|
|
|
|
+ //获得100元奖励
|
|
|
|
+ OpAccount(db, order, order.UserId, 100, pro.ProductCount);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else
|
|
{
|
|
{
|
|
Users user = db.Users.FirstOrDefault(m => m.Id == order.UserId);
|
|
Users user = db.Users.FirstOrDefault(m => m.Id == order.UserId);
|
|
if (user != null)
|
|
if (user != null)
|