|
|
@@ -5740,18 +5740,19 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
|
|
|
|
[HttpPost]
|
|
|
- public string ChangePosFeeDo(string PosSn)
|
|
|
+ public string ChangePosFeeDo(string PosSn, string BrandId, string Deposit)
|
|
|
{
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
return "请输入机具SN";
|
|
|
}
|
|
|
+ var brandId = int.Parse(BrandId);
|
|
|
List<int> SnIds = new List<int>();
|
|
|
string[] PosSnList = PosSn.Replace("\r", "").Replace("\n", ",").Split(',');
|
|
|
string error = "";
|
|
|
foreach (string Sn in PosSnList)
|
|
|
{
|
|
|
- var posInfo = db.PosMachinesTwo.FirstOrDefault(m => m.Status > -1 && m.BindingState == 0 && m.ActivationState == 0 && m.PosSn == Sn) ?? new PosMachinesTwo();
|
|
|
+ var posInfo = db.PosMachinesTwo.FirstOrDefault(m => m.Status > -1 && m.BindingState == 0 && m.ActivationState == 0 && m.PosSn == Sn && m.BrandId == brandId) ?? new PosMachinesTwo();
|
|
|
if (posInfo.Id == 0)
|
|
|
{
|
|
|
error += "以下操作失败" + Sn + ',' + "不存在或者不符合条件" + '\n';
|
|
|
@@ -5773,7 +5774,11 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
//金控
|
|
|
if (posInfo.BrandId == 1 || posInfo.BrandId == 3)
|
|
|
{
|
|
|
- var info = PublicChangePosFee.SetJKDeposit(SnId.ToString());
|
|
|
+ if (Deposit == "0") Deposit = "0";
|
|
|
+ if (Deposit == "99") Deposit = "99";
|
|
|
+ if (Deposit == "199") Deposit = "199";
|
|
|
+ else return "失败,无" + Deposit + "相关服务费设置权限";
|
|
|
+ var info = PublicChangePosFee.SetJKDeposit(SnId.ToString(), Deposit);
|
|
|
if (info != "设置成功")
|
|
|
{
|
|
|
return info;
|
|
|
@@ -5782,7 +5787,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
//开店宝
|
|
|
if (posInfo.BrandId == 2)
|
|
|
{
|
|
|
- var info = PublicChangePosFee.SetJKDeposit(SnId.ToString());
|
|
|
+ if (Deposit == "0") Deposit = "470";
|
|
|
+ if (Deposit == "99") Deposit = "471";
|
|
|
+ if (Deposit == "199") Deposit = "472";
|
|
|
+ if (Deposit == "299") Deposit = "473";
|
|
|
+ else return "失败,无" + Deposit + "相关服务费设置权限";
|
|
|
+ var info = PublicChangePosFee.SetJKDeposit(SnId.ToString(), Deposit);
|
|
|
if (info != "设置成功")
|
|
|
{
|
|
|
return info;
|
|
|
@@ -5791,7 +5801,11 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
//乐刷
|
|
|
if (posInfo.BrandId == 4 || posInfo.BrandId == 5)
|
|
|
{
|
|
|
- var info = PublicChangePosFee.SetJKDeposit(SnId.ToString());
|
|
|
+ if (Deposit == "99") Deposit = "100";
|
|
|
+ if (Deposit == "199") Deposit = "200";
|
|
|
+ if (Deposit == "299") Deposit = "300";
|
|
|
+ else return "失败,无" + Deposit + "相关服务费设置权限";
|
|
|
+ var info = PublicChangePosFee.SetJKDeposit(SnId.ToString(), Deposit);
|
|
|
if (info != "设置成功")
|
|
|
{
|
|
|
return info;
|
|
|
@@ -5800,7 +5814,11 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
//立刷
|
|
|
if (posInfo.BrandId == 6)
|
|
|
{
|
|
|
- var info = PublicChangePosFee.SetJKDeposit(SnId.ToString());
|
|
|
+ if (Deposit == "0") Deposit = "0";
|
|
|
+ if (Deposit == "99") Deposit = "99";
|
|
|
+ if (Deposit == "199") Deposit = "199";
|
|
|
+ else return "失败,无" + Deposit + "相关服务费设置权限";
|
|
|
+ var info = PublicChangePosFee.SetJKDeposit(SnId.ToString(), Deposit);
|
|
|
if (info != "设置成功")
|
|
|
{
|
|
|
return info;
|
|
|
@@ -5809,7 +5827,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
//盛付通
|
|
|
if (posInfo.BrandId == 7)
|
|
|
{
|
|
|
- var info = PublicChangePosFee.SetJKDeposit(SnId.ToString());
|
|
|
+ if (Deposit == "0") Deposit = "0";
|
|
|
+ if (Deposit == "99") Deposit = "99";
|
|
|
+ if (Deposit == "199") Deposit = "199";
|
|
|
+ if (Deposit == "249") Deposit = "249";
|
|
|
+ else return "失败,无" + Deposit + "相关服务费设置权限";
|
|
|
+ var info = PublicChangePosFee.SetJKDeposit(SnId.ToString(), Deposit);
|
|
|
if (info != "设置成功")
|
|
|
{
|
|
|
return info;
|
|
|
@@ -5818,7 +5841,11 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
//海科
|
|
|
if (posInfo.BrandId == 8 || posInfo.BrandId == 9)
|
|
|
{
|
|
|
- var info = PublicChangePosFee.SetJKDeposit(SnId.ToString());
|
|
|
+ if (Deposit == "99") Deposit = "100";
|
|
|
+ if (Deposit == "199") Deposit = "200";
|
|
|
+ if (Deposit == "299") Deposit = "300";
|
|
|
+ else return "失败,无" + Deposit + "相关服务费设置权限";
|
|
|
+ var info = PublicChangePosFee.SetJKDeposit(SnId.ToString(), Deposit);
|
|
|
if (info != "设置成功")
|
|
|
{
|
|
|
return info;
|
|
|
@@ -5827,7 +5854,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
//联动
|
|
|
if (posInfo.BrandId == 10 || posInfo.BrandId == 11)
|
|
|
{
|
|
|
- var info = PublicChangePosFee.SetJKDeposit(SnId.ToString());
|
|
|
+ if (Deposit == "0") Deposit = "0";
|
|
|
+ if (Deposit == "99") Deposit = "99";
|
|
|
+ if (Deposit == "199") Deposit = "199";
|
|
|
+ if (Deposit == "299") Deposit = "299";
|
|
|
+ else return "失败,无" + Deposit + "相关服务费设置权限";
|
|
|
+ var info = PublicChangePosFee.SetJKDeposit(SnId.ToString(), Deposit);
|
|
|
if (info != "设置成功")
|
|
|
{
|
|
|
return info;
|
|
|
@@ -5836,7 +5868,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
//盒易付
|
|
|
if (posInfo.BrandId == 12 || posInfo.BrandId == 13)
|
|
|
{
|
|
|
- var info = PublicChangePosFee.SetJKDeposit(SnId.ToString());
|
|
|
+ if (Deposit == "0") Deposit = "0";
|
|
|
+ if (Deposit == "99") Deposit = "99";
|
|
|
+ if (Deposit == "199") Deposit = "199";
|
|
|
+ if (Deposit == "299") Deposit = "299";
|
|
|
+ else return "失败,无" + Deposit + "相关服务费设置权限";
|
|
|
+ var info = PublicChangePosFee.SetJKDeposit(SnId.ToString(), Deposit);
|
|
|
if (info != "设置成功")
|
|
|
{
|
|
|
return info;
|