%%%------------------------------------------------------------------- %%% @author liwl %%% @copyright (C) 2018, liwl %%% @doc %%% 伙伴召唤协议 %%% @end %%% Created : 14 May 2018 by liwl %%%------------------------------------------------------------------- -module(proto_232). -export([ info/0 ,cfg/0 ] ). -include("protocol.hrl"). info() -> { "伙伴召唤协议" ,["common.hrl", "rank.hrl"] }. cfg() -> [ #rpc{ code = 23200 ,log_title = "请求召唤信息" , req_desc = "请求召唤信息" , req = [] , reply_desc = "返回召唤信息" , reply = [{array, tuple, recruit_list, "召唤信息", ?p_g_set(recruit_list, [{uint16, group_id, "召唤编号"} , {array, tuple, draw_list, "召唤次数列表", [{uint8, times, "抽奖次数"} , {array, tuple, kv_list, "附加数据", [{uint32, key, "键"} , {uint32, val, "数字值"} , {string, str_val, "字符串值"} ]} ]} ]) } , {uint8, is_share, "是否已经首次分享,0:否;1:是"} , {uint8, is_day_share, "今日是否已经分享,0:否;1:是"} , {uint16, must_five_num, "初始高抽剩余必出五星次数"} ] } , #rpc{ code = 23201 ,log_title = "召唤" , req_desc = "召唤" , req = [{uint16, group_id, "召唤编号"} , {uint8, times, "召唤次数"} , {uint8, recruit_type, "召唤方式,1:免费,2:金币,3:红钻/钻石兑换,4:道具, 5:特殊道具"} ] , reply_desc = "召唤" , reply = [{uint16, group_id, "召唤编号"} , {uint8, times, "召唤次数"} , {uint32, flag, "特效标识:0老召唤 1活动召唤"} , {string, msg, "附加信息"} , {array, tuple, rewards, "召唤奖励", [{uint32, base_id, "基础id"} , {uint32, num, "数量"} ] } , {array, tuple, partner_bids, "召唤伙伴基础id列表", [ {uint32, partner_bid, "伙伴基础id"} ,{uint8, init_star, "星级"} ] } , {array, tuple, partner_chips, "召唤伙伴碎片", [{uint32, partner_bid, "伙伴基础id"} , {uint32, chip_bid, "碎片基础Id"} , {uint32, chip_num, "碎片数量"} ] } , {uint16, must_five_num, "初始高抽剩余必出五星次数"} ] } , #rpc{ code = 23202 ,log_title = "更新召唤通用信息" , req_desc = "更新召唤通用信息" , req = [] , reply_desc = "更新召唤通用信息" , reply = [ {uint16, group_id, "召唤编号"} , {uint32, free_cd_end, "免费CD结束时间"} , {uint8, free_times, "已使用的免费次数"} ] } , #rpc{ code = 23203 ,log_title = "领取召唤分享奖励" , req_desc = "领取召唤分享奖励" , req = [] , reply_desc = {"领取召唤分享奖励[~w][~ts][~w][~w]", [code, msg, is_share, is_day_share]} , reply = [{uint8, code, "状态码,0:失败,1:成功"} , {string, msg, "附加信息"} , {uint8, is_share, "是否已经首次分享,0:否;1:是"} , {uint8, is_day_share, "今日是否已经分享,0:否;1:是"} ] } , #rpc{ code = 23204 ,log_title = "更新单个召唤卡库信息" , req_desc = "更新单个召唤卡库信息" , req = [] , reply_desc = "更新单个召唤卡库信息" , reply = [{array, tuple, recruit_group, "单个卡库", ?p_g_get(recruit_list)}] } , #rpc{ code = 23210 ,log_title = "请求召唤福利活动数据" , req_desc = "请求召唤福利活动数据" , req = [] , reply_desc = "请求召唤福利活动数据" , reply = [ {uint8, fals, "是否活动开启"} ,{uint32, end_time, "结束时间戳"} ,{array, tuple, rewards, "召唤奖励", [ {uint32, id, "奖励id"} , {uint32, num, "当前完成数量"} , {uint8, status, "状态(0:未完成 1:可领取 2:已领取)"} ] } ] } , #rpc{ code = 23211 ,log_title = "领取召唤福利活动" , req_desc = "领取召唤福利活动" , req = [{uint32, id, "奖励id"}] , reply_desc = "领取召唤福利活动" , reply = [ {uint8, code, "状态码,0:失败,1:成功"} ,{string, msg, "附加信息"} ] } , #rpc{ code = 23212 ,log_title = "推送新卡库开启(用于召唤福利红点)" , req_desc = "推送新卡库开启(用于召唤福利红点)" , req = [] , reply_desc = "推送新卡库开启(用于召唤福利红点)" , reply = [] } , #rpc{ code = 23213 ,log_title = "先知殿召唤" , req_desc = "先知殿召唤" , req = [{uint16, group_id, "召唤编号"}] , reply_desc = "召唤" , reply = [ {uint16, group_id, "召唤编号"} , {string, msg, "附加信息"} , {array, tuple, rewards, "召唤奖励", [{uint32, base_id, "基础id"} , {uint32, num, "数量"} ] } ] } , #rpc{ code = 23214 ,log_title = "置换当前状态" , req_desc = "置换当前状态" , req = [] , reply_desc = "置换当前状态" , reply = [ {uint32, partner_id, "伙伴ID, 0时表示当前没有保存的状态"} ,{uint32, new_partner_bid, "置换后的伙伴Bid "} , {array, single, partner_ids, "上阵的伙伴ID", [ {uint32, id, "上阵的伙伴ID"} ] } ] } , #rpc{ code = 23215 ,log_title = "置换英雄" , req_desc = "置换英雄" , req = [ {uint32, partner_id, "需要置换的伙伴ID"} ,{uint8, action, "操作类型(0:取消保存;1:置换;2:确认置换)"} ] , reply_desc = "置换当前状态" , reply = [ {uint8, code, "状态码,0:失败,1:成功"} ,{string, msg, "附加信息"} ,{uint32, new_partner_bid, "置换后的伙伴Bid "} ] } , #rpc{ code = 23216 ,log_title = "请求活动召唤信息" , req_desc = "请求活动召唤信息" , req = [] , reply_desc = "返回召唤信息" , reply = [ {uint32, camp_id, "活动ID"} ,{uint32, free_time, "下次单抽免费时间"} ,{uint32, times, "当前已抽次数"} ,{uint32, start_time, "开始时间"} ,{uint32, end_time, "结束时间"} ,{uint32, item_id, "物品ID"} ,{uint32, item_num, "物品数量"} ,{uint16, must_count, "还有必出次数"} ,{array, single, reward_list, "已领奖励列表", [ {uint16, id, "序号"} ]} ] } , #rpc{ code = 23217 ,log_title = "活动召唤" , req_desc = "活动召唤" , req = [ {uint8, times, "召唤次数"} , {uint8, recruit_type, "召唤方式,1:免费,3:钻石兑换,4:道具"} ] , reply_desc = "召唤" , reply = [ {uint8, flag, "0:失败 1:成功"} ,{string, msg, "结果信息"} ] } ,#rpc{ code = 23218 ,log_title = "领取保底礼包(成功推送23216)" ,req_desc = "领取保底礼包(成功推送23216)" ,req = [] ,reply = [ {uint8, flag, "0:失败 1:成功"} ,{string, msg, "结果信息"} ] } ,#rpc{ code = 23219 ,log_title = "英雄试玩" ,req_desc = "英雄试玩" ,req = [ {uint32, bid, "活动BID"} ] ,reply = [ {uint8, flag, "0:失败 1:成功"} ,{string, msg, "结果信息"} ] } , #rpc{ code = 23220 ,log_title = "请求活动召唤信息" , req_desc = "请求活动召唤信息" , req = [] , reply_desc = "返回召唤信息" , reply = [ {uint32, camp_id, "活动ID"} ,{uint32, free_time, "下次单抽免费时间"} ,{uint32, times, "当前已抽次数"} ,{uint32, start_time, "开始时间"} ,{uint32, end_time, "结束时间"} ,{uint32, item_id, "物品ID"} ,{uint32, item_num, "物品数量"} ,{uint16, must_count, "还有必出次数"} ,{array, single, reward_list, "已领奖励列表", [ {uint16, id, "序号"} ]} ] } , #rpc{ code = 23221 ,log_title = "活动召唤" , req_desc = "活动召唤" , req = [ {uint8, times, "召唤次数"} , {uint8, recruit_type, "召唤方式,1:免费,3:钻石兑换,4:道具"} ] , reply_desc = "召唤" , reply = [ {uint8, flag, "0:失败 1:成功"} ,{string, msg, "结果信息"} ] } , #rpc{ code = 23229 ,log_title = "许愿英雄自选召唤礼包数据" , req_desc = "许愿英雄自选召唤礼包数据" , req = [ ] , reply_desc = "许愿英雄自选召唤礼包数据" , reply = [ {array, tuple, gift_buy_info, "许愿英雄自选召唤礼包数据", [ {uint32, gift_id, "礼包id"} ,{uint8, buy_num, "购买次数"} ] } ] } ,#rpc{ code = 23222 ,log_title = "领取保底礼包(成功推送23220)" ,req_desc = "领取保底礼包(成功推送23220)" ,req = [] ,reply = [ {uint8, flag, "0:失败 1:成功"} ,{string, msg, "结果信息"} ] } , #rpc{ code = 23230 ,log_title = "请求许愿英雄自选召唤信息" , req_desc = "请求许愿英雄自选召唤信息" , req = [] , reply_desc = "返回许愿英雄召唤信息" , reply = [ {uint32, camp_id, "活动ID"} ,{uint32, free_time, "下次单抽免费时间"} ,{uint32, gold_time, "剩余钻石次数"} ,{uint32, times, "当前已抽次数"} ,{uint32, start_time, "开始时间"} ,{uint32, end_time, "结束时间"} ,{uint32, item_id, "物品ID"} ,{uint32, item_num, "物品数量"} ,{uint16, must_count, "还有必出次数"} ,{array, single, reward_list, "已领奖励列表", [ {uint16, id, "序号"} ]} ,{uint32, lucky_bid, "许愿英雄bid (0:未许愿)"} ] } , #rpc{ code = 23231 ,log_title = "许愿英雄活动召唤" , req_desc = "许愿英雄活动召唤" , req = [ {uint8, times, "召唤次数"} , {uint8, recruit_type, "召唤方式,1:免费,3:钻石兑换,4:道具"} ] , reply_desc = "召唤" , reply = [ {uint16, group_id, "召唤编号"} , {uint8, times, "召唤次数"} , {uint32, flag, "特效标识:0老召唤 1活动召唤"} , {string, msg, "附加信息"} , {array, tuple, rewards, "召唤奖励", [{uint32, base_id, "基础id"} , {uint32, num, "数量"} ] } , {array, tuple, partner_bids, "召唤伙伴基础id列表", [ {uint32, partner_bid, "伙伴基础id"} ,{uint8, init_star, "星级"} ] } , {array, tuple, partner_chips, "召唤伙伴碎片", [{uint32, partner_bid, "伙伴基础id"} , {uint32, chip_bid, "碎片基础Id"} , {uint32, chip_num, "碎片数量"} ] } , {uint16, must_five_num, "初始高抽剩余必出五星次数"} ] } ,#rpc{ code = 23232 ,log_title = "许愿英雄领取保底礼包(成功推送23230)" ,req_desc = "许愿英雄领取保底礼包(成功推送23230)" ,req = [ ] ,reply = [ {uint32, camp_id, "活动ID"} ,{uint32, free_time, "下次单抽免费时间"} ,{uint32, gold_time, "剩余钻石次数"} ,{uint32, times, "当前已抽次数"} ,{uint32, start_time, "开始时间"} ,{uint32, end_time, "结束时间"} ,{uint32, item_id, "物品ID"} ,{uint32, item_num, "物品数量"} ,{uint16, must_count, "还有必出次数"} ,{array, single, reward_list, "已领奖励列表", [ {uint16, id, "序号"} ]} ,{uint32, lucky_bid, "许愿英雄bid (0:未许愿)"} ] } ,#rpc{ code = 23233 ,log_title = "设置许愿英雄(成功推送26550)" ,req_desc = "设置许愿英雄(成功推送26550)" ,req = [ {uint32, lucky_bid, "许愿英雄bid"} ] ,reply = [ {uint8, flag, "0:失败 1:成功"} ,{string, msg, "结果信息"} ] } ,#rpc{ code = 23234 ,log_title = "打开先知水晶请求" ,req_desc = "打开先知水晶请求" ,req = [] ,reply = [ {uint8, flag, "0:失败 1:成功"} ,{string, msg, "结果信息"} ] } ,#rpc{ code = 23235 ,log_title = "当日是否打开过先知水晶(用于红点)" ,req_desc = "当日是否打开过先知水晶(用于红点)" ,req = [] ,reply = [ {uint8, flag, "0:失败 1:成功"} ,{string, msg, "结果信息"} ] } , #rpc{ code = 23236 ,log_title = "step_up活动召唤" , req_desc = "step_up活动召唤" , req = [ {uint8, times, "召唤次数"} , {uint8, recruit_type, "召唤方式,1:免费,3:钻石兑换,4:道具"} ] , reply_desc = "召唤" , reply = [ {string, msg, "结果信息"} , {array, tuple, rewards, "召唤奖励", [{uint32, base_id, "基础id"} , {uint32, num, "数量"} ] } , {array, tuple, partner_bids, "召唤伙伴基础id列表", [ {uint32, partner_bid, "伙伴基础id"} ,{uint8, init_star, "星级"} ] } ] } , #rpc{ code = 23237 ,log_title = "查看step_up活动召唤信息" , req_desc = "查看step_up活动召唤信息" , req = [ ] , reply_desc = "召唤" , reply = [ {string, msg, "结果信息"} ,{uint8, state, "开启状态:0,展示期, 1:开启中, 2:活动结束展示期, 3:空窗期"} ,{uint8, gold_times, "钻石次数"} ,{uint32, camp_id, "活动id"} ,{uint8, turns, "轮次信息"} ,{uint8, step, "步骤信息"} ,{uint8, debris_num, "碎片数量"} ,{uint32, integral, "积分"} ,{uint8, reward_status, "最终奖励是否领取"} , {array, tuple, get_reward, "达成奖励领取情况", [ {uint32, turn, "奖励对应轮次"} ] } ] } , #rpc{ code = 23238 ,log_title = "step_up活动召唤奖励领取" , req_desc = "step_up活动召唤奖励领取" , req = [ ] , reply_desc = "step_up活动召唤奖励领取" , reply = [ {uint8, flag, "0:失败 1:成功"} ,{string, msg, "结果信息"} ] } , #rpc{ code = 23239 ,log_title = "step_up活动召唤达成奖励领取" , req_desc = "step_up活动召唤达成奖励领取" , req = [ {uint8, turn, "轮次信息"} ] , reply_desc = "step_up活动召唤达成奖励领取" , reply = [ {uint8, flag, "0:失败 1:成功"} ,{string, msg, "结果信息"} ] } , #rpc{ code = 23240 ,log_title = "推送step_up活动召唤信息" , req_desc = "推送step_up活动召唤信息" , req = [ ] , reply_desc = "推送step_up活动召唤信息" , reply = [ {string, msg, "结果信息"} ,{uint8, state, "开启状态:0,展示期, 1:开启中, 2:活动结束展示期, 3:空窗期"} ,{uint8, gold_times, "钻石次数"} ,{uint32, camp_id, "活动id"} ,{uint8, turns, "轮次信息"} ,{uint8, step, "步骤信息"} ,{uint8, debris_num, "碎片数量"} ,{uint32, integral, "积分"} ,{uint8, reward_status, "最终奖励是否领取"} , {array, tuple, get_reward, "达成奖励领取情况", [ {uint32, turn, "奖励对应轮次"} ] } ] }, #rpc{ code = 23241 ,log_title = "请求step_up排行榜数据" ,req_desc = "请求step_up排行榜数据" ,req = [ ] ,reply_desc = "请求step_up排行榜数据结果" ,reply = [ {uint16, type, "排行榜类型"} ,{uint8, start, "开始位置(1-100)"} ,{uint8, num, "数据量"} ,{uint8, len, "总数据量"} ,{uint32, time, "最后更新时间(0不用缓存)"} ,{uint16, my_idx, "自己的排名"} ,{uint8, lev, "等级"} ,{uint16, face_id, "头像ID"} ,{uint16, avatar_bid, "头像框基础ID"} ,{string, name, "角色名"} ,{uint32, my_val1, "自己的英雄战力"} ,{uint32, my_val2, "自己的数值2"} ,{uint32, my_val3, "自己的数值3"} ,{array, rank_rc, rank_list, "排行榜数据", [ {uint32, rid, "角色ID"} ,{string, srv_id, "服务器ID"} ,{string, name, "角色名"} ,{string, guild_name, "公会名"} ,{uint8, lev, "等级"} ,{uint32, face_id, "头像"} ,{uint32, avatar_bid, "头像框基础Id"} ,{uint32, val1, "英雄战力"} ,{uint32, val2, "数值2"} ,{uint32, val3, "数值3"} ,{uint8, idx, "名次"} ,{string, desc, "描述"} ,{uint32, look_id, "形象id"} ,{uint32, face_update_time, "自定义头像时间"} ,{string, face_file, "自定义头像"} ]} ,{uint32, face_update_time, "自定义头像时间"} ,{string, face_file, "自定义头像"} ] } %% ,#rpc{ %% code = 23242 %% ,log_title = "请求step_up幸运星数据" %% ,req_desc = "请求step_up幸运星数据" %% ,req = [ %% ] %% ,reply_desc = "请求step_up幸运星数据结果" %% ,reply = [ %% {array, tuple, luck_list, "幸运星数据", [ %% {uint32, time, "幸运星产生时间"} %% ,{array, tuple, luck_role_info, "幸运星数据", [ %% {uint32, face_id, "头像"} %% ,{string, name, "角色名"} %% ,{string, face_file, "自定义头像"} %% ]} %% ]} %% ] %% } , #rpc{ code = 23243 ,log_title = "step_up礼包数据" , req_desc = "step_up礼包数据" , req = [ ] , reply_desc = "step_up礼包数据" , reply = [ {array, tuple, gift_buy_info, "step_up礼包数据", [ {uint32, gift_id, "礼包id"} ,{uint8, buy_num, "购买次数"} ] } ] } , #rpc{ code = 23244 ,log_title = "请求step_up排行榜数据" ,req_desc = "请求step_up排行榜数据" ,req = [ {uint16, type, "排行榜类型, 57-日排行榜, 58-总排行榜"} ] ,reply_desc = "请求step_up排行榜数据结果" ,reply = [ {uint16, type, "排行榜类型"} ,{uint8, start, "开始位置(1-100)"} ,{uint8, num, "数据量"} ,{uint8, len, "总数据量"} ,{uint32, time, "最后更新时间(0不用缓存)"} ,{uint16, my_idx, "自己的排名"} ,{uint8, lev, "等级"} ,{uint16, face_id, "头像ID"} ,{uint16, avatar_bid, "头像框基础ID"} ,{string, name, "角色名"} ,{uint32, my_val1, "自己的英雄战力"} ,{uint32, my_val2, "自己的数值2"} ,{uint32, my_val3, "自己的数值3"} ,{array, rank_rc, rank_list, "排行榜数据", [ {uint32, rid, "角色ID"} ,{string, srv_id, "服务器ID"} ,{string, name, "角色名"} ,{string, guild_name, "公会名"} ,{uint8, lev, "等级"} ,{uint32, face_id, "头像"} ,{uint32, avatar_bid, "头像框基础Id"} ,{uint32, val1, "英雄战力"} ,{uint32, val2, "数值2"} ,{uint32, val3, "数值3"} ,{uint8, idx, "名次"} ,{string, desc, "描述"} ,{uint32, look_id, "形象id"} ,{uint32, face_update_time, "自定义头像时间"} ,{string, face_file, "自定义头像"} ]} ,{uint32, face_update_time, "自定义头像时间"} ,{string, face_file, "自定义头像"} ] } , #rpc{ code = 23245 ,log_title = "step_up签到数据" , req_desc = "step_up签到数据" , req = [ ] , reply_desc = "step_up签到数据" , reply = [ {array, tuple, gift_buy_info, "step_up签到数据", [ {uint32, day, "天数"} ,{uint8, status, "0-不可领取,1-可领取,2-已领取"} ] } ] } , #rpc{ code = 23246 ,log_title = "领取step_up签到" , req_desc = "领取step_up签到" , req = [ {uint8, day, "天数"} ] , reply_desc = "领取step_up签到" , reply = [ {uint8, code, "0:失败 1:成功"} ,{string, msg, "结果信息"} ,{uint8, day, "天数"} ,{uint8, status, "状态"} ] } , #rpc{ code = 23250 ,log_title = "无限十连活动召唤信息" , req_desc = "无限十连活动召唤信息" , req = [ ] , reply_desc = "无限十连活动召唤信息" , reply = [ {string, msg, "结果信息"} , {uint32, camp_id, "活动id"} , {uint32, num, "召唤次数"} , {array, tuple, partner_bids, "召唤伙伴基础id列表", [ {uint32, partner_bid, "伙伴基础id"} ,{uint8, init_star, "星级"} ] } ,{array, tuple, plan_list, "召唤方案",[ {uint32, id, "方案id"}, {array, tuple, partner_bids, "召唤伙伴基础id列表", [ {uint32, partner_bid, "伙伴基础id"} ,{uint8, init_star, "星级"} ] } ] } ] } , #rpc{ code = 23251 ,log_title = "无限十连活动召唤显示" , req_desc = "无限十连活动召唤显示" , req = [ ] , reply_desc = "无限十连活动召唤" , reply = [{string, msg, "结果信息"} , {uint32, num, "召唤次数"} , {array, tuple, rewards, "召唤奖励", [{uint32, base_id, "基础id"} , {uint32, num, "数量"} ] } , {array, tuple, partner_bids, "召唤伙伴基础id列表", [ {uint32, partner_bid, "伙伴基础id"} ,{uint8, init_star, "星级"} ] } ] } , #rpc{ code = 23252 ,log_title = "无限十连活动召唤确认" , req_desc = "无限十连活动召唤确认" , req = [ {uint32, id, "方案"} ] , reply_desc = "无限十连活动召唤" , reply = [ {uint8, flag, "0:失败 1:成功"} ,{string, msg, "结果信息"} ] } , #rpc{ code = 23253 ,log_title = "无限十连活动召唤方案保存" , req_desc = "无限十连活动召唤方案保存" , req = [ {uint8, id, "方案id"} ] , reply_desc = "无限十连活动召唤方案保存" , reply = [ {uint8, flag, "0:失败 1:成功"} ,{string, msg, "结果信息"} ] } , #rpc{ code = 23254 ,log_title = "无限十连活动召唤方案信息" , req_desc = "无限十连活动召唤方案信息" , req = [ ] , reply_desc = "无限十连活动召唤方案信息" , reply = [ {uint32, camp_id, "活动id"} ,{array, tuple, plan_list, "召唤方案",[ {uint32, id, "方案id"}, {array, tuple, partner_bids, "召唤伙伴基础id列表", [ {uint32, partner_bid, "伙伴基础id"} ,{uint8, init_star, "星级"} ] } ] } ] } , #rpc{ code = 23261 ,log_title = "阵营召唤" , req_desc = "阵营召唤" , req = [{uint16, group_id, "召唤编号"} , {uint8, times, "召唤次数"} , {uint8, recruit_type, "召唤方式,1:免费,2:金币,3:红钻/钻石兑换,4:道具, 5:特殊道具"} ] , reply_desc = "召唤" , reply = [{uint8, code, "召唤次数"}, {uint16, group_id, "召唤编号"} , {uint8, times, "召唤次数"} , {string, msg, "附加信息"} , {array, tuple, rewards, "召唤奖励", [{uint32, base_id, "基础id"} , {uint32, num, "数量"} ] } ] } , #rpc{ code = 23262 ,log_title = "阵营积分召唤" , req_desc = "阵营积分召唤" , req = [ ] , reply_desc = "召唤" , reply = [{uint8, code, "召唤次数"}, {uint16, group_id, "召唤编号"} , {uint8, times, "召唤次数"} , {string, msg, "附加信息"} , {array, tuple, rewards, "召唤奖励", [{uint32, base_id, "基础id"} , {uint32, num, "数量"} ] } ] } , #rpc{ code = 23263 ,log_title = "阵营召唤状态" , req_desc = "阵营召唤状态" , req = [ {uint16, camp_id, "活动id"} ] , reply_desc = "阵营召唤状态" , reply = [{uint8, status, "召唤状态0-未开启,1-开放阶段"}, {uint32, endtime, "剩余时间"}, {uint16, camp_id, "活动id"} ] } , #rpc{ code = 23270 ,log_title = "请求许愿英雄自选召唤信息" , req_desc = "请求许愿英雄自选召唤信息" , req = [] , reply_desc = "返回许愿英雄召唤信息" , reply = [ {uint32, camp_id, "活动ID"} ,{uint32, free_time, "下次单抽免费时间"} ,{uint32, gold_time, "剩余钻石次数"} ,{uint32, times, "当前已抽次数"} ,{uint32, start_time, "开始时间"} ,{uint32, end_time, "结束时间"} ,{uint32, item_id, "物品ID"} ,{uint32, item_num, "物品数量"} ,{uint16, must_count, "还有必出次数"} ,{uint32, lucky_bid, "许愿英雄bid (0:未许愿)"} ,{uint16, my_idx, "自己的排名"} ,{string, name, "角色名"} ,{uint32, my_val1, "次数"} ,{array, rank_rc, rank_list, "排行榜数据", [ {string, name, "角色名"} ,{uint32, val1, "次数"} ,{uint8, idx, "名次"} ]} ] } , #rpc{ code = 23271 ,log_title = "许愿英雄活动召唤" , req_desc = "许愿英雄活动召唤" , req = [ {uint8, times, "召唤次数"} , {uint8, recruit_type, "召唤方式,1:免费,3:钻石兑换,4:道具"} ] , reply_desc = "召唤" , reply = [ {uint16, group_id, "召唤编号"} , {uint8, times, "召唤次数"} , {uint32, flag, "特效标识:0老召唤 1活动召唤"} , {string, msg, "附加信息"} , {array, tuple, rewards, "召唤奖励", [{uint32, base_id, "基础id"} , {uint32, num, "数量"} ] } , {array, tuple, partner_bids, "召唤伙伴基础id列表", [ {uint32, partner_bid, "伙伴基础id"} ,{uint8, init_star, "星级"} ] } , {array, tuple, partner_chips, "召唤伙伴碎片", [{uint32, partner_bid, "伙伴基础id"} , {uint32, chip_bid, "碎片基础Id"} , {uint32, chip_num, "碎片数量"} ] } , {uint16, must_five_num, "初始高抽剩余必出五星次数"} ] } , #rpc{ code = 23272 ,log_title = "召唤日志" , req_desc = "召唤日志" , req = [ ] , reply_desc = "召唤" , reply = [ {array, single, logs, "召唤日志", [ {string, msg, "日志"} ] } ] } ].