fix(score): do not log score if value is 0

This commit is contained in:
OldHawk
2018-05-08 15:18:57 +08:00
parent ff54da383e
commit 0795967063

View File

@@ -24,7 +24,7 @@ var mtDebug = require(path.resolve('./config/lib/debug'));
*/
module.exports.update = function (req, user, action, value, writeLog = true) {
var v = value || action.value || 0;
mtDebug.info('scoreUpdate: score = ' + score);
mtDebug.info('scoreUpdate: value = ' + v);
if (action.enable && v !== 0) {
if (user) {