public JsResultObject InstantConfirm(int orderId) { if (!this.login()) { return(LoginFailHandler("")); } GetInstantConfirmRequest req = new GetInstantConfirmRequest(); req.RequestHead = this.requestHead; req.OrderId = orderId; GetInstantConfirmResponse res = elongService.InstantConfirm(req); return(InstantConfirmHandler(res)); }
private static JsResultObject InstantConfirmHandler(GetInstantConfirmResponse res) { JsResultObject re = new JsResultObject(); if (res.ResponseHead.ResultCode == ELongApiService.RESULT_CODE_SUCCESS) { re.title = "订单状态查询成功"; re.msg = string.Format("订单状态:{0} ,订单即时确认信息:{1}" , res.InstantConfirmInfo.OrderState , res.InstantConfirmInfo.InstantConfirm ); } else { re.title = "订单状态查询失败"; re.code = JsResultObject.CODE_ERROR; re.msg = string.Format("失败原因:{0}", res.ResponseHead.ResultMessage); } return(re); }
private static JsResultObject InstantConfirmHandler(GetInstantConfirmResponse res) { JsResultObject re = new JsResultObject(); if (res.ResponseHead.ResultCode == ELongApiService.RESULT_CODE_SUCCESS) { re.title = "订单状态查询成功"; re.msg = string.Format("订单状态:{0} ,订单即时确认信息:{1}" , res.InstantConfirmInfo.OrderState , res.InstantConfirmInfo.InstantConfirm ); } else { re.title = "订单状态查询失败"; re.code = JsResultObject.CODE_ERROR; re.msg = string.Format("失败原因:{0}", res.ResponseHead.ResultMessage); } return re; }