|
|
@ -1958,6 +1958,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.saveSubMerchantId = function () {
|
|
|
|
$scope.saveSubMerchantId = function () {
|
|
|
|
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/payment_config', {sub_merchant_id: $scope.paymentInfo.sub_merchant_id}).then(function (resp) {
|
|
|
|
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/payment_config', {sub_merchant_id: $scope.paymentInfo.sub_merchant_id}).then(function (resp) {
|
|
|
|
$scope.refreshWechatInstitutionMerchantId();
|
|
|
|
$scope.refreshWechatInstitutionMerchantId();
|
|
|
|
|
|
|
|
$scope.ctrl.editSubMerchant = false;
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'})
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -1965,8 +1966,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
|
|
|
|
|
|
|
$scope.refreshWechatInstitutionMerchantId = function () {
|
|
|
|
$scope.refreshWechatInstitutionMerchantId = function () {
|
|
|
|
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/wechat_institution_merchant_id', {wechat_institution_merchant_id: $scope.paymentInfo.wechat_institution_merchant_id}).then(function (resp) {
|
|
|
|
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/wechat_institution_merchant_id', {wechat_institution_merchant_id: $scope.paymentInfo.wechat_institution_merchant_id}).then(function (resp) {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
$scope.loadPartnerPaymentInfo();
|
|
|
|
$scope.loadPartnerPaymentInfo();
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'})
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|