|
@@ -131,7 +131,19 @@ public class HuiFuServiceImpl implements HuiFuService {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public HuiFuQueryOrderResult queryOrder(V2TradePaymentScanpayQueryRequest request) throws Exception{
|
|
public HuiFuQueryOrderResult queryOrder(V2TradePaymentScanpayQueryRequest request) throws Exception{
|
|
|
- doInit(getMerConfig());
|
|
|
|
|
|
|
+ if (request.getAppId() != null) {
|
|
|
|
|
+ FsHfpayConfigMapper fsHfpayConfigMapper = SpringUtils.getBean(FsHfpayConfigMapper.class);
|
|
|
|
|
+ FsHfpayConfig fsHfpayConfig = fsHfpayConfigMapper.selectByAppId(request.getAppId());
|
|
|
|
|
+ if (fsHfpayConfig != null) {
|
|
|
|
|
+ //多汇付支付获取配置
|
|
|
|
|
+ doInit(getMerConfig(fsHfpayConfig));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ //多小程序
|
|
|
|
|
+ doInit(getMerConfig());
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ doInit(getMerConfig());
|
|
|
|
|
+ }
|
|
|
Map<String, Object> response = doExecute(request);
|
|
Map<String, Object> response = doExecute(request);
|
|
|
String jsonString = JSONObject.toJSONString(response);
|
|
String jsonString = JSONObject.toJSONString(response);
|
|
|
HuiFuQueryOrderResult huiFuQueryOrderResult = JSON.parseObject(jsonString, HuiFuQueryOrderResult.class);
|
|
HuiFuQueryOrderResult huiFuQueryOrderResult = JSON.parseObject(jsonString, HuiFuQueryOrderResult.class);
|