移除英雄碎片转化为英雄经验的接口
This commit is contained in:
parent
ed31dd9ce3
commit
59faa0db53
20
docs/api.md
20
docs/api.md
@ -278,26 +278,6 @@
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### 11. 将专属英雄碎片转化成经验
|
|
||||||
1. Method: POST
|
|
||||||
2. URI: /api/:accountid/hero/toexp/:heroid
|
|
||||||
|
|
||||||
| 字段 | 说明 |
|
|
||||||
| -------- | -------------------------------------- |
|
|
||||||
| accountid | 帐号id |
|
|
||||||
| heroid | 英雄id |
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
3. Response: JSON
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
exp: 1022, // 当前经验值
|
|
||||||
exp_POST: 100, // 本次获得的经验
|
|
||||||
level: 1 // 当前等级
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## 三. 服务端接口列表
|
## 三. 服务端接口列表
|
||||||
|
|
||||||
|
@ -53,10 +53,4 @@ export default class HeroController extends BaseController {
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@router('post /api/:accountid/hero/toexp/:heroid')
|
|
||||||
async shardToExp(req: any) {
|
|
||||||
let account = req.user;
|
|
||||||
let {heroid} = req.params;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user