/** * 领取首付礼包 */ const cmd_pay_getfirstpaygift = 8802; // //---------- 移动端 支付API 操作码 ---- /** * 【移动端】购买物品 */ const cmd_mpay_pay = 8807; /** * 【移动端】查询游戏币余额 */ const cmd_mpay_get_balance = 8808; /** * 【移动端】购买神秘商城物品 */ const cmd_mpay_buyDynamic = 8809; /** * 【移动端】刷新神秘商城物品 */ const cmd_mpay_getDynamic = 8810; /** * 【移动端】自助检查异常订单 */ const cmd_mpay_selfCheckOrders = 8811; /** * 【移动端】查询付费记录 */ const cmd_mpay_getPayRecords = 8812; /** * 临时--正式的要根据具体功能实现 */ const cmd_mpay_PayDeliverGoods = 8813; /** * 充值领取奖励 */ const cmd_mpay_UserRechargeDrawPrize = 8814; /** * 新的首冲功能 */ const cmd_mpay_NewFirstRecharge = 8815; // // // // // // // /** * 获取分区列表 */ const cmd_user_getzonelist = 6000; /** * 玩家登录指令/新玩家直接注册并登录 */ const cmd_user_loginuserinfo = 6001; /** * 常量信息指令 */ const cmd_user_gameconstinfo = 6002; /** * 走完片头后给值 1 */ const cmd_user_setAnimation = 6004; // // /** * 7日奖励领取 */ const active_day7_drawreward = 6101; /** * 7日累充奖励领取 */ const active_day7_accumulateDrawreward = 6102; // // /** * [6201] 任务 - 拉取最新任务信息 */ const cmd_task_getInfo = 6201; /** * [6202] 任务 - 领取任务奖励 */ const cmd_task_getReward = 6202; /** * 领取成就奖励 */ const cmd_task_getAchieveReward = 6203; // // // const cmd_store_put = 6401; /** * 装备 */ const cmd_store_gemSet = 6402; //const cmd_store_equip = 6402; /** * 卸下装备 */ const cmd_store_gemRemove = 6403; //const cmd_store_RemoveEquip = 6403; /** * 装备升级 */ const cmd_store_equipUpgrade = 6404; /** * 一键升级 */ const cmd_store_equipUpgrade_MaxLv = 6405; /** * 合成 */ const store_gemCompose = 6406; /** * 消耗体力 */ const store_comsumeTili = 6407; /** * 切换装备分页 */ const store_switchEquipPag = 6408; /** * 宝石开锁解锁 */ const store_gemLockState = 6409; /** * 移除装备可以升级的提示 */ const store_equip_removeEquipUpgradeTip = 6410; /** * 移除新宝石提示 */ const store_equip_removeNewGemTip = 6411; /** * 所有装备的一键升级 */ const store_allEquipUpgrade = 6412; // // /** * 商城购买东西 */ const cmd_shop_BuyGift = 6501; // // // /** * 切换英雄 */ const hero_swith = 6601; /** * 解锁英雄 */ const hero_unlock = 6602; /** * 购买角色 */ const hero_buy = 6603; // // // const cmd_email_questEmailList = 6701; /** * [6702]读取/打开一封邮件 */ const cmd_email_readAEmail = 6702; /** * [6703] 邮件 - 领取附件 */ const cmd_email_DrawReward = 6703; /** * [6704] 邮件 - 领取全部附件奖励 */ const cmd_email_DrawAllRewards = 6704; /** * [6705] 删除邮件——所有已读(不包含已读未领取状态的邮件) */ const cmd_mail_delMailReaded = 6705; /** * [6706] 请求邮件未处理的数量(未打开邮件时检查邮件图标应该提示啥) */ const cmd_mail_notReadMailNum = 6706; /** * [6707] 发送测试用道具 */ const cmd_mail_sendTestItems = 6707; // // // const cmd_fight_settle = 6801; /** * 章节宝箱的领取 */ const cmd_fight_PassGateTsPrizeReceive = 6802; /** * 关卡选择 */ const cmd_fight_selectGate = 6803; const cmd_fight_gateChallengePriceReviced = 6804; /** * 进化解锁 */ const cmd_fight_evolveUnlock = 6805; /** * */ const cmd_fight_plotSav = 6806; /** * 巡逻 */ const cmd_fight_xunluoPrizeReceived = 6807; /** * 开始挑战 */ const fight_startFight = 6808; // // /** * 辅助方法, 将所有错误码信息转换到CSV文本中. * 用法: 先在本文件中用ctrl + H 全部替换掉 'c onst ' -> 's tatic $' * 然后再调用本方法,即可在同目录下生成ErrCode.txt, 里面包含了所需信息. * @throws \Exception * @author gwang */ static function L() { $class = new \ReflectionClass(__CLASS__); # 建立这个类的反射对象 $properties = $class->getProperties(\ReflectionProperty::IS_STATIC); # 拉取所有静态属性 $fileName = __DIR__ . "/" . str_replace('\\', '.', __CLASS__) . ".txt"; # 输出文件名 $fd = fopen($fileName, "w"); if (false === $fd) { # 打开文件失败 throw new \Exception("打开$fileName 失败"); } foreach ($properties as &$p) { $d = preg_replace('/[\*|\/|\s+]/', '', $p->getDocComment()); # 处理下注释 $type = (strpos($p->getName(), 'err') === false ? 0 : 1); # errorType: 0 继续, 1 重启 $n = fputs($fd, $p->getName() . ";" . $p->getValue() . ";$type;$d" . PHP_EOL); # 写入文件 if (false === $n) { # 写入时失败 throw new Exception("写入$fileName 时失败"); } } fclose($fd); } // }