@ -528,7 +528,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
int authDays = PlatformEnvironment . getEnv ( ) . authDays ( ) ; // 快速自助开通申请有效期
for ( JSONObject partner : partners ) {
String subMerchantId = partner . getString ( "sub_merchant_id" ) ;
if ( subMerchantId ! = null ) {
if ( subMerchantId ! = null ) {
partner . put ( "temp_sub_merchant" , checkSubMerchantIdInCommonPool ( subMerchantId ) ) ;
}
if ( partner . getIntValue ( "approve_result" ) = = 2 ) {
@ -1823,7 +1823,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
List < JSONObject > clients = clientMapper . listChildClients ( partner . getIntValue ( "client_id" ) ) ;
if ( clients . size ( ) > 0 ) {
partner . put ( "level3Clients" , clients ) ;
clients . forEach ( e - > {
clients . forEach ( e - > {
e . put ( "parent_client_moniker" , partner . getString ( "client_moniker" ) ) ;
} ) ;
}
@ -1908,7 +1908,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
JSONObject clientInfo = getClientInfo ( Integer . parseInt ( currentClientId ) ) ;
if ( clientInfo . containsKey ( "parent_client_id" ) ) {
int parentClientId = clientInfo . getIntValue ( "parent_client_id" ) ;
if ( parentClientId ! = client_id & & client_id ! = Integer . parseInt ( currentClientId ) & & ! listLevel3Client ( client_id ) . contains ( parentClientId ) ) {
if ( parentClientId ! = client_id & & client_id ! = Integer . parseInt ( currentClientId ) & & ! listLevel3Client ( client_id ) . contains ( parentClientId ) ) {
throw new Exception ( "partner has no permission" ) ;
}
}
@ -3277,7 +3277,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
gatewaySignInfo . put ( "last_update_date" , new Date ( ) ) ;
merchantSignInfoMapper . insert ( gatewaySignInfo ) ;
}
clientModifySupport . processClientGatewaySignModify ( new SwitchGatewaySignPermissionModify ( account , client . getString ( "client_moniker" ) , "is_valid" , enable_gateway_v2 ) ) ;
clientModifySupport . processClientGatewaySignModify ( new SwitchGatewaySignPermissionModify ( account , client . getString ( "client_moniker" ) , "is_valid" , enable_gateway_v2 ) ) ;
}
@Override
@ -3287,7 +3287,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
if ( client = = null ) {
throw new InvalidShortIdException ( ) ;
}
clientModifySupport . processClientGatewaySignModify ( new SwitchGatewaySignPermissionModify ( account , client . getString ( "client_moniker" ) , "verify_ip" , verify_ip ) ) ;
clientModifySupport . processClientGatewaySignModify ( new SwitchGatewaySignPermissionModify ( account , client . getString ( "client_moniker" ) , "verify_ip" , verify_ip ) ) ;
}
@Override
@ -3298,7 +3298,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
throw new InvalidShortIdException ( ) ;
}
if ( StringUtils . isNotBlank ( ipWhitelistConfig ) ) {
clientModifySupport . processClientGatewaySignModify ( new GatewayInfoModify ( account , client . getString ( "client_moniker" ) , "ip_whitelist" , ipWhitelistConfig , "重新设置IP白名单" ) ) ;
clientModifySupport . processClientGatewaySignModify ( new GatewayInfoModify ( account , client . getString ( "client_moniker" ) , "ip_whitelist" , ipWhitelistConfig , "重新设置IP白名单" ) ) ;
}
}
@ -3311,8 +3311,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
throw new InvalidShortIdException ( ) ;
}
JSONObject key = getRsaKey ( ) ;
clientModifySupport . processClientGatewaySignModify ( new GatewayInfoModify ( account , client . getString ( "client_moniker" ) , "platform_public_key" , key . getString ( "public_key" ) , "重新生成平台公钥" ) ) ;
clientModifySupport . processClientGatewaySignModify ( new GatewayInfoModify ( account , client . getString ( "client_moniker" ) , "platform_private_key" , key . getString ( "private_key" ) , "重新生成平台私钥" ) ) ;
clientModifySupport . processClientGatewaySignModify ( new GatewayInfoModify ( account , client . getString ( "client_moniker" ) , "platform_public_key" , key . getString ( "public_key" ) , "重新生成平台公钥" ) ) ;
clientModifySupport . processClientGatewaySignModify ( new GatewayInfoModify ( account , client . getString ( "client_moniker" ) , "platform_private_key" , key . getString ( "private_key" ) , "重新生成平台私钥" ) ) ;
}
@Override
@ -3653,7 +3653,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
if ( client = = null ) {
throw new InvalidShortIdException ( ) ;
}
return clearingDistributedSurchargeMapper . findSurchargeTransactionsByDetailId ( client . getIntValue ( "client_id" ) , detailId ) ;
return clearingDistributedSurchargeMapper . findSurchargeTransactionsByDetailId ( client . getIntValue ( "client_id" ) , detailId ) ;
}
@Override
@ -4182,27 +4182,27 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
queryGMSJson . put ( "partner" , mch . getPid ( ) ) ;
queryGMSJson . put ( "sign_type" , "MD5" ) ;
queryGMSJson . put ( "_input_charset" , "utf-8" ) ;
queryGMSJson . put ( "timestamp" , DateFormatUtils . format ( System . currentTimeMillis ( ) , "yyyy-MM-dd HH:mm:ss" ) ) ;
queryGMSJson . put ( "timestamp" , DateFormatUtils . format ( System . currentTimeMillis ( ) , "yyyy-MM-dd HH:mm:ss" ) ) ;
queryGMSJson . put ( "secondary_merchant_name" , client . getString ( "company_name" ) ) ;
queryGMSJson . put ( "secondary_merchant_id" , client . getString ( "client_moniker" ) ) ;
queryGMSJson . put ( "store_id" , client . getString ( "client_moniker" ) ) ;
queryGMSJson . put ( "store_name" , client . getString ( "short_name" ) ) ;
queryGMSJson . put ( "store_country" , client . getString ( "country" ) . substring ( 0 , 2 ) ) ;
queryGMSJson . put ( "store_address" , client . getString ( "country" ) + " " + client . getString ( "state" ) + " " + client . getString ( "suburb" ) + " " + client . getString ( "address" ) ) ;
queryGMSJson . put ( "store_country" , client . getString ( "country" ) . substring ( 0 , 2 ) ) ;
queryGMSJson . put ( "store_address" , client . getString ( "country" ) + " " + client . getString ( "state" ) + " " + client . getString ( "suburb" ) + " " + client . getString ( "address" ) ) ;
queryGMSJson . put ( "store_industry" , client . getString ( "alipayindustry" ) ) ;
queryGMSJson . put ( "internal_store_photo" , client . getString ( "company_photo" ) ) ;
queryGMSJson . put ( "external_storefront_photo" , client . getString ( "store_photo" ) ) ;
queryGMSJson . put ( "register_country" , client . getString ( "country" ) . substring ( 0 , 2 ) ) ;
queryGMSJson . put ( "register_address" , client . getString ( "country" ) + " " + client . getString ( "state" ) + " " + client . getString ( "suburb" ) + " " + client . getString ( "address" ) ) ;
queryGMSJson . put ( "register_country" , client . getString ( "country" ) . substring ( 0 , 2 ) ) ;
queryGMSJson . put ( "register_address" , client . getString ( "country" ) + " " + client . getString ( "state" ) + " " + client . getString ( "suburb" ) + " " + client . getString ( "address" ) ) ;
if ( "Company" . equals ( client . getString ( "business_structure" ) ) ) {
queryGMSJson . put ( "secondary_merchant_type" , "ENTERPRISE" ) ;
queryGMSJson . put ( "registration_no" , client . getString ( "acn" ) ) ;
} else {
} else {
queryGMSJson . put ( "secondary_merchant_type" , "INDIVIDUAL" ) ;
queryGMSJson . put ( "representative_name" , client . getString ( "contact_person" ) ) ;
}
queryGMSJson . put ( "contact_no" , client . getString ( "contact_phone" ) ) ;
queryGMSJson . put ( "contact_email" , client . getString ( "contact_email" ) ) ;
queryGMSJson . put ( "contact_no" , client . getString ( "contact_phone" ) ) ;
queryGMSJson . put ( "contact_email" , client . getString ( "contact_email" ) ) ;
return queryGMSJson ;
}
@ -4219,12 +4219,12 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
queryGMSJson . put ( "partner" , mch . getPid ( ) ) ;
queryGMSJson . put ( "sign_type" , "MD5" ) ;
queryGMSJson . put ( "_input_charset" , "utf-8" ) ;
queryGMSJson . put ( "timestamp" , DateFormatUtils . format ( System . currentTimeMillis ( ) , "yyyy-MM-dd HH:mm:ss" ) ) ;
queryGMSJson . put ( "timestamp" , DateFormatUtils . format ( System . currentTimeMillis ( ) , "yyyy-MM-dd HH:mm:ss" ) ) ;
queryGMSJson . put ( "secondary_merchant_name" , client . getString ( "company_name" ) ) ;
queryGMSJson . put ( "secondary_merchant_id" , client . getString ( "client_moniker" ) ) ;
queryGMSJson . put ( "secondary_merchant_industry" , client . getString ( "alipayindustry" ) ) ;
queryGMSJson . put ( "register_country" , client . getString ( "country" ) . substring ( 0 , 2 ) ) ;
queryGMSJson . put ( "register_address" , client . getString ( "country" ) + " " + client . getString ( "state" ) + " " + client . getString ( "suburb" ) + " " + client . getString ( "address" ) ) ;
queryGMSJson . put ( "register_country" , client . getString ( "country" ) . substring ( 0 , 2 ) ) ;
queryGMSJson . put ( "register_address" , client . getString ( "country" ) + " " + client . getString ( "state" ) + " " + client . getString ( "suburb" ) + " " + client . getString ( "address" ) ) ;
JSONObject website = new JSONObject ( ) ;
List < JSONObject > websites = new ArrayList < > ( ) ;
website . put ( "site_type" , "WEB" ) ;
@ -4236,12 +4236,12 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
queryGMSJson . put ( "secondary_merchant_type" , "ENTERPRISE" ) ;
queryGMSJson . put ( "registration_no" , client . getString ( "acn" ) ) ;
queryGMSJson . put ( "shareholder_name" , client . getString ( "contact_person" ) ) ;
} else {
} else {
queryGMSJson . put ( "secondary_merchant_type" , "INDIVIDUAL" ) ;
queryGMSJson . put ( "representative_name" , client . getString ( "contact_person" ) ) ;
}
queryGMSJson . put ( "contact_no" , client . getString ( "contact_phone" ) ) ;
queryGMSJson . put ( "contact_email" , client . getString ( "contact_email" ) ) ;
queryGMSJson . put ( "contact_no" , client . getString ( "contact_phone" ) ) ;
queryGMSJson . put ( "contact_email" , client . getString ( "contact_email" ) ) ;
return queryGMSJson ;
}
@ -4859,7 +4859,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
needCheckParams . put ( "bank_account_no" , bankAccount . getString ( "account_no" ) ) ;
}
List < JSONObject > listRiskySimilarMerchants = riskAttentionMerchantsMapper . listRiskySimilarMerchants ( needCheckParams ) ;
if ( listRiskySimilarMerchants . size ( ) > 0 ) {
if ( ! listRiskySimilarMerchants . isEmpty ( ) ) {
StringBuilder appendStr = new StringBuilder ( ) ;
StringBuilder infoStr = new StringBuilder ( ) ;