292 lines
8.7 KiB
PHP
292 lines
8.7 KiB
PHP
<?php
|
|
|
|
class NHeroDoc
|
|
{
|
|
|
|
/**
|
|
* @api {GET} /webapp/index.php?c=NHero&a=addItemToDB 获取抽奖信息-新
|
|
* @apiPermission login
|
|
* @apiGroup NHero
|
|
* @apiUse CommonParam
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* {
|
|
* "errcode": 0, //错误码
|
|
* "errmsg": "", //错误描述
|
|
* "draw_uuid": "", //抽奖唯一id
|
|
* "free_times": 0, //免费次数
|
|
* "video_times": 0, //看视频次数
|
|
* "item_list": //道具列表
|
|
* [
|
|
* {
|
|
* "item_id": 0, //道具id
|
|
* "item_num": 0, //道具数量
|
|
* "quality": 0, //道具品质
|
|
* "time": 0, //抽取时间
|
|
* "status": 0, //状态
|
|
* }
|
|
* ]
|
|
* }
|
|
*/
|
|
|
|
/**
|
|
* @api {GET} /webapp/index.php?c=NHero&a=getAllHero 获取抽奖信息-新
|
|
* @apiPermission login
|
|
* @apiGroup NHero
|
|
* @apiUse CommonParam
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* {
|
|
* "errcode": 0, //错误码
|
|
* "errmsg": "", //错误描述
|
|
* "data":
|
|
* [
|
|
* {
|
|
* "id": "30100",
|
|
* "lv": "1",
|
|
* "skinid": "30101",
|
|
* "skill1_lv1": "1",
|
|
* "skill1_lv2": "1",
|
|
* "yokeexp": "0",
|
|
* "yoketotalexp": "0"
|
|
* }
|
|
* ]
|
|
* }
|
|
*/
|
|
|
|
/**
|
|
* @api {GET} /webapp/index.php?c=NHero&a=getHeroInfoByID 获取抽奖信息-新
|
|
* @apiPermission login
|
|
* @apiGroup NHero
|
|
* @apiUse CommonParam
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* {
|
|
* "errcode": 0, //错误码
|
|
* "errmsg": "", //错误描述
|
|
* "draw_uuid": "", //抽奖唯一id
|
|
* "free_times": 0, //免费次数
|
|
* "video_times": 0, //看视频次数
|
|
* "item_list": //道具列表
|
|
* [
|
|
* {
|
|
* "item_id": 0, //道具id
|
|
* "item_num": 0, //道具数量
|
|
* "quality": 0, //道具品质
|
|
* "time": 0, //抽取时间
|
|
* "status": 0, //状态
|
|
* }
|
|
* ]
|
|
* }
|
|
*/
|
|
|
|
/**
|
|
* @api {GET} /webapp/index.php?c=NHero&a=getYokeItemInfo 获取抽奖信息-新
|
|
* @apiPermission login
|
|
* @apiGroup NHero
|
|
* @apiUse CommonParam
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* {
|
|
* "errcode": 0, //错误码
|
|
* "errmsg": "", //错误描述
|
|
* "draw_uuid": "", //抽奖唯一id
|
|
* "free_times": 0, //免费次数
|
|
* "video_times": 0, //看视频次数
|
|
* "item_list": //道具列表
|
|
* [
|
|
* {
|
|
* "item_id": 0, //道具id
|
|
* "item_num": 0, //道具数量
|
|
* "quality": 0, //道具品质
|
|
* "time": 0, //抽取时间
|
|
* "status": 0, //状态
|
|
* }
|
|
* ]
|
|
* }
|
|
*/
|
|
|
|
/**
|
|
* @api {GET} /webapp/index.php?c=NHero&a=changeSkin 获取抽奖信息-新
|
|
* @apiPermission login
|
|
* @apiGroup NHero
|
|
* @apiUse CommonParam
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* {
|
|
* "errcode": 0, //错误码
|
|
* "errmsg": "", //错误描述
|
|
* "draw_uuid": "", //抽奖唯一id
|
|
* "free_times": 0, //免费次数
|
|
* "video_times": 0, //看视频次数
|
|
* "item_list": //道具列表
|
|
* [
|
|
* {
|
|
* "item_id": 0, //道具id
|
|
* "item_num": 0, //道具数量
|
|
* "quality": 0, //道具品质
|
|
* "time": 0, //抽取时间
|
|
* "status": 0, //状态
|
|
* }
|
|
* ]
|
|
* }
|
|
*/
|
|
|
|
/**
|
|
* @api {GET} /webapp/index.php?c=NHero&a=changeSkin 获取抽奖信息-新
|
|
* @apiPermission login
|
|
* @apiGroup NHero
|
|
* @apiUse CommonParam
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* {
|
|
* "errcode": 0, //错误码
|
|
* "errmsg": "", //错误描述
|
|
* "draw_uuid": "", //抽奖唯一id
|
|
* "free_times": 0, //免费次数
|
|
* "video_times": 0, //看视频次数
|
|
* "item_list": //道具列表
|
|
* [
|
|
* {
|
|
* "item_id": 0, //道具id
|
|
* "item_num": 0, //道具数量
|
|
* "quality": 0, //道具品质
|
|
* "time": 0, //抽取时间
|
|
* "status": 0, //状态
|
|
* }
|
|
* ]
|
|
* }
|
|
*/
|
|
|
|
/**
|
|
* @api {GET} /webapp/index.php?c=NHero&a=buySkin 获取抽奖信息-新
|
|
* @apiPermission login
|
|
* @apiGroup NHero
|
|
* @apiUse CommonParam
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* {
|
|
* "errcode": 0, //错误码
|
|
* "errmsg": "", //错误描述
|
|
* "draw_uuid": "", //抽奖唯一id
|
|
* "free_times": 0, //免费次数
|
|
* "video_times": 0, //看视频次数
|
|
* "item_list": //道具列表
|
|
* [
|
|
* {
|
|
* "item_id": 0, //道具id
|
|
* "item_num": 0, //道具数量
|
|
* "quality": 0, //道具品质
|
|
* "time": 0, //抽取时间
|
|
* "status": 0, //状态
|
|
* }
|
|
* ]
|
|
* }
|
|
*/
|
|
|
|
/**
|
|
* @api {GET} /webapp/index.php?c=NHero&a=buyHero 获取抽奖信息-新
|
|
* @apiPermission login
|
|
* @apiGroup NHero
|
|
* @apiUse CommonParam
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* {
|
|
* "errcode": 0, //错误码
|
|
* "errmsg": "", //错误描述
|
|
* "draw_uuid": "", //抽奖唯一id
|
|
* "free_times": 0, //免费次数
|
|
* "video_times": 0, //看视频次数
|
|
* "item_list": //道具列表
|
|
* [
|
|
* {
|
|
* "item_id": 0, //道具id
|
|
* "item_num": 0, //道具数量
|
|
* "quality": 0, //道具品质
|
|
* "time": 0, //抽取时间
|
|
* "status": 0, //状态
|
|
* }
|
|
* ]
|
|
* }
|
|
*/
|
|
|
|
/**
|
|
* @api {GET} /webapp/index.php?c=NHero&a=getAllHeroSkinByID 获取抽奖信息-新
|
|
* @apiPermission login
|
|
* @apiGroup NHero
|
|
* @apiUse CommonParam
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* {
|
|
* "errcode": 0, //错误码
|
|
* "errmsg": "", //错误描述
|
|
* "draw_uuid": "", //抽奖唯一id
|
|
* "free_times": 0, //免费次数
|
|
* "video_times": 0, //看视频次数
|
|
* "item_list": //道具列表
|
|
* [
|
|
* {
|
|
* "item_id": 0, //道具id
|
|
* "item_num": 0, //道具数量
|
|
* "quality": 0, //道具品质
|
|
* "time": 0, //抽取时间
|
|
* "status": 0, //状态
|
|
* }
|
|
* ]
|
|
* }
|
|
*/
|
|
|
|
/**
|
|
* @api {GET} /webapp/index.php?c=NHero&a=skillLvUp 获取抽奖信息-新
|
|
* @apiPermission login
|
|
* @apiGroup NHero
|
|
* @apiUse CommonParam
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* {
|
|
* "errcode": 0, //错误码
|
|
* "errmsg": "", //错误描述
|
|
* "draw_uuid": "", //抽奖唯一id
|
|
* "free_times": 0, //免费次数
|
|
* "video_times": 0, //看视频次数
|
|
* "item_list": //道具列表
|
|
* [
|
|
* {
|
|
* "item_id": 0, //道具id
|
|
* "item_num": 0, //道具数量
|
|
* "quality": 0, //道具品质
|
|
* "time": 0, //抽取时间
|
|
* "status": 0, //状态
|
|
* }
|
|
* ]
|
|
* }
|
|
*/
|
|
|
|
/**
|
|
* @api {GET} /webapp/index.php?c=NHero&a=useYokeItem 获取抽奖信息-新
|
|
* @apiPermission login
|
|
* @apiGroup NHero
|
|
* @apiUse CommonParam
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* {
|
|
* "errcode": 0, //错误码
|
|
* "errmsg": "", //错误描述
|
|
* "draw_uuid": "", //抽奖唯一id
|
|
* "free_times": 0, //免费次数
|
|
* "video_times": 0, //看视频次数
|
|
* "item_list": //道具列表
|
|
* [
|
|
* {
|
|
* "item_id": 0, //道具id
|
|
* "item_num": 0, //道具数量
|
|
* "quality": 0, //道具品质
|
|
* "time": 0, //抽取时间
|
|
* "status": 0, //状态
|
|
* }
|
|
* ]
|
|
* }
|
|
*/
|
|
|
|
}
|