强制关闭房间
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
shutdown_room_request | ShutdownRoomRequest | 必须 | 请求入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 返回结果 | |
|
1 2 3 4 5 6 7 8 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaCloudgameInteractiveGameRoomShutdownRequest req = new AlibabaCloudgameInteractiveGameRoomShutdownRequest(); AlibabaCloudgameInteractiveGameRoomShutdownRequest.ShutdownRoomRequest obj1 = new AlibabaCloudgameInteractiveGameRoomShutdownRequest.ShutdownRoomRequest(); obj1.setRoomId(1L); obj1.setToken( "xxxx" ); req.setShutdownRoomRequest(obj1); AlibabaCloudgameInteractiveGameRoomShutdownResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | < alibaba_cloudgame_interactive_game_room_shutdown_response > < result > < code >0</ code > < data > < game > < creator >xmagic</ creator > < mix_game_id >N0A6X0JIJGA=</ mix_game_id > < name >超级玛丽</ name > < total_player_num >4</ total_player_num > < player_num >0</ player_num > </ game > < player_list > < open_game_player_d_t_o > < player_index >0</ player_index > < user_id >xmagic</ user_id > </ open_game_player_d_t_o > </ player_list > < room_id >290319</ room_id > < ext_info >{}</ ext_info > </ data > < message >SUCCESS</ message > </ result > </ alibaba_cloudgame_interactive_game_room_shutdown_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|