|
@@ -49,11 +49,16 @@ namespace MySystem
|
|
|
return "机具" + pos.PosSn + "设置失败";
|
|
|
}
|
|
|
JsonData jsonObj = JsonMapper.ToObject(content);
|
|
|
+ if (jsonObj["code"].ToString() != "000000")
|
|
|
+ {
|
|
|
+ return jsonObj["message"].ToString();
|
|
|
+ }
|
|
|
content = jsonObj["data"].ToString();
|
|
|
content = PublicImportDataService.Instance.Decrypt(content);
|
|
|
- if (jsonObj["respCode"].ToString() != "00")
|
|
|
+ JsonData contentObj = JsonMapper.ToObject(content);
|
|
|
+ if (contentObj["respCode"].ToString() != "00")
|
|
|
{
|
|
|
- return jsonObj["respMsg"].ToString();
|
|
|
+ return contentObj["respMsg"].ToString();
|
|
|
}
|
|
|
// }
|
|
|
// else
|