D黑奴背锅 文档中心
修仙 API背包
POST/business/xiuxian/inventory/buy

从商店购买指定物品。

注意事项

  • 灵石不足返回 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/inventory/buy" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "count": 0  }'
{  "code": 0,  "message": "购买成功",  "data": {    "user_id": "b1_p1",    "gold": 750  },  "time": 1779502528}