You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-pc/plugins/api/im.js

21 lines
468 B

3 years ago
/*
* @Author: ch
* @Date: 2022-06-12 14:06:01
* @LastEditors: ch
3 years ago
* @LastEditTime: 2022-06-14 21:14:54
3 years ago
* @Description: file content
*/
import {axiosTk} from "../axiosTk";
import { ToAsyncAwait } from "../utils";
3 years ago
import ENV from '../config/env';
3 years ago
const BASE_URL = `${ENV.base_url}/mall/im`;
3 years ago
/**
* 获取soket登录秘钥
*/
export const ApiGetSoketTicket = () => ToAsyncAwait(axiosTk.get(`${BASE_URL}/ticket`, {
params: {
ticketType: 'CONNECT_TICKET'
}
}));