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