|
@@ -310,6 +310,10 @@ namespace PTMedicalInsurance.Helper
|
|
|
}
|
|
|
|
|
|
public static string setCenterInpar(string infno, JObject joInput)
|
|
|
+ {
|
|
|
+ return setCenterInpar(infno,joInput,true);
|
|
|
+ }
|
|
|
+ public static string setCenterInpar(string infno, JObject joInput,bool encyptFlag)
|
|
|
{
|
|
|
dynamic Jo = new JObject();
|
|
|
Jo.infno = infno;
|
|
@@ -338,11 +342,7 @@ namespace PTMedicalInsurance.Helper
|
|
|
Jo.cainfo = "";
|
|
|
if (joInput != null)
|
|
|
{
|
|
|
- if (!Utils.LoadEncyptFlag(infno))
|
|
|
- {
|
|
|
- Jo.Add("input", JObject.FromObject(joInput));
|
|
|
- }
|
|
|
- else
|
|
|
+ if (encyptFlag && Utils.LoadEncyptFlag(infno))
|
|
|
{
|
|
|
//新增加密
|
|
|
try
|
|
@@ -357,9 +357,14 @@ namespace PTMedicalInsurance.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- Global.writeLog("加密异常:"+ex.Message);
|
|
|
+ Global.writeLog("加密异常:" + ex.Message);
|
|
|
}
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ // 不要求加密
|
|
|
+ Jo.Add("input", JObject.FromObject(joInput));
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|