chat.js 637 B

12345678910111213141516171819202122
  1. import http from '../plugins/http';
  2. // 需求管家自动回复
  3. function adminAutoReply(userId) {
  4. return http.http.post('/user/getAdmin').then(res => {
  5. return http.http.post(
  6. '/message/save',
  7. {
  8. sendUserId: res,
  9. receiveUserId: userId,
  10. content: '管家已收到您的消息,稍后会有专人与您联系,请您保持手机畅通哦!'
  11. },
  12. {
  13. header: {
  14. 'Content-Type': 'application/json'
  15. }
  16. }
  17. );
  18. });
  19. }
  20. export { adminAutoReply };