change get opay setting api response struct

This commit is contained in:
Jay 2018-08-22 22:11:43 +08:00
parent 0eeb9b49a2
commit d2cfcac05f

View File

@ -108,8 +108,9 @@ r.get('/channel/:chid/opay/setting', checkSession, getChannelList, hasChannel('c
text, text,
values values
}) })
c.obj = resObject('Success', { c.obj = resObject('Success', {
list: result.rows setting: result.rowCount === 0 ? {} : result.rows[0]
}) })
}) })