D黑奴背锅 文档中心
修仙 API世界
POST/business/xiuxian/world/plant_spirit_farm

在灵田中种植作物。

注意事项

  • 无灵田返回 code=1,message='修仙数据不存在'。
  • 已种植返回 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/world/plant_spirit_farm" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "count": 0  }'
{  "code": 0,  "message": "种植成功",  "data": {    "planted": {      "name": "灵草",      "count": 5    }  },  "time": 1779502528}