Explorar o código

调整数据读取

DuGuYang %!s(int64=2) %!d(string=hai) anos
pai
achega
f0c3afee13
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Areas/Admin/Controllers/MainServer/UsersController.cs

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

@@ -2571,7 +2571,7 @@ namespace MySystem.Areas.Admin.Controllers
                             var mer = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId) ?? new PosMerchantInfo();
                             var mer = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId) ?? new PosMerchantInfo();
                             var brand = db.KqProducts.FirstOrDefault(m => m.Id == pos.BrandId) ?? new KqProducts();
                             var brand = db.KqProducts.FirstOrDefault(m => m.Id == pos.BrandId) ?? new KqProducts();
                             // if (brand.Id > 0 && brand.SingleDepositApi == 0 && !string.IsNullOrEmpty(SeoKeyword))
                             // if (brand.Id > 0 && brand.SingleDepositApi == 0 && !string.IsNullOrEmpty(SeoKeyword))
-                            if (brand.Id > 0 && brand.NoticeMoneyUnit == 2 && !string.IsNullOrEmpty(SeoKeyword))
+                            if (brand.Id > 0 && brand.NoticeMoneyUnit == 2 && !string.IsNullOrEmpty(pos.SeoKeyword))
                             {
                             {
                                 SeoKeyword = (decimal.Parse(pos.SeoKeyword) / 100).ToString();
                                 SeoKeyword = (decimal.Parse(pos.SeoKeyword) / 100).ToString();
                             }
                             }
@@ -2656,7 +2656,7 @@ namespace MySystem.Areas.Admin.Controllers
                             var pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == mer.KqSnNo) ?? new PosMachinesTwo();
                             var pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == mer.KqSnNo) ?? new PosMachinesTwo();
                             var brand = db.KqProducts.FirstOrDefault(m => m.Id == pos.BrandId) ?? new KqProducts();
                             var brand = db.KqProducts.FirstOrDefault(m => m.Id == pos.BrandId) ?? new KqProducts();
                             // if (brand.Id > 0 && brand.SingleDepositApi == 0 && !string.IsNullOrEmpty(SeoKeyword))
                             // if (brand.Id > 0 && brand.SingleDepositApi == 0 && !string.IsNullOrEmpty(SeoKeyword))
-                            if (brand.Id > 0 && brand.NoticeMoneyUnit == 2 && !string.IsNullOrEmpty(SeoKeyword))
+                            if (brand.Id > 0 && brand.NoticeMoneyUnit == 2 && !string.IsNullOrEmpty(pos.SeoKeyword))
                             {
                             {
                                 SeoKeyword = (decimal.Parse(pos.SeoKeyword) / 100).ToString();
                                 SeoKeyword = (decimal.Parse(pos.SeoKeyword) / 100).ToString();
                             }
                             }