|
|
|
@ -2487,14 +2487,25 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
// $scope.init.channel[channel] = true
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
if ($scope.paymentInfo.alipay_cn_switch) {
|
|
|
|
|
commonDialog.alert({
|
|
|
|
|
title: 'ERROR',
|
|
|
|
|
content: "Please switch AlipayCN to Alipay channel, and then close Alipay+(APS) channel",
|
|
|
|
|
type: 'error',
|
|
|
|
|
})
|
|
|
|
|
$scope.loadPartnerPaymentInfo()
|
|
|
|
|
return;
|
|
|
|
|
if($scope.paymentInfo.aps_config_id){
|
|
|
|
|
if(channel == 'alipay' && !$scope.paymentInfo.alipay_cn_switch){
|
|
|
|
|
commonDialog.alert({
|
|
|
|
|
title: 'ERROR',
|
|
|
|
|
content: "Please switch AlipayCN to Alipay channel, and then close Alipay channel",
|
|
|
|
|
type: 'error',
|
|
|
|
|
})
|
|
|
|
|
$scope.loadPartnerPaymentInfo()
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (channel == 'alipayaps' && $scope.paymentInfo.alipay_cn_switch) {
|
|
|
|
|
commonDialog.alert({
|
|
|
|
|
title: 'ERROR',
|
|
|
|
|
content: "Please switch AlipayCN to Alipay channel, and then close Alipay+(APS) channel",
|
|
|
|
|
type: 'error',
|
|
|
|
|
})
|
|
|
|
|
$scope.loadPartnerPaymentInfo()
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$scope.getComplianceInfo()
|
|
|
|
|
if ($scope.paymentInfo['enable_wechat'] && channel == 'wechat' && $scope.paymentInfo.open_status == 5 && info.length > 0) {
|
|
|
|
|