diff --git a/lib/Lib/Core/Controller.js b/lib/Lib/Core/Controller.js index 489c63dd..e48dff78 100644 --- a/lib/Lib/Core/Controller.js +++ b/lib/Lib/Core/Controller.js @@ -428,8 +428,8 @@ module.exports = Class(function() { * @param {[type]} data [description] * @return {[type]} [description] */ - success: function(data){ - var obj = getObject([C('error_no_key'), C('error_msg_key')], [0, '']); + success: function(data, message){ + var obj = getObject([C('error_no_key'), C('error_msg_key')], [0, message || '']); if (data !== undefined) { obj.data = data; }