204 lines
6.7 KiB
Erlang
204 lines
6.7 KiB
Erlang
|
|
%%----------------------------------------------------
|
||
|
|
%% 回归活动
|
||
|
|
%%
|
||
|
|
%% @author liufenglin 240039421@qq.com
|
||
|
|
%%----------------------------------------------------
|
||
|
|
-module(proto_259).
|
||
|
|
-export([info/0, cfg/0]).
|
||
|
|
-include("protocol.hrl").
|
||
|
|
|
||
|
|
info() -> {
|
||
|
|
"回归活动"
|
||
|
|
,["common.hrl", "quest.hrl"]
|
||
|
|
}.
|
||
|
|
|
||
|
|
-spec cfg() -> [#rpc{}].
|
||
|
|
cfg() ->
|
||
|
|
[
|
||
|
|
#rpc{
|
||
|
|
code = 25900
|
||
|
|
,log_title = "回归基础信息"
|
||
|
|
,req_desc = "回归基础信息"
|
||
|
|
,req = [
|
||
|
|
]
|
||
|
|
,reply_desc = "回归基础信息"
|
||
|
|
,reply = [
|
||
|
|
{uint8, period, "当前活动周期"}
|
||
|
|
,{uint8, open_day, "当前活动天数"}
|
||
|
|
,{uint8, is_open, "是否开启"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 25901
|
||
|
|
,log_title = "回归特权礼包"
|
||
|
|
,req_desc = "回归特权礼包"
|
||
|
|
,req = [
|
||
|
|
]
|
||
|
|
,reply_desc = "回归特权礼包"
|
||
|
|
,reply = [
|
||
|
|
{uint32, endtime, "结束时间"}
|
||
|
|
,{uint8, is_buy, "礼包是否已购买"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 25910
|
||
|
|
,log_title = "回归任务信息"
|
||
|
|
,req_desc = "回归任务信息"
|
||
|
|
,req = [
|
||
|
|
]
|
||
|
|
,reply_desc = "回归任务信息"
|
||
|
|
,reply = [
|
||
|
|
{array, tuple, quest_list, "任务列表",[
|
||
|
|
{uint32, id, "成就ID"}
|
||
|
|
, {uint8, finish, "是否已完成(0:未完成 1:已完成 2:已奖励, 3:已过期)"}
|
||
|
|
,{uint32, target_val, "目标值"}
|
||
|
|
,{uint32, value, "当前值"}
|
||
|
|
]}
|
||
|
|
,{uint32, endtime, "结束时间"}
|
||
|
|
,{uint32, period, "当前活动周期"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 25911
|
||
|
|
,log_title = "推送任务变化"
|
||
|
|
,req_desc = "推送任务变化"
|
||
|
|
,req = [
|
||
|
|
]
|
||
|
|
,reply_desc = "推送任务变化"
|
||
|
|
,reply = [
|
||
|
|
{uint32, id, "成就ID"}
|
||
|
|
, {uint8, finish, "是否已完成(0:未完成 1:已完成 2:已奖励, 3:已过期)"}
|
||
|
|
,{uint32, target_val, "目标值"}
|
||
|
|
,{uint32, value, "当前值"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 25912
|
||
|
|
,log_title = "任务奖励领取"
|
||
|
|
,req_desc = "任务奖励领取"
|
||
|
|
,req = [
|
||
|
|
{uint32, id, "ID"}
|
||
|
|
]
|
||
|
|
,reply_desc = "任务领取"
|
||
|
|
,reply = [
|
||
|
|
{uint8, code, "结果,1:成功,0:失败"}
|
||
|
|
,{string, msg, "附加信息"}
|
||
|
|
,{uint32, id, "ID"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 25913
|
||
|
|
,log_title = "回归商店信息"
|
||
|
|
, req_desc = "回归商店信息"
|
||
|
|
, req = [
|
||
|
|
]
|
||
|
|
, reply = [
|
||
|
|
{uint32, endtime, "结束时间"}
|
||
|
|
,{array, tuple, buy_info, "杂货铺购买情况", [
|
||
|
|
{uint8, id, "商品id"}
|
||
|
|
,{uint32, day_num, "个人天购买次数(没有限购时为0)"}
|
||
|
|
,{uint32, all_num, "个人总购买次数(没有限购时为0)"}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 25914
|
||
|
|
,log_title = "回归商店购买(购买成功推送25913)"
|
||
|
|
, req_desc = "回归商店购买(购买成功推送25913)"
|
||
|
|
, req = [
|
||
|
|
{uint32, id, "商品id"}
|
||
|
|
]
|
||
|
|
, reply = [
|
||
|
|
{uint8, code, "是否成功"}
|
||
|
|
,{string, msg, "返回消息"}
|
||
|
|
,{uint32, id, "商品id"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 25915
|
||
|
|
,log_title = "请求回归签到信息"
|
||
|
|
, req_desc = "请求回归签到信息"
|
||
|
|
, req = []
|
||
|
|
, reply_desc = "返回回归签到信息数据"
|
||
|
|
, reply =
|
||
|
|
[{array, tuple, status_list, "状态列表",
|
||
|
|
[{uint8, day, "天数"}
|
||
|
|
, {uint8, status, "状态,1:不可领取,2:可领取,3:已领取"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
, #rpc{
|
||
|
|
code = 25916
|
||
|
|
,log_title = {"领取回归签到奖励[day:~w]", [day]}
|
||
|
|
, req_desc = {"领取回归签到奖励[day:~w]", [day]}
|
||
|
|
, req = [{uint8, day, "天数"}]
|
||
|
|
, reply_desc = {"领取回归签到奖励[day:~w][code:~w][msg:~ts]", [day, code, msg]}
|
||
|
|
, reply = [{uint8, code, "状态码,0:失败,1:成功"}
|
||
|
|
, {string, msg, "附加消息"}
|
||
|
|
, {uint8, day, "天数"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 25917
|
||
|
|
,log_title = "超值特惠购买次数信息"
|
||
|
|
,req_desc = "超值特惠购买次数信息"
|
||
|
|
,req = [
|
||
|
|
]
|
||
|
|
,reply_desc = "超值特惠购买次数信息"
|
||
|
|
,reply = [
|
||
|
|
{uint32, endtime, "结束时间"}
|
||
|
|
,{array, tuple, discount_buy_count, "超值特惠购买次数信息", [
|
||
|
|
{uint32, package_id, "充值id"}
|
||
|
|
,{uint32, buy_count, "当前次数"}
|
||
|
|
,{uint32, limit_count, "限制次数"}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 25918
|
||
|
|
,log_title = "超值特惠0元购买"
|
||
|
|
,req_desc = "超值特惠0元购买"
|
||
|
|
,req = [
|
||
|
|
{uint8, package_id, "充值id"}
|
||
|
|
]
|
||
|
|
,reply_desc = "超值特惠0元购买"
|
||
|
|
,reply = [
|
||
|
|
{uint8, code, "状态码,0:失败,1:成功"}
|
||
|
|
, {string, msg, "附加消息"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 25919
|
||
|
|
,log_title = "活动红点"
|
||
|
|
, req_desc = "活动红点"
|
||
|
|
, req = [
|
||
|
|
{uint32, bid, "活动bid"}
|
||
|
|
]
|
||
|
|
, reply = [
|
||
|
|
{uint32, bid, "活动bid"}
|
||
|
|
,{uint8, code, "是否要红点(0:不用 1:要红点)"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 25920
|
||
|
|
,log_title = "回归邀请码"
|
||
|
|
, req_desc = "回归邀请码"
|
||
|
|
, req = [
|
||
|
|
]
|
||
|
|
, reply = [
|
||
|
|
{uint32, endtime, "结束时间"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 25921
|
||
|
|
,log_title = "推送打开邀请码界面"
|
||
|
|
, req_desc = "推送打开邀请码界面"
|
||
|
|
, req = [
|
||
|
|
]
|
||
|
|
, reply = [
|
||
|
|
{uint32, endtime, "结束时间"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
].
|