|
|
|
@ -425,7 +425,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
client.put("level2_client", 1);
|
|
|
|
client.put("level2_client", 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//gateway V2
|
|
|
|
//gateway V2
|
|
|
|
JSONObject partnerGatewaySign = merchantSignInfoMapper.findClientSign(client.getIntValue("client_id"));
|
|
|
|
JSONObject partnerGatewaySign = merchantSignInfoMapper.findClientSign(client.getString("client_moniker"));
|
|
|
|
if (partnerGatewaySign == null) {
|
|
|
|
if (partnerGatewaySign == null) {
|
|
|
|
client.put("enable_gateway_version2", false);
|
|
|
|
client.put("enable_gateway_version2", false);
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
@ -3231,11 +3231,11 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
if (client == null) {
|
|
|
|
if (client == null) {
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
JSONObject gatewaySignInfo = merchantSignInfoMapper.findClientSign(account.getIntValue("client_id"));
|
|
|
|
JSONObject gatewaySignInfo = merchantSignInfoMapper.findClientSign(client.getString("client_moniker"));
|
|
|
|
if (gatewaySignInfo == null) {
|
|
|
|
if (gatewaySignInfo == null) {
|
|
|
|
JSONObject key = getRsaKey();
|
|
|
|
JSONObject key = getRsaKey();
|
|
|
|
gatewaySignInfo = new JSONObject();
|
|
|
|
gatewaySignInfo = new JSONObject();
|
|
|
|
gatewaySignInfo.put("client_id", account.getIntValue("client_id"));
|
|
|
|
gatewaySignInfo.put("client_moniker", client.getIntValue("client_moniker"));
|
|
|
|
gatewaySignInfo.put("platform_public_key", key.getString("public_key"));
|
|
|
|
gatewaySignInfo.put("platform_public_key", key.getString("public_key"));
|
|
|
|
gatewaySignInfo.put("platform_private_key", key.getString("private_key"));
|
|
|
|
gatewaySignInfo.put("platform_private_key", key.getString("private_key"));
|
|
|
|
gatewaySignInfo.put("is_valid", 0);
|
|
|
|
gatewaySignInfo.put("is_valid", 0);
|
|
|
|
|