|
|
|
@ -5845,7 +5845,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
}]);
|
|
|
|
|
// 修改sub_merchant_id
|
|
|
|
|
app.controller('ModifysubMerchantIdCtrl', ['$scope', '$http', '$uibModal', '$state', 'commonDialog', 'clientMoniker', 'merchantId', 'channel', function ($scope, $http, $uibModal, $state, commonDialog, clientMoniker, merchantId, channel) {
|
|
|
|
|
console.log(merchantId, channel);
|
|
|
|
|
$scope.merchantId = merchantId
|
|
|
|
|
$scope.flag = false
|
|
|
|
|
$scope.confirm = function () {
|
|
|
|
@ -5857,14 +5856,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.flag = false
|
|
|
|
|
commonDialog.alert({ title: 'Error', content: resp.data.message, type: 'error' })
|
|
|
|
|
});
|
|
|
|
|
} else if (channel === 'Alipay') {
|
|
|
|
|
$http.put('/sys/partners/' + clientMoniker + '/ali_sub_merchant_id', { ali_sub_merchant_id: $scope.merchantId }).then(function (resp) {
|
|
|
|
|
$scope.$close();
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
$scope.flag = false
|
|
|
|
|
commonDialog.alert({ title: 'Error', content: resp.data.message, type: 'error' })
|
|
|
|
|
});
|
|
|
|
|
} else if (channel = 'AlipayOnline') {
|
|
|
|
|
} else if (channel === 'Alipay' || channel === 'AlipayOnline') {
|
|
|
|
|
$http.put('/sys/partners/' + clientMoniker + '/ali_sub_merchant_id', { ali_sub_merchant_id: $scope.merchantId }).then(function (resp) {
|
|
|
|
|
$scope.$close();
|
|
|
|
|
}, function (resp) {
|
|
|
|
|