|
|
@@ -1041,10 +1041,11 @@ namespace MySystem
|
|
|
if (user != null)
|
|
|
{
|
|
|
function.WriteLog("所属人:" + user.MakerCode, "开机奖励发放日志");
|
|
|
- if (!string.IsNullOrEmpty(user.ParentNav))
|
|
|
+ string ParentNav = function.CheckNull(user.ParentNav) + "," + user.Id + ",";
|
|
|
+ if (!string.IsNullOrEmpty(ParentNav))
|
|
|
{
|
|
|
decimal Prize = 20;
|
|
|
- string[] ParentNavs = user.ParentNav.Trim(',').Replace(",,", ",").Split(',');
|
|
|
+ string[] ParentNavs = ParentNav.Trim(',').Replace(",,", ",").Split(',');
|
|
|
for (int i = ParentNavs.Length - 1; i >= 0; i--)
|
|
|
{
|
|
|
int UserId = int.Parse(ParentNavs[i]);
|