Showing
1 changed file
with
2 additions
and
2 deletions
@@ -141,14 +141,14 @@ const editOrder = (req, res, next) => { | @@ -141,14 +141,14 @@ const editOrder = (req, res, next) => { | ||
141 | const parameter = req.body; | 141 | const parameter = req.body; |
142 | 142 | ||
143 | parameter.uid = uid; | 143 | parameter.uid = uid; |
144 | - parameter.orderCode = crypto.decrypt(config.crypto.common, parameter.orderCode); | 144 | + parameter.orderCode = parseInt(crypto.decrypt(config.crypto.common, parameter.orderCode), 10); |
145 | + | ||
145 | if (!parameter.uid || !parameter.orderCode) { | 146 | if (!parameter.uid || !parameter.orderCode) { |
146 | res.json({ | 147 | res.json({ |
147 | code: '401', | 148 | code: '401', |
148 | message: '请输入合法订单号' | 149 | message: '请输入合法订单号' |
149 | }); | 150 | }); |
150 | } else { | 151 | } else { |
151 | - | ||
152 | orderModel.editOrder(parameter).then(result => { | 152 | orderModel.editOrder(parameter).then(result => { |
153 | res.json(result); | 153 | res.json(result); |
154 | }).catch(next); | 154 | }).catch(next); |
-
Please register or login to post a comment