支付相关
This commit is contained in:
@@ -1032,15 +1032,16 @@ public class MerchantController {
|
||||
}
|
||||
MerchantBaseInfo baseInfo = queryMerchantBaseInfoList.get(0);
|
||||
// 全局电子围栏和单商户电子围栏判定
|
||||
if (!commonSwitchService.allowEcdemicPay() && !storeInfo.allowEcdemicPay()) {
|
||||
// 不允许异地支付的时候需要校验ip和商户所在城市
|
||||
try {
|
||||
merchantService.checkPayLocation(request, baseInfo);
|
||||
} catch (PayRiskException e) {
|
||||
model.addAttribute("error", e.getMessage());
|
||||
return view;
|
||||
}
|
||||
}
|
||||
//TODO 先暂时可以异地支付
|
||||
// if (!commonSwitchService.allowEcdemicPay() && !storeInfo.allowEcdemicPay()) {
|
||||
// // 不允许异地支付的时候需要校验ip和商户所在城市
|
||||
// try {
|
||||
// merchantService.checkPayLocation(request, baseInfo);
|
||||
// } catch (PayRiskException e) {
|
||||
// model.addAttribute("error", e.getMessage());
|
||||
// return view;
|
||||
// }
|
||||
// }
|
||||
model.addAttribute("merchantCode", baseInfo.getMerchantCode());
|
||||
model.addAttribute("userAppId", userApp.getUserId());
|
||||
model.addAttribute("storeId", storeInfo.getStoreId());
|
||||
|
||||
Reference in New Issue
Block a user