...
|
...
|
@@ -30,8 +30,7 @@ let urls = { |
|
|
* @return { Object } 最近10条订单
|
|
|
*/
|
|
|
const getLastTenOrders = (encryptedUid) => {
|
|
|
return api.get(urls.lastTen, {
|
|
|
method: '',
|
|
|
return api.post(urls.lastTen, {
|
|
|
encryptedUid
|
|
|
});
|
|
|
};
|
...
|
...
|
@@ -42,9 +41,7 @@ const getLastTenOrders = (encryptedUid) => { |
|
|
* @return { Object } 问答列表
|
|
|
*/
|
|
|
const getQas = () => {
|
|
|
return api.get(urls.qas, {
|
|
|
method: ''
|
|
|
});
|
|
|
return api.post(urls.qas, {});
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -54,7 +51,6 @@ const getQas = () => { |
|
|
*/
|
|
|
const getCsSetting = (type) => {
|
|
|
return api.get(urls.csSetting, {
|
|
|
method: '',
|
|
|
type
|
|
|
});
|
|
|
};
|
...
|
...
|
@@ -66,9 +62,8 @@ const getCsSetting = (type) => { |
|
|
* @return { Array } 历史聊天记录
|
|
|
*/
|
|
|
const getMsgHistory = (encryptedUid) => {
|
|
|
return api.get(urls.msgHistory, {
|
|
|
encryptedUid,
|
|
|
method: ''
|
|
|
return api.post(urls.msgHistory, {
|
|
|
encryptedUid
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
|