|
@@ -65,21 +65,19 @@ namespace MySystem
|
|
|
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);
|
|
|
- JsonData obj = JsonMapper.ToObject(content);
|
|
|
- if (obj["code"].ToString() == "000000")
|
|
|
+ if(content.Contains("|"))
|
|
|
{
|
|
|
- content = Decrypt(obj["data"].ToString());
|
|
|
- function.WriteLog(content + "\n\n", "设置金控机具费率");
|
|
|
- JsonData contentObj = JsonMapper.ToObject(content);
|
|
|
- if (contentObj["respCode"].ToString() == "00")
|
|
|
- {
|
|
|
+ content = content.Split("|")[1];
|
|
|
+ JsonData obj = JsonMapper.ToObject(content);
|
|
|
+ if(obj["errorCode"].ToString() == "0000")
|
|
|
+ {
|
|
|
pos.SeoDescription = "设置成功";
|
|
|
SetRecordResult(db, RecordId, 1, "设置成功");
|
|
|
db.SaveChanges();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- string msg = contentObj["respMsg"].ToString();
|
|
|
+ string msg = obj["errorCodeDesc"].ToString();
|
|
|
pos.SeoDescription = msg;
|
|
|
SetRecordResult(db, RecordId, -1, msg);
|
|
|
db.SaveChanges();
|
|
@@ -87,6 +85,7 @@ namespace MySystem
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
+ JsonData obj = JsonMapper.ToObject(content);
|
|
|
string msg = obj["message"].ToString();
|
|
|
pos.SeoDescription = msg;
|
|
|
SetRecordResult(db, RecordId, -1, msg);
|