From ec21088fa2a53e5cef11bb13c68ddfb507ce5da3 Mon Sep 17 00:00:00 2001 From: welefen Date: Fri, 7 Nov 2014 20:55:22 +0800 Subject: [PATCH] =?UTF-8?q?success=E6=96=B9=E6=B3=95=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF,=20fix=20#138?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Lib/Core/Controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }