|
|
@@ -263,17 +263,11 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
var pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == KqSnNo) ?? new PosMachinesTwo();
|
|
|
|
|
|
//实际押金
|
|
|
- string SeoKeyword = "0";
|
|
|
- if (!string.IsNullOrEmpty(pos.SeoKeyword))
|
|
|
+ string SeoKeyword = pos.SeoKeyword;
|
|
|
+ var brand = db.KqProducts.FirstOrDefault(m => m.Id == pos.BrandId) ?? new KqProducts();
|
|
|
+ if (brand.Id > 0 && brand.SingleDepositApi == 0 && !string.IsNullOrEmpty(SeoKeyword))
|
|
|
{
|
|
|
- if (pos.BrandId != 2 && pos.BrandId != 7 && pos.BrandId != 10 && pos.BrandId != 11)
|
|
|
- {
|
|
|
- SeoKeyword = (decimal.Parse(pos.SeoKeyword) / 100).ToString();
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- SeoKeyword = pos.SeoKeyword;
|
|
|
- }
|
|
|
+ SeoKeyword = (decimal.Parse(SeoKeyword) / 100).ToString();
|
|
|
}
|
|
|
dic["SeoKeyword"] = SeoKeyword;
|
|
|
|
|
|
@@ -300,11 +294,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
string KqSnNo = item["KqSnNo"].ToString();
|
|
|
var pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == KqSnNo) ?? new PosMachinesTwo();
|
|
|
+ var brand = db.KqProducts.FirstOrDefault(m => m.Id == pos.BrandId) ?? new KqProducts();
|
|
|
if (!string.IsNullOrEmpty(pos.SeoKeyword))
|
|
|
{
|
|
|
- if (pos.BrandId != 2 && pos.BrandId != 7 && pos.BrandId != 10 && pos.BrandId != 11)
|
|
|
+ if (brand.Id > 0 && brand.SingleDepositApi == 0 && !string.IsNullOrEmpty(pos.SeoKeyword))
|
|
|
{
|
|
|
- ReturnAmount += decimal.Parse(pos.SeoKeyword) / 100;
|
|
|
+ ReturnAmount = (decimal.Parse(pos.SeoKeyword) / 100);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
@@ -377,17 +372,10 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
dic.Remove("UserId");
|
|
|
|
|
|
//实际押金
|
|
|
- string SeoKeyword = "0";
|
|
|
- if (!string.IsNullOrEmpty(pos.SeoKeyword))
|
|
|
+ string SeoKeyword = pos.SeoKeyword;
|
|
|
+ if (brand.Id > 0 && brand.SingleDepositApi == 0 && !string.IsNullOrEmpty(SeoKeyword))
|
|
|
{
|
|
|
- if (pos.BrandId != 2 && pos.BrandId != 7 && pos.BrandId != 10 && pos.BrandId != 11)
|
|
|
- {
|
|
|
- SeoKeyword = (decimal.Parse(pos.SeoKeyword) / 100).ToString();
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- SeoKeyword = pos.SeoKeyword;
|
|
|
- }
|
|
|
+ SeoKeyword = (decimal.Parse(SeoKeyword) / 100).ToString();
|
|
|
}
|
|
|
dic["SeoKeyword"] = SeoKeyword;
|
|
|
}
|