Skip to content

Commit

Permalink
fix: 客户端id不能默认1
Browse files Browse the repository at this point in the history
  • Loading branch information
XasYer committed Dec 25, 2024
1 parent 846e38e commit 7066b3b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions models/api/IClientCommService.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function GetAllClientLogonInfo (accessToken) {
/**
* 获得客户端的游戏列表 需要有已登录的客户端实例
* @param {string} accessToken
* @param {number} clientInstanceid 第几个客户端 默认1
* @param {number} clientInstanceid 客户端id
* @returns {Promise<{
* bytes_available: string,
* apps: {
Expand Down Expand Up @@ -64,7 +64,7 @@ export async function GetAllClientLogonInfo (accessToken) {
* refetch_interval_sec_updating: number,
* }|undefined>}
*/
export async function GetClientAppList (accessToken, clientInstanceid = 1) {
export async function GetClientAppList (accessToken, clientInstanceid) {
return utils.request.get('IClientCommService/GetClientAppList/v1', {
params: {
access_token: accessToken,
Expand All @@ -79,7 +79,7 @@ export async function GetClientAppList (accessToken, clientInstanceid = 1) {
/**
* 获得客户端的信息 需要有已登录的客户端实例
* @param {string} accessToken
* @param {number} clientInstanceid 第几个客户端 默认1
* @param {number} clientInstanceid 客户端id
* @returns {Promise<{
* package_version: number
* os: string
Expand All @@ -92,7 +92,7 @@ export async function GetClientAppList (accessToken, clientInstanceid = 1) {
* local_users: number[],
* }|undefined>}
*/
export async function GetClientInfo (accessToken, clientInstanceid = 1) {
export async function GetClientInfo (accessToken, clientInstanceid) {
return utils.request.get('IClientCommService/GetClientInfo/v1', {
params: {
access_token: accessToken,
Expand All @@ -104,14 +104,14 @@ export async function GetClientInfo (accessToken, clientInstanceid = 1) {
/**
* 获得客户端的信息 需要有已登录的客户端实例
* @param {string} accessToken
* @param {number} clientInstanceid 第几个客户端 默认1
* @param {number} clientInstanceid 客户端id
* @returns {Promise<{
* package_version: number
* os: string
* machine_name: string
* }>}
*/
export async function GetClientLogonInfo (accessToken, clientInstanceid = 1) {
export async function GetClientLogonInfo (accessToken, clientInstanceid) {
return utils.request.get('IClientCommService/GetClientInfo/v1', {
params: {
access_token: accessToken,
Expand All @@ -124,10 +124,10 @@ export async function GetClientLogonInfo (accessToken, clientInstanceid = 1) {
* 让客户端直接下载游戏
* @param {string} accessToken
* @param {number} appid
* @param {number} clientInstanceid 第几个客户端 默认1
* @param {number} clientInstanceid 客户端id
* @returns {Promise<undefined>}
*/
export async function InstallClientApp (accessToken, appid, clientInstanceid = 1) {
export async function InstallClientApp (accessToken, appid, clientInstanceid) {
return utils.request.post('IClientCommService/InstallClientApp/v1', {
params: {
access_token: accessToken,
Expand All @@ -141,10 +141,10 @@ export async function InstallClientApp (accessToken, appid, clientInstanceid = 1
* 让客户端启动游戏
* @param {string} accessToken
* @param {number} appid
* @param {number} clientInstanceid 第几个客户端 默认1
* @param {number} clientInstanceid 客户端id
* @returns {Promise<undefined>}
*/
export async function LaunchClientApp (accessToken, appid, clientInstanceid = 1) {
export async function LaunchClientApp (accessToken, appid, clientInstanceid) {
return utils.request.post('IClientCommService/LaunchClientApp/v1', {
params: {
access_token: accessToken,
Expand All @@ -159,10 +159,10 @@ export async function LaunchClientApp (accessToken, appid, clientInstanceid = 1)
* @param {string} accessToken
* @param {number} appid
* @param {boolean} download true: 恢复下载 false: 暂停下载 默认true
* @param {number} clientInstanceid 第几个客户端 默认1
* @param {number} clientInstanceid 客户端id
* @returns {Promise<undefined>}
*/
export async function SetClientAppUpdateState (accessToken, appid, download = true, clientInstanceid = 1) {
export async function SetClientAppUpdateState (accessToken, appid, download = true, clientInstanceid) {
return utils.request.post('IClientCommService/SetClientAppUpdateState/v1', {
params: {
access_token: accessToken,
Expand All @@ -177,10 +177,10 @@ export async function SetClientAppUpdateState (accessToken, appid, download = tr
* 让客户端删除指定的游戏
* @param {string} accessToken
* @param {number} appid
* @param {number} clientInstanceid 第几个客户端 默认1
* @param {number} clientInstanceid 客户端id
* @returns {Promise<undefined>}
*/
export async function UninstallClientApp (accessToken, appid, clientInstanceid = 1) {
export async function UninstallClientApp (accessToken, appid, clientInstanceid) {
return utils.request.post('IClientCommService/UninstallClientApp/v1', {
params: {
access_token: accessToken,
Expand Down

0 comments on commit 7066b3b

Please sign in to comment.