This commit is contained in:
Jay 2018-08-17 23:12:57 +08:00
parent 989ae620b3
commit 8cbffe42bd

View File

@ -23,6 +23,7 @@ r.use(async (c, n) => {
} catch (err) {
console.log(err)
obj = resObject(err instanceof APIError ? err.resKey : 'InternalError', err.apiMsg || null, err.msgCode || null)
console.log(obj)
}
if (Object.keys(c.obj).length > 0 && 'status' in c.obj && 'obj' in c.obj) {