|
|
|
@ -1202,7 +1202,25 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.init = {jsapi: false, gateway: false, offline: false, refund: false, channel: {}};
|
|
|
|
|
$scope.init = {jsapi: false, gateway: false, offline: false, refund: false,common_sub_merchant_id:false, channel: {}};
|
|
|
|
|
$scope.switchCommonSubMerchantId = function () {
|
|
|
|
|
if (!$scope.paymentInfo) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!$scope.init.common_sub_merchant_id) {
|
|
|
|
|
$scope.init.common_sub_merchant_id = true;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/common_sub_merchant_id', {allow: $scope.paymentInfo.common_sub_merchant_id}).then(function () {
|
|
|
|
|
$scope.loadPartnerPaymentInfo();
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({
|
|
|
|
|
title: 'Failed to change common_sub_merchant_id permission status',
|
|
|
|
|
content: resp.data.message,
|
|
|
|
|
type: 'error'
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.toggleChannel = function (channel) {
|
|
|
|
|
if (!channel) {
|
|
|
|
|
return;
|
|
|
|
|