|
@@ -84,12 +84,13 @@ namespace MySystem
|
|
|
if(pos.BrandId == 1 || pos.BrandId == 3) //金控
|
|
|
{
|
|
|
addRate = addRate * 100;
|
|
|
- string content = function.GetWebRequest("http://connect.kexiaoshuang.com/home/setfee?merNo=" + merchant.KqMerNo + "&sn=" + pos.PosSn + "&fee=" + Fee + "&addRate=" + addRate);
|
|
|
- if(content.Contains("|"))
|
|
|
+ // string content = function.GetWebRequest("http://connect.kexiaoshuang.com/home/setfee?merNo=" + merchant.KqMerNo + "&sn=" + pos.PosSn + "&fee=" + Fee + "&addRate=" + addRate);
|
|
|
+ string content = SetFee(merchant.KqMerNo, pos.PosSn, addRate, addRate);
|
|
|
+ JsonData obj = JsonMapper.ToObject(content);
|
|
|
+ if (obj["code"].ToString() == "000000")
|
|
|
{
|
|
|
- content = content.Split("|")[1];
|
|
|
- JsonData obj = JsonMapper.ToObject(content);
|
|
|
- if(obj["errorCode"].ToString() == "0000")
|
|
|
+ JsonData subobj = JsonMapper.ToObject(Decrypt(obj["data"].ToString()));
|
|
|
+ if(subobj["errorCode"].ToString() == "0000")
|
|
|
{
|
|
|
pos.SeoDescription = "设置成功";
|
|
|
SetRecordResult(db, RecordId, 1, "设置成功");
|
|
@@ -97,7 +98,7 @@ namespace MySystem
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- string msg = obj["errorCodeDesc"].ToString();
|
|
|
+ string msg = subobj["errorCodeDesc"].ToString();
|
|
|
pos.SeoDescription = msg;
|
|
|
SetRecordResult(db, RecordId, -1, msg);
|
|
|
db.SaveChanges();
|
|
@@ -105,7 +106,6 @@ namespace MySystem
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- JsonData obj = JsonMapper.ToObject(content);
|
|
|
string msg = obj["message"].ToString();
|
|
|
pos.SeoDescription = msg;
|
|
|
SetRecordResult(db, RecordId, -1, msg);
|