fix edit rate

master
luoyang 5 years ago
parent 64a751190b
commit b53bba9e2e

@ -2148,6 +2148,11 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
configJson.put("manager_id", manager.getString("manager_id"));
configJson.put("manager_name", manager.getString("username"));
configJson.put("update_time", new Date());
if (StringUtils.equalsIgnoreCase("rpaypmt_card", config.getRateName())) {
JSONObject extParams = configJson.getJSONObject("ext_rates");
extParams.put("domestic_rate_value", config.getRateValue());
configJson.put("ext_rates", extParams.toJSONString());
}
clientRateMapper.updateConfig(configJson);
// if ("Rpay".equals(configJson.getString("rate_name"))) {
// rpayApi.modifySurchargeConfig(client);

@ -3337,7 +3337,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
}, function (resp) {
$scope.ctrl.sending = false;
$scope.errmsg = resp.data.message;
})
});
} else {
$http.post('/sys/partners/' + clientMoniker + '/rates', $scope.rate).then(function () {
$scope.ctrl.sending = false;
@ -3345,7 +3345,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
}, function (resp) {
$scope.ctrl.sending = false;
$scope.errmsg = resp.data.message;
})
});
}
}
}]);

Loading…
Cancel
Save