fix operator bug

This commit is contained in:
MaysWind 2019-08-03 02:28:22 +08:00
parent e549b7e3ae
commit c8dd72d151
2 changed files with 6 additions and 6 deletions

View file

@ -93,8 +93,8 @@
contexts[i].callback = function (response) {
results.push(response);
hasSuccess = hasSuccess | response.success;
hasError = hasError | !response.success;
hasSuccess = hasSuccess || response.success;
hasError = hasError || !response.success;
};
promises.push(methodFunc(contexts[i]));

View file

@ -811,8 +811,8 @@
silent: !!silent,
callback: function (response) {
ariaNgCommonService.pushArrayTo(results, response.results);
hasSuccess = hasSuccess | response.hasSuccess;
hasError = hasError | response.hasError;
hasSuccess = hasSuccess || response.hasSuccess;
hasError = hasError || response.hasError;
}
}));
}
@ -823,8 +823,8 @@
silent: !!silent,
callback: function (response) {
ariaNgCommonService.pushArrayTo(results, response.results);
hasSuccess = hasSuccess | response.hasSuccess;
hasError = hasError | response.hasError;
hasSuccess = hasSuccess || response.hasSuccess;
hasError = hasError || response.hasError;
}
}));
}