success方法增加提示信息, fix #138

This commit is contained in:
welefen 2014-11-07 20:55:22 +08:00
parent 1c1f9d3c22
commit ec21088fa2

View File

@ -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;
}