opti: 所有success文案换成成功

This commit is contained in:
wenbo.dong 2017-08-29 11:25:50 +08:00
parent 04b5e63a94
commit d3d93e9dbc
4 changed files with 12 additions and 12 deletions

View File

@ -402,7 +402,7 @@ class interfaceColController extends baseController{
// typeid: params.project_id
// });
return ctx.body = yapi.commons.resReturn('success')
return ctx.body = yapi.commons.resReturn('成功!')
}catch(e){
ctx.body = yapi.commons.resReturn(null, 400, e.message)
}

View File

@ -10,7 +10,7 @@ exports.resReturn = (data, num, errmsg) => {
return {
errcode: num,
errmsg: errmsg || 'success',
errmsg: errmsg || '成功!',
data: data
};
};

View File

@ -824,7 +824,7 @@ var interfaceColController = function (_baseController) {
// typeid: params.project_id
// });
return _context8.abrupt('return', ctx.body = _yapi2.default.commons.resReturn('success'));
return _context8.abrupt('return', ctx.body = _yapi2.default.commons.resReturn('成功!'));
case 7:
_context8.prev = 7;

View File

@ -39,7 +39,7 @@ exports.resReturn = function (data, num, errmsg) {
return {
errcode: num,
errmsg: errmsg || 'success',
errmsg: errmsg || '成功!',
data: data
};
};