Explorar o código

提交代付平台,限制名单改为UserId

lcl %!s(int64=3) %!d(string=hai) anos
pai
achega
b9801a90bf

+ 2 - 2
Areas/Admin/Controllers/MainServer/UserCashRecordController.cs

@@ -1095,7 +1095,7 @@ namespace MySystem.Areas.Admin.Controllers
             AddSysLog(Id, "UserCashRecord", "cash");
             db.SaveChanges();
             CustomTagSet set = db.CustomTagSet.FirstOrDefault(m => m.Tags == "CashWithoutUser") ?? new CustomTagSet();
-            string MakerCodeString = "," + set.Contents + ",";
+            string IdString = "," + set.Contents + ",";
             foreach (string subid in idlist)
             {
                 int id = int.Parse(subid);
@@ -1103,7 +1103,7 @@ namespace MySystem.Areas.Admin.Controllers
                 if (edit != null)
                 {
                     Users user = db.Users.FirstOrDefault(m => m.Id == edit.UserId) ?? new Users();
-                    if (!MakerCodeString.Contains("," + user.MakerCode + ","))
+                    if (!IdString.Contains("," + user.Id + ","))
                     {
                         edit.QueryCount = Channel;
                         edit.UpdateDate = DateTime.Now;