|
@@ -191,23 +191,44 @@ namespace PTMedicalInsurance.Business
|
|
|
return -1;
|
|
|
}
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 回调确认
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="inParam"></param>
|
|
|
+ /// <param name="outPar"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public int MobilePayCallback(JObject joEncData, out string outPar)
|
|
|
+ {
|
|
|
+ outPar = string.Empty;
|
|
|
+ string setlInfo = JsonHelper.getDestValue(joEncData, "extData.SETLINFO");
|
|
|
+ if (string.IsNullOrEmpty(setlInfo))
|
|
|
+ {
|
|
|
+ //此时为异步返回结算内容
|
|
|
+ string ordStatus = JsonHelper.getDestValue(joEncData, "ordStas");
|
|
|
+ outPar = JsonHelper.setExceptionJson(0, "移动医保结算", "当前订单状态为:【" + ordStatus + "】,结算成功,但未返回结算明细!").ToString();
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ //设置
|
|
|
+ return ConfirmResult(JObject.Parse(setlInfo), out outPar);
|
|
|
+ }
|
|
|
+
|
|
|
+ public int MobilePayCallback(out string outPar)
|
|
|
+ {
|
|
|
+ if (joParam != null) {
|
|
|
+ return MobilePayCallback(joParam, out outPar);
|
|
|
+ }
|
|
|
+ outPar = JsonHelper.setIrisReturnValue(-1,"移动支付回调,参数错误",null).ToString();
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+
|
|
|
public int MobilePayConfirmSettlement(out string outPar)
|
|
|
{
|
|
|
outPar = "";
|
|
|
try
|
|
|
{
|
|
|
PayStatusQuery(out outPar);
|
|
|
- JObject joEncData = JObject.Parse((outPar));
|
|
|
- string setlInfo = JsonHelper.getDestValue(joEncData, "extData.SETLINFO");
|
|
|
- if (string.IsNullOrEmpty(setlInfo))
|
|
|
- {
|
|
|
- //此时为异步返回结算内容
|
|
|
- string ordStatus = JsonHelper.getDestValue(joEncData, "ordStas");
|
|
|
- outPar = JsonHelper.setExceptionJson(0, "移动医保结算", "当前订单状态为:【"+ordStatus+"】,结算成功,但未返回结算明细!").ToString();
|
|
|
- return 0;
|
|
|
- }
|
|
|
- //设置
|
|
|
- return ConfirmResult(JObject.Parse(setlInfo), out outPar);
|
|
|
+ JObject joEncData = JObject.Parse(outPar);
|
|
|
+ return MobilePayCallback(joEncData, out outPar);
|
|
|
|
|
|
}
|
|
|
catch (Exception ex)
|