Authored by 李奇

接口请求方式post变更

... ... @@ -186,13 +186,7 @@ exports.queryGlobalOrder = (req, res) => {
* cvId 会话id
*/
exports.queryReasons = (req, res) => {
let uid = req.user.uid;
if (!uid) {
uid = req.body.uid;
}
const cvId = req.query.conversationId;
const cvId = req.body.conversationId;
imApi.queryReasons(cvId)
.then(result=> {
... ...
... ... @@ -139,5 +139,5 @@ exports.queryReasons = cvId => {
conversationId: cvId
};
return ImService.get('/api/evalute/queryReasonByConversationId', params);
return ImService.post('/api/evalute/queryReasonByConversationId', params);
};
... ...
... ... @@ -24,7 +24,7 @@ router.post('/im/fetchHistory', chat.fetchHistory);
router.get('/getOrders', chat.getOrders);
router.post('/im/global-list', chat.queryGlobalOrder);
router.post('/im/order-list', chat.fetchOrders);
router.get('/im/queryReasons', chat.queryReasons);
router.post('/im/queryReasons', chat.queryReasons);
router.post('/leavemsg/save.json', chat.saveMSG);
router.post('/im/saveEvalute', chat.saveEvalute);
... ...
... ... @@ -89,7 +89,7 @@ let api = {
// 获取评价原因
queryReasons: function(data) {
return $.get('/service/im/queryReasons', data);
return $.post('/service/im/queryReasons', data);
}
};
... ...