|
|
|
@ -11,6 +11,7 @@ import au.com.royalpay.payment.tools.codec.AESCrypt;
|
|
|
|
|
import au.com.royalpay.payment.tools.device.DeviceSupport;
|
|
|
|
|
import au.com.royalpay.payment.tools.encryptalgorithm.SignUtils;
|
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
|
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.NotFoundException;
|
|
|
|
|
import au.com.royalpay.payment.tools.mappers.CommonIncrementalChannelMapper;
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
@ -44,6 +45,9 @@ public class RetailRSvcServiceImpl implements RetailRSvcService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject findMchInfoBySourceCode(JSONObject device, String sourceCode) {
|
|
|
|
|
if (device.getString("version").equals("2.12.13") || device.getIntValue("client_id") == 9) {
|
|
|
|
|
throw new NotFoundException();
|
|
|
|
|
}
|
|
|
|
|
String clientType = device.getString("client_type");
|
|
|
|
|
deviceSupport.findRegister(clientType);
|
|
|
|
|
JSONObject svcInfo = commonIncrementalChannelMapper.findIncreamentalChannelBySourceCode(sourceCode);
|
|
|
|
|