Merge branch 'hotfix' into develop

master
wangning 7 years ago
commit 5b00ee1810

@ -93,6 +93,7 @@ public class ClientContractServiceImpl implements ClientContractService {
record.put("expiry_date", DateUtils.addYears(now, 1)); record.put("expiry_date", DateUtils.addYears(now, 1));
record.put("sign_channel", channel); record.put("sign_channel", channel);
record.put("signatory", account.getString("display_name")); record.put("signatory", account.getString("display_name"));
contract = record;
clientsContractMapper.save(record); clientsContractMapper.save(record);
} }

@ -42,6 +42,9 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
}) })
} }
connectWebSocket(); connectWebSocket();
if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) {
$scope.getAgStatus();
}
}, function (resp) { }, function (resp) {
if (resp.status == 403) { if (resp.status == 403) {
location.href = 'login.html?f=' + encodeURIComponent(location.href); location.href = 'login.html?f=' + encodeURIComponent(location.href);
@ -131,9 +134,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
}); });
}; };
if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) {
$scope.getAgStatus();
}
$scope.refundNotice = {counts: 0}; $scope.refundNotice = {counts: 0};
$scope.openRefundNotice = false; $scope.openRefundNotice = false;
$scope.showRefundNotice = function () { $scope.showRefundNotice = function () {

@ -55,10 +55,10 @@ $(function () {
method: 'GET', method: 'GET',
dataType: 'text', dataType: 'text',
success: function (data) { success: function (data) {
if (data > 0) { // if (data > 0) {
$('.points-dialog .points-value').html('+ ' + data); // $('.points-dialog .points-value').html('+ ' + data);
$('.points-dialog').removeClass('hide'); // $('.points-dialog').removeClass('hide');
} // }
}, error: function () { }, error: function () {
} }

Loading…
Cancel
Save