fix response obj is null

This commit is contained in:
Jay
2018-08-17 23:15:51 +08:00
parent 8cbffe42bd
commit 3a08cbb1fb
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -23,7 +23,6 @@ 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) {