修仙 API战斗
POST
/business/xiuxian/combat/duel向其他玩家发起决斗,可设置赌注。
注意事项
- 决斗冷却中返回 code=1,message='角色当前状态无法执行该操作'。
- 灵石不足返回 code=1,message='修仙资源不足'。
- 目标玩家不存在或未创建角色返回相应错误。
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/business/xiuxian/combat/duel" \ -H "Content-Type: application/json" \ -d '{ "target_business_user_id": 0 }'{ "code": 0, "message": "决斗完成", "data": { "winner": "b1_p1", "loser": "b1_p2", "wager": 100, "rounds": 3 }, "time": 1779502528}