public void UpdatePaymentSend(int id, bool isSendOk, string sendUrl, string responseMessage, int sycnRetryTimes) { SPRecordWrapper record = SPRecordWrapper.FindById(id); if (record == null) { return; } if (record.IsIntercept) { return; } if (isSendOk) { record.IsSycnSuccessed = isSendOk; } record.IsSycnToClient = true; record.SycnRetryTimes = sycnRetryTimes; SPRecordWrapper.Update(record); record.ExtendInfo.SSycnDataUrl = sendUrl; record.ExtendInfo.SSycnDataFailedMessage = responseMessage; SPRecordExtendInfoWrapper.Update(record.ExtendInfo); }
public bool CheckPaymentNeedSend(int id) { SPRecordWrapper record = SPRecordWrapper.FindById(id); if (record == null) { return(false); } if (record.IsIntercept) { return(false); } if (record.IsSycnSuccessed) { return(false); } if (record.SycnRetryTimes > 1) { return(false); } return(true); }