取消mid加00-

master
dalong306 3 years ago
parent a63def7e73
commit 3f53b494bf

@ -571,16 +571,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
config.put("pid", contract.getPid());
config.put("mid", contract.getMid());
config.put("mcc", contract.getMccCode());
logger.info("=====>mid:"+config.getString("channel")+":"+config.getString("mid"));
} else {
config.put("enable", false);
//aps渠道的默认值展示
if(channelApi.channel()==PayChannel.ALIPAY_APS_CASHIER.getChannelCode()){
config.put("mid", PlatformEnvironment.getEnv().getApsOnlinePrefix()+client.getString("client_moniker"));
}else if(channelApi.channel()==PayChannel.ALIPAY_APS_IN_STORE.getChannelCode()){
config.put("mid", client.getString("client_moniker"));
}
logger.info("=====>mid2:"+config.getString("channel")+":"+config.getString("mid"));
config.put("mid", client.getString("client_moniker"));
}
channelPermissions.put(channelApi.channel().toLowerCase(), config);
} catch (Exception e) {
@ -7191,12 +7185,6 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
mid = mchChannelContractDAO.getMid();
} else {
mid = client.getString("client_moniker");
PayChannel channel = isRetail ? PayChannel.ALIPAY_APS_IN_STORE : PayChannel.ALIPAY_APS_CASHIER;
if (channel == PayChannel.ALIPAY_APS_CASHIER) {
String apsOnlinePrefix = PlatformEnvironment.getEnv().getApsOnlinePrefix() != null ?
PlatformEnvironment.getEnv().getApsOnlinePrefix() : "00-";
mid = apsOnlinePrefix + mid;
}
}
client.put("mid", mid);
AlipayApsMerchantRegister alipayApsMerchantRegister = Optional.ofNullable(merchantChannelApplicationManager.getRegister(AlipayApsMerchantRegister.class)).orElseThrow(() -> new ServerErrorException("No AlipayAps registry found"));

Loading…
Cancel
Save