| | |
| | | } catch (error) { |
| | | throw error; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取副屏最新的版本号Api |
| | | * @returns |
| | | */ |
| | | export const getServiceVersionApi = async(version: string) => { |
| | | try { |
| | | const response = await axios.post(`${apiBaseUrl}/system/version/subscreen/showVersionDiff`, { version }, { |
| | | headers: { |
| | | 'Content-Type': 'application/x-www-form-urlencoded' |
| | | } |
| | | }); |
| | | return response.data; |
| | | } catch (error) { |
| | | throw error; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 推出登录 |
| | | * @param deviceCode |
| | | * @returns |
| | | */ |
| | | export const logoutForSubScreen = async(deviceCode: string) => { |
| | | try { |
| | | const response = await axios.post(`${apiBaseUrl}/user/info/logoutForSubScreen`, { deviceCode }, { |
| | | headers: { |
| | | 'Content-Type': 'application/x-www-form-urlencoded' |
| | | } |
| | | }); |
| | | return response.data |
| | | } catch (error) { |
| | | throw error; |
| | | } |
| | | } |