|
@@ -61,6 +61,18 @@ namespace MySystem
|
|
|
if(merchant != null)
|
|
|
{
|
|
|
decimal Fee = Kind == 1 ? 0.63M : 0.6M;
|
|
|
+ int addRate = 0;
|
|
|
+ if(pos.BrandId < 12)
|
|
|
+ {
|
|
|
+ if(Fee == 0.63M)
|
|
|
+ {
|
|
|
+ addRate = 3;
|
|
|
+ }
|
|
|
+ else if(Fee == 0.6M)
|
|
|
+ {
|
|
|
+ Fee = 0.63M;
|
|
|
+ }
|
|
|
+ }
|
|
|
if(pos.BrandId == 1 || pos.BrandId == 3) //金控
|
|
|
{
|
|
|
string content = function.GetWebRequest("http://connect.kexiaoshuang.com/home/setfee?merNo=" + merchant.KqMerNo + "&sn=" + pos.PosSn + "&fee=" + Fee);
|
|
@@ -94,7 +106,7 @@ namespace MySystem
|
|
|
else if(pos.BrandId == 2) //开店宝
|
|
|
{
|
|
|
Fee = Fee / 100;
|
|
|
- string content = ModifyFee(pos.PosSn, Fee);
|
|
|
+ string content = ModifyFee(pos.PosSn, Fee, addRate.ToString());
|
|
|
JsonData obj = JsonMapper.ToObject(content);
|
|
|
if(content.Contains("orderNo"))
|
|
|
{
|
|
@@ -179,7 +191,7 @@ namespace MySystem
|
|
|
}
|
|
|
else if(pos.BrandId == 7) //盛付通
|
|
|
{
|
|
|
- string content = SetFeeForSft(merchant.KqMerNo, Fee.ToString("f4"));
|
|
|
+ string content = SetFeeForSft(merchant.KqMerNo, Fee.ToString("f4"), addRate.ToString());
|
|
|
JsonData obj = JsonMapper.ToObject(content);
|
|
|
if(obj["respCode"].ToString() == "00")
|
|
|
{
|
|
@@ -293,7 +305,7 @@ namespace MySystem
|
|
|
else if(pos.BrandId == 10 || pos.BrandId == 11) //联动
|
|
|
{
|
|
|
decimal LastFee = Fee / 100;
|
|
|
- string content = LDFeeRate(pos.PosSn, LastFee.ToString("f4"), pos.BrandId);
|
|
|
+ string content = LDFeeRate(pos.PosSn, LastFee.ToString("f4"), pos.BrandId, addRate);
|
|
|
JsonData obj = JsonMapper.ToObject(content);
|
|
|
if(obj["code"].ToString() == "000000")
|
|
|
{
|
|
@@ -309,7 +321,7 @@ namespace MySystem
|
|
|
db.SaveChanges();
|
|
|
}
|
|
|
}
|
|
|
- else if(pos.BrandId == 12) //盒易付
|
|
|
+ else if(pos.BrandId == 12 || pos.BrandId == 13) //盒易付
|
|
|
{
|
|
|
string content = BoxFee(merchant.KqMerNo, Fee.ToString("f2"));
|
|
|
JsonData obj = JsonMapper.ToObject(content);
|