|
|
|
@ -11,7 +11,6 @@ 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;
|
|
|
|
@ -49,7 +48,8 @@ public class RetailRSvcServiceImpl implements RetailRSvcService {
|
|
|
|
|
deviceSupport.findRegister(clientType);
|
|
|
|
|
JSONObject clientConfig = clientConfigMapper.find(device.getIntValue("client_id"));
|
|
|
|
|
if (!debug && !clientConfig.getBooleanValue("geek_shop_status") && device.getIntValue("client_id")==9) {
|
|
|
|
|
throw new NotFoundException();
|
|
|
|
|
// throw new NotFoundException();
|
|
|
|
|
return new JSONObject();
|
|
|
|
|
}
|
|
|
|
|
JSONObject svcInfo = commonIncrementalChannelMapper.findIncreamentalChannelBySourceCode(sourceCode);
|
|
|
|
|
if (svcInfo == null || StringUtils.isEmpty(svcInfo.getString("channel_pub_key"))
|
|
|
|
|