Authored by 李奇

接口请求方式post变更

@@ -186,13 +186,7 @@ exports.queryGlobalOrder = (req, res) => { @@ -186,13 +186,7 @@ exports.queryGlobalOrder = (req, res) => {
186 * cvId 会话id 186 * cvId 会话id
187 */ 187 */
188 exports.queryReasons = (req, res) => { 188 exports.queryReasons = (req, res) => {
189 - let uid = req.user.uid;  
190 -  
191 - if (!uid) {  
192 - uid = req.body.uid;  
193 - }  
194 -  
195 - const cvId = req.query.conversationId; 189 + const cvId = req.body.conversationId;
196 190
197 imApi.queryReasons(cvId) 191 imApi.queryReasons(cvId)
198 .then(result=> { 192 .then(result=> {
@@ -139,5 +139,5 @@ exports.queryReasons = cvId => { @@ -139,5 +139,5 @@ exports.queryReasons = cvId => {
139 conversationId: cvId 139 conversationId: cvId
140 }; 140 };
141 141
142 - return ImService.get('/api/evalute/queryReasonByConversationId', params); 142 + return ImService.post('/api/evalute/queryReasonByConversationId', params);
143 }; 143 };
@@ -24,7 +24,7 @@ router.post('/im/fetchHistory', chat.fetchHistory); @@ -24,7 +24,7 @@ router.post('/im/fetchHistory', chat.fetchHistory);
24 router.get('/getOrders', chat.getOrders); 24 router.get('/getOrders', chat.getOrders);
25 router.post('/im/global-list', chat.queryGlobalOrder); 25 router.post('/im/global-list', chat.queryGlobalOrder);
26 router.post('/im/order-list', chat.fetchOrders); 26 router.post('/im/order-list', chat.fetchOrders);
27 -router.get('/im/queryReasons', chat.queryReasons); 27 +router.post('/im/queryReasons', chat.queryReasons);
28 router.post('/leavemsg/save.json', chat.saveMSG); 28 router.post('/leavemsg/save.json', chat.saveMSG);
29 router.post('/im/saveEvalute', chat.saveEvalute); 29 router.post('/im/saveEvalute', chat.saveEvalute);
30 30
@@ -89,7 +89,7 @@ let api = { @@ -89,7 +89,7 @@ let api = {
89 89
90 // 获取评价原因 90 // 获取评价原因
91 queryReasons: function(data) { 91 queryReasons: function(data) {
92 - return $.get('/service/im/queryReasons', data); 92 + return $.post('/service/im/queryReasons', data);
93 } 93 }
94 }; 94 };
95 95