...
|
...
|
@@ -98,9 +98,10 @@ exports.saveMSG = (req, res) => { |
|
|
* 2. 失败情况
|
|
|
*/
|
|
|
exports.fetchOrders = (req, res) => {
|
|
|
let encryptedUid = req.body.encryptedUid;
|
|
|
const uid = req.user.uid || req.query.uid;
|
|
|
const encryptedUid = req.body.encryptedUid;
|
|
|
|
|
|
imApi.fetchOrderList(encryptedUid)
|
|
|
imApi.fetchOrderList(uid, encryptedUid)
|
|
|
.then(result => {
|
|
|
imModel.handleOrderList(result.data, 128, 170);
|
|
|
res.json(result);
|
...
|
...
|
@@ -142,7 +143,8 @@ exports.saveEvalute = (req, res) => { |
|
|
|
|
|
|
|
|
exports.queryGlobalOrder = (req, res) => {
|
|
|
let encryptedUid = req.body.encryptedUid;
|
|
|
const uid = req.user.uid || req.query.uid;
|
|
|
const encryptedUid = req.body.encryptedUid;
|
|
|
|
|
|
let emptyOrder = {
|
|
|
code: 200,
|
...
|
...
|
@@ -150,9 +152,12 @@ exports.queryGlobalOrder = (req, res) => { |
|
|
message: '获取失败'
|
|
|
};
|
|
|
|
|
|
imApi.queryGlobalOrder(encryptedUid)
|
|
|
imApi.queryGlobalOrder(uid, encryptedUid)
|
|
|
.then(result=> {
|
|
|
imModel.handleOrderList(result.data, 128, 170);
|
|
|
if (result.code === 200) {
|
|
|
imModel.handleOrderList(result.data, 128, 170);
|
|
|
}
|
|
|
|
|
|
res.json(result);
|
|
|
}, () => {
|
|
|
res.json(emptyOrder);
|
...
|
...
|
|