master
zhangtao 4 years ago
parent 7f8ba7f3df
commit 4d41df91bb

@ -1,9 +1,11 @@
package au.com.royalpay.payment.manage.management.clearing.core.impl; package au.com.royalpay.payment.manage.management.clearing.core.impl;
import au.com.royalpay.payment.core.PaymentApi; import au.com.royalpay.payment.core.PaymentApi;
import au.com.royalpay.payment.core.beans.OrderValidationResult;
import au.com.royalpay.payment.core.exceptions.InvalidShortIdException; import au.com.royalpay.payment.core.exceptions.InvalidShortIdException;
import au.com.royalpay.payment.core.tasksupport.SettlementSupport; import au.com.royalpay.payment.core.tasksupport.SettlementSupport;
import au.com.royalpay.payment.core.utils.ExtParamsUtils; import au.com.royalpay.payment.core.utils.ExtParamsUtils;
import au.com.royalpay.payment.core.validation.domain.ChannelValidationTask;
import au.com.royalpay.payment.manage.management.clearing.core.CleanService; import au.com.royalpay.payment.manage.management.clearing.core.CleanService;
import au.com.royalpay.payment.manage.mappers.log.*; import au.com.royalpay.payment.manage.mappers.log.*;
import au.com.royalpay.payment.manage.mappers.payment.TaskManualSettleMapper; import au.com.royalpay.payment.manage.mappers.payment.TaskManualSettleMapper;
@ -147,6 +149,8 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
private Locker locker; private Locker locker;
@Resource @Resource
private ClientIncrementalMapper clientIncrementalMapper; private ClientIncrementalMapper clientIncrementalMapper;
@Resource
private ChannelValidationTask channelValidationTask;
@Resource @Resource
private ClientDeviceMapper clientDeviceMapper; private ClientDeviceMapper clientDeviceMapper;
@ -1528,14 +1532,14 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
return JSON.parseObject(reportItem.getString("result")); return JSON.parseObject(reportItem.getString("result"));
} }
} }
JSONObject report = paymentApi.validTransactions(dt, fix); OrderValidationResult report = channelValidationTask.validTransactions(dt);
JSONObject log = new JSONObject(); JSONObject log = new JSONObject();
log.put("valid_date", dt); log.put("valid_date", dt);
log.put("create_time", new Date()); log.put("create_time", new Date());
log.put("result", report.toJSONString()); log.put("result", report.getReport().toJSONString());
validationLogMapper.removeByDate(dt); validationLogMapper.removeByDate(dt);
validationLogMapper.save(log); validationLogMapper.save(log);
return report; return JSON.parseObject(log.getString("result"));
} }
@Override @Override

@ -18,6 +18,9 @@ jetty:
multipart: multipart:
max-file-size: 10Mb max-file-size: 10Mb
app: app:
sandbox: true
active:
channels: Wechat,Alipay,AlipayOnline,Gmo,UnionPay,AlipayPlus
crossapp: crossapp:
enable: true enable: true
agreetemplate: agreetemplate:
@ -89,8 +92,9 @@ android:
apple: apple:
message: message:
apns: apns:
file: '' file: src/main/resources/dev.p12
password: '' password: HQeYblIajOb0
saneboxMode: true
customer: customer:
app: app:
appid: customer appid: customer

Binary file not shown.
Loading…
Cancel
Save