|
|
@ -47,8 +47,9 @@ public class RetailRSvcServiceImpl implements RetailRSvcService {
|
|
|
|
String clientType = device.getString("client_type");
|
|
|
|
String clientType = device.getString("client_type");
|
|
|
|
deviceSupport.findRegister(clientType);
|
|
|
|
deviceSupport.findRegister(clientType);
|
|
|
|
JSONObject clientConfig = clientConfigMapper.find(device.getIntValue("client_id"));
|
|
|
|
JSONObject clientConfig = clientConfigMapper.find(device.getIntValue("client_id"));
|
|
|
|
if (!debug && !clientConfig.getBooleanValue("geek_shop_status")) {
|
|
|
|
if (!debug && !clientConfig.getBooleanValue("geek_shop_status") && device.getIntValue("client_id")==9) {
|
|
|
|
throw new BadRequestException("商户未开店");
|
|
|
|
// throw new NotFoundException();
|
|
|
|
|
|
|
|
return new JSONObject();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
JSONObject svcInfo = commonIncrementalChannelMapper.findIncreamentalChannelBySourceCode(sourceCode);
|
|
|
|
JSONObject svcInfo = commonIncrementalChannelMapper.findIncreamentalChannelBySourceCode(sourceCode);
|
|
|
|
if (svcInfo == null || StringUtils.isEmpty(svcInfo.getString("channel_pub_key"))
|
|
|
|
if (svcInfo == null || StringUtils.isEmpty(svcInfo.getString("channel_pub_key"))
|
|
|
|