wanggangzero 9 months ago
parent
commit
1941adf5de

+ 0 - 112
Gameserver/App/base/ErrCode.txt

@@ -1,112 +0,0 @@
-ok;0;0;交互成功
-err_unknownn;1001;1;未知原因错误
-err_innerfault;1002;1;内部错误
-err_db;1003;1;数据库操作失败
-err_mem;1004;1;内存操作失败
-err_assert;1005;1;错误:断言失败
-msg_assert;1006;0;警告:断言失败
-err_illegal;1011;1;消息内容非法(不满足tk校验的条件)
-err_signo;1012;1;消息内容缺少校验值
-err_outtime;1021;1;消息超时
-err_retry;1024;1;Just重试
-clientversionlow_err;1031;1;客户端版本过低-整包更
-clientnewversion_msg;1032;0;客户端版本过低-增量更
-clientPrintMsg_Halt;1033;0;客户端打印信息并且退出
-ope_err;1210;1;功能码非法
-cmd_err;1211;1;操作码非法
-paras_err;1212;1;参数非法
-parasnotenough_msg;1213;0;参数不足
-sensword_msg;1234;0;内容包含敏感词
-err_server_maintaining;1301;1;服务器正在维护中
-err_server_updating;1302;1;服务器正在升级,请过会儿再来。
-err_anotherlogin;1303;1;已经在其他地方登录
-function_notopen_msg;1801;0;功能暂未开放
-err_method_notimplement;1802;1;方法尚未实现
-err_method_obsoleted;1803;1;方法已过时,废弃的.
-err_const_no;1825;1;游戏常量数据错误
-pay_firstpayno_err;8801;1;尚未首付
-pay_firstpaygetted;8802;0;已经领取首付
-pay_systembusy_err;8803;1;系统繁忙
-pay_vipnewerno;8804;0;不是黄钻或已经领取黄钻礼包
-pay_m_amtzero_err;8805;1;amt数值小于等于0
-pay_price_err;8806;1;价格异常
-pay_m_type_err;8807;1;支付类型异常
-pay_shopItem_cosnt_goods_err;8808;1;商品常量数据错误-货物内容
-pay_refresh_times;8809;0;商城已达刷新次数上限
-pay_secretshop_buytimes;8810;0;神秘商城-购买次数已达上限
-pay_secretshop_noitem_err;8811;1;神秘商城-物品数据错误
-pay_order_no;8812;0;充值-订单不存在
-pay_order_paystatus;8813;0;充值-付款状态不正确正在重新查询...
-pay_order_drawed;8814;0;充值-此订单已经发货,无需重复请求
-pay_order_uid;8815;0;充值-订单uid不符
-pay_secretshopt_freeRefresh_Time;8816;0;神秘商城-免费刷新时间未到
-pay_order_product_id;8817;0;订单号为null无法支付
-pay_fail;8818;0;支付失败
-pay_repeatbuy;8819;0;不能重复购买
-notenough_gold_msg;3014;0;金币不足
-notenough_cash_msg;3015;0;宝石不足
-notenough_friendshippoint;3016;0;友情点不足
-notenough_honour;3032;0;玩家荣誉值不足[荣誉值兑换]
-notenought_yuanbao;3040;0;元宝不足
-notenough_tili;3046;0;玩家体力值不足
-notenough_spar;3047;0;晶石不足
-notenough_resPoint;3048;0;资源点不足
-notenough_item;3049;0;道具数量不足
-user_login_err;3101;1;玩家未登录
-user_no_err;3102;1;玩家不存在
-user_data_broken_err;3103;1;玩家数据损坏
-user_contigiftno_msg;3104;0;连续登录天数不够
-user_contigiftfalse_msg;3105;0;已经领取连续登录礼包
-user_settutorialscompletedfail_err;3106;1;设置新手引导进度失败
-user_levelnotenough_msg;3107;0;玩家等级不足
-user_interact_no_err;3108;1;找不到玩家的交互体数据
-user_zoneinfo_no_err;3109;1;找不到玩家的分区记录
-user_nicknameexist;3110;0;玩家昵称已经存在,请换一个再试
-user_reward_typeno;3031;0;没有这种奖励类型
-gate_NoUserGateInfo;3201;0;没有玩家关卡信息
-gate_GateNoUnlock;3202;0;当前关卡没有解锁
-gate_GatePriceHasReceive;3203;0;奖励已经被领取
-gate_NoSweep;3204;0;不能扫荡
-gate_SweepMaxNum_limit;3205;0;今日扫荡已达最大次数
-tower_timeNo;3210;0;挑战关卡:今日挑战次数已用完
-tower_refreshNo;3211;0;挑战关卡:今日技能免费刷新次数已经用完
-tower_rewardNo;3212;0;挑战关卡:没有奖励
-tower_layerNum;3213;0;挑战关卡:起始层id有误
-rankReward_HasReceive;3214;0;排行榜荣誉榜奖励已经领取
-evolve_canotUnlock_levelLimit;3215;0;没有达到解锁等级
-user_store_NoEquip;3301;0;不存在该装备
-user_store_NoItem;3302;0;背包
-user_store_GemCanotSet;3303;0;宝石不能被镶嵌
-user_store_NoExistGemReplace;3304;0;不存在可以替换的宝石
-user_store_SameGemCanotEquip;3305;0;同一件装备无法镶嵌多个技能相同的宝石
-user_store_GemCanotCompose;3306;0;合成宝石条件不足无法合成
-user_store_NotExistGem;3307;0;背包不存在该宝石
-user_store_XilianStoneNoEnough;3308;0;洗练石不足
-user_store_NoFindPredicate;3309;0;没有找到对应词条信息
-user_shop_NotRepeatBuy;3401;0;商品不能重复购买
-user_shop_LimitNum;3402;0;购买次数已达最大值
-user_shop_activeExpire;3403;0;活动过期
-user_shop_FreeNumLimit;3404;0;免费次数已达上限
-user_shop_buyTiliNumLimit;3405;0;购买次数已达上限
-user_shop_GuanggaoGetTiliNumLimit;3406;0;广告购买体力次数已达上限
-user_shop_GuanggaoFreeNumLimit;3407;0;广告获得次数已达上限
-user_shop_DownTsLimit;3408;0;倒计时时间限制暂时无法购买
-active_hasgetted;3501;0;奖励已经领过
-active_day7_expired;3502;0;无效的时间内不能领取奖励
-active_const_no_err;3503;1;
-active_activecode_format;3504;0;活动-激活码无效
-active_activecode_plat;3505;0;活动-激活码渠道错误.
-active_activecode_outtime;3506;0;激活码礼包已经过期
-active_activecode_used;3507;0;活动-兑换码已经使用过了
-active_time;3508;0;活动-此活动尚未开放
-task_NoExist;3601;0;任务不存在
-task_CanotPriceReviced;3602;0;不能领取该任务奖励
-task_PriceRepeatReviced;3603;0;任务奖励不能重复领取
-task_CanotReviced_ActivePointBox;3604;0;活跃点宝箱奖励领取条件不达标无法领取
-task_RepeatReviced_ActivePointBox;3605;0;活跃点宝箱奖励重复领取
-task_NotOpen_Day7Happy;3606;0;限时活动未开启不能领取任务奖励
-task_DownTsLimit;3607;0;时间校验错误请检查当前时间是否
-email_wrongid;3701;0;邮件-错误的邮件id
-email_not_found;3702;0;邮件-未找到指定邮件
-email_no_appendix;3703;0;邮件-不存在附件
-email_appendix_drawed;3704;0;邮件-附件已领取

+ 516 - 481
Gameserver/App/configs/GameConfig.php

@@ -1,38 +1,41 @@
 <?php
+
 ////////////////////
- // 由CodeGenerator创建。
- // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
- // author: gwang 
- // 日期: 2024-09-06 10:15:03
+// 由CodeGenerator创建。
+// Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+// author: gwang
+// 日期: 2024-09-06 10:15:03
 ////////////////////
 
 namespace loyalsoft;
 
 /**
- * 常量配置数据 
+ * 常量配置数据
  */
 class GameConfig {
-// <editor-fold defaultstate="collapsed" desc="  基础代码 ">    
+// <editor-fold defaultstate="collapsed" desc="  基础代码 ">
+
     /**
-     * 是否启用codegen 
+     * 是否启用codegen
      */
-    private static function isCG()  {
-        return defined('CodeGen_Enabled') && CodeGen_Enabled; 
+    private static function isCG() {
+        return defined('CodeGen_Enabled') && CodeGen_Enabled;
     }
+
     /**
      * @var bool 分区是否使用独立的常量配置数据
      */
     private static $useZoneId = false;
+
     /**
      * 追加分区列表字符串
      * @return string
      */
-    private static function zoneid()
-    {
+    private static function zoneid() {
         global $zoneid;
         return self::$useZoneId ? "-zone$zoneid" : "";
     }
-	
+
     /**
      * @return ClientVersion
      */
@@ -84,753 +87,785 @@ class GameConfig {
         }
         return null;
     }
+
 // </editor-fold>
+
     /**
-    * 全局参数
-    * @return \globalsettings
-    */
-    public static function globalsettings()
-    { 
-        static $a = null; 
+     * 全局参数
+     * @return \globalsettings
+     */
+    public static function globalsettings() {
+        static $a = null;
         return self::initValue($a, 'globalsettings');
     }
+
     /**
-    * 停服计划
-    * @return \service_schedule
-    */
-    public static function service_schedule()
-    { 
-        static $a = null; 
+     * 停服计划
+     * @return \service_schedule
+     */
+    public static function service_schedule() {
+        static $a = null;
         return self::initValue($a, 'service_schedule');
     }
+
     /**
-    * @return \sm_service_schedule service_schedule item数据 
-    */
-    public static function service_schedule_getItem($itemid)
-    { 
+     * @return \sm_service_schedule service_schedule item数据
+     */
+    public static function service_schedule_getItem($itemid) {
         return self::get_hash_item('service_schedule', $itemid);
     }
+
     /**
-    * 道具表
-    * @return \item
-    */
-    public static function item()
-    { 
-        static $a = null; 
+     * 道具表
+     * @return \item
+     */
+    public static function item() {
+        static $a = null;
         return self::initValue($a, 'item');
     }
+
     /**
-    * @return \sm_item item item数据 
-    */
-    public static function item_getItem($itemid)
-    { 
+     * @return \sm_item item item数据
+     */
+    public static function item_getItem($itemid) {
         return self::get_hash_item('item', $itemid);
     }
+
     /**
-    * 系统邮件
-    * @return \sysmail
-    */
-    public static function sysmail()
-    { 
-        static $a = null; 
+     * 系统邮件
+     * @return \sysmail
+     */
+    public static function sysmail() {
+        static $a = null;
         return self::initValue($a, 'sysmail');
     }
+
     /**
-    * @return \sm_sysmail sysmail item数据 
-    */
-    public static function sysmail_getItem($itemid)
-    { 
+     * @return \sm_sysmail sysmail item数据
+     */
+    public static function sysmail_getItem($itemid) {
         return self::get_hash_item('sysmail', $itemid);
     }
+
     /**
-    * 客户端版本信息
-    * @return \clientVersionHistory
-    */
-    public static function clientVersionHistory()
-    { 
-        static $a = null; 
+     * 客户端版本信息
+     * @return \clientVersionHistory
+     */
+    public static function clientVersionHistory() {
+        static $a = null;
         return self::initValue($a, 'clientVersionHistory');
     }
+
     /**
-    * @return \sm_clientVersionHistory clientVersionHistory item数据 
-    */
-    public static function clientVersionHistory_getItem($itemid)
-    { 
+     * @return \sm_clientVersionHistory clientVersionHistory item数据
+     */
+    public static function clientVersionHistory_getItem($itemid) {
         return self::get_hash_item('clientVersionHistory', $itemid);
     }
+
     /**
-    * 错误信息表
-    * @return \errmsg
-    */
-    public static function errmsg()
-    { 
-        static $a = null; 
+     * 错误信息表
+     * @return \errmsg
+     */
+    public static function errmsg() {
+        static $a = null;
         return self::initValue($a, 'errmsg');
     }
+
     /**
-    * @return \sm_errmsg errmsg item数据 
-    */
-    public static function errmsg_getItem($itemid)
-    { 
+     * @return \sm_errmsg errmsg item数据
+     */
+    public static function errmsg_getItem($itemid) {
         return self::get_hash_item('errmsg', $itemid);
     }
+
     /**
-    * 技能表
-    * @return \skills
-    */
-    public static function skills()
-    { 
-        static $a = null; 
+     * 技能表
+     * @return \skills
+     */
+    public static function skills() {
+        static $a = null;
         return self::initValue($a, 'skills');
     }
+
     /**
-    * @return \sm_skills skills item数据 
-    */
-    public static function skills_getItem($itemid)
-    { 
+     * @return \sm_skills skills item数据
+     */
+    public static function skills_getItem($itemid) {
         return self::get_hash_item('skills', $itemid);
     }
+
     /**
-    * 战斗: 波次表
-    * @return \waves
-    */
-    public static function waves()
-    { 
-        static $a = null; 
+     * 战斗: 波次表
+     * @return \waves
+     */
+    public static function waves() {
+        static $a = null;
         return self::initValue($a, 'waves');
     }
+
     /**
-    * @return \sm_waves waves itemArray 
-    */
-    public static function waves_getItemArray($key)
-    { 
+     * @return \sm_waves waves itemArray
+     */
+    public static function waves_getItemArray($key) {
         return self::get_hash_item('waves', $key);
     }
+
     /**
-    * 活动: 七日签到
-    * @return \activity_day7
-    */
-    public static function activity_day7()
-    { 
-        static $a = null; 
+     * 活动: 七日签到
+     * @return \activity_day7
+     */
+    public static function activity_day7() {
+        static $a = null;
         return self::initValue($a, 'activity_day7');
     }
+
     /**
-    * @return \sm_activity_day7 activity_day7 item数据 
-    */
-    public static function activity_day7_getItem($itemid)
-    { 
+     * @return \sm_activity_day7 activity_day7 item数据
+     */
+    public static function activity_day7_getItem($itemid) {
         return self::get_hash_item('activity_day7', $itemid);
     }
+
     /**
-    * 章节表
-    * @return \gate
-    */
-    public static function gate()
-    { 
-        static $a = null; 
+     * 章节表
+     * @return \gate
+     */
+    public static function gate() {
+        static $a = null;
         return self::initValue($a, 'gate');
     }
+
     /**
-    * @return \sm_gate gate item数据 
-    */
-    public static function gate_getItem($itemid)
-    { 
+     * @return \sm_gate gate item数据
+     */
+    public static function gate_getItem($itemid) {
         return self::get_hash_item('gate', $itemid);
     }
+
     /**
-    * 角色
-    * @return \hero
-    */
-    public static function hero()
-    { 
-        static $a = null; 
+     * 角色
+     * @return \hero
+     */
+    public static function hero() {
+        static $a = null;
         return self::initValue($a, 'hero');
     }
+
     /**
-    * @return \sm_hero hero item数据 
-    */
-    public static function hero_getItem($itemid)
-    { 
+     * @return \sm_hero hero item数据
+     */
+    public static function hero_getItem($itemid) {
         return self::get_hash_item('hero', $itemid);
     }
+
     /**
-    * 装备表
-    * @return \equip
-    */
-    public static function equip()
-    { 
-        static $a = null; 
+     * 装备表
+     * @return \equip
+     */
+    public static function equip() {
+        static $a = null;
         return self::initValue($a, 'equip');
     }
+
     /**
-    * @return \sm_equip equip item数据 
-    */
-    public static function equip_getItem($itemid)
-    { 
+     * @return \sm_equip equip item数据
+     */
+    public static function equip_getItem($itemid) {
         return self::get_hash_item('equip', $itemid);
     }
+
     /**
-    * 装备升级表
-    * @return \equip_levelupgrade
-    */
-    public static function equip_levelupgrade()
-    { 
-        static $a = null; 
+     * 装备升级表
+     * @return \equip_levelupgrade
+     */
+    public static function equip_levelupgrade() {
+        static $a = null;
         return self::initValue($a, 'equip_levelupgrade');
     }
+
     /**
-    * @return \sm_equip_levelupgrade equip_levelupgrade item数据 
-    */
-    public static function equip_levelupgrade_getItem($itemid)
-    { 
+     * @return \sm_equip_levelupgrade equip_levelupgrade item数据
+     */
+    public static function equip_levelupgrade_getItem($itemid) {
         return self::get_hash_item('equip_levelupgrade', $itemid);
     }
+
     /**
-    * 章节礼包表
-    * @return \shop_gategift
-    */
-    public static function shop_gategift()
-    { 
-        static $a = null; 
+     * 章节礼包表
+     * @return \shop_gategift
+     */
+    public static function shop_gategift() {
+        static $a = null;
         return self::initValue($a, 'shop_gategift');
     }
+
     /**
-    * @return \sm_shop_gategift shop_gategift item数据 
-    */
-    public static function shop_gategift_getItem($itemid)
-    { 
+     * @return \sm_shop_gategift shop_gategift item数据
+     */
+    public static function shop_gategift_getItem($itemid) {
         return self::get_hash_item('shop_gategift', $itemid);
     }
+
     /**
-    * 每日商店
-    * @return \shop_daily
-    */
-    public static function shop_daily()
-    { 
-        static $a = null; 
+     * 每日商店
+     * @return \shop_daily
+     */
+    public static function shop_daily() {
+        static $a = null;
         return self::initValue($a, 'shop_daily');
     }
+
     /**
-    * @return \sm_shop_daily shop_daily item数据 
-    */
-    public static function shop_daily_getItem($itemid)
-    { 
+     * @return \sm_shop_daily shop_daily item数据
+     */
+    public static function shop_daily_getItem($itemid) {
         return self::get_hash_item('shop_daily', $itemid);
     }
+
     /**
-    * 钻石商店
-    * @return \shop_cash
-    */
-    public static function shop_cash()
-    { 
-        static $a = null; 
+     * 钻石商店
+     * @return \shop_cash
+     */
+    public static function shop_cash() {
+        static $a = null;
         return self::initValue($a, 'shop_cash');
     }
+
     /**
-    * @return \sm_shop_cash shop_cash item数据 
-    */
-    public static function shop_cash_getItem($itemid)
-    { 
+     * @return \sm_shop_cash shop_cash item数据
+     */
+    public static function shop_cash_getItem($itemid) {
         return self::get_hash_item('shop_cash', $itemid);
     }
+
     /**
-    * 金币商店
-    * @return \shop_gold
-    */
-    public static function shop_gold()
-    { 
-        static $a = null; 
+     * 金币商店
+     * @return \shop_gold
+     */
+    public static function shop_gold() {
+        static $a = null;
         return self::initValue($a, 'shop_gold');
     }
+
     /**
-    * @return \sm_shop_gold shop_gold item数据 
-    */
-    public static function shop_gold_getItem($itemid)
-    { 
+     * @return \sm_shop_gold shop_gold item数据
+     */
+    public static function shop_gold_getItem($itemid) {
         return self::get_hash_item('shop_gold', $itemid);
     }
+
     /**
-    * 商城供给表-应该是废弃了
-    * @return \shop_supply
-    */
-    public static function shop_supply()
-    { 
-        static $a = null; 
+     * 商城供给表-应该是废弃了
+     * @return \shop_supply
+     */
+    public static function shop_supply() {
+        static $a = null;
         return self::initValue($a, 'shop_supply');
     }
+
     /**
-    * @return \sm_shop_supply shop_supply item数据 
-    */
-    public static function shop_supply_getItem($itemid)
-    { 
+     * @return \sm_shop_supply shop_supply item数据
+     */
+    public static function shop_supply_getItem($itemid) {
         return self::get_hash_item('shop_supply', $itemid);
     }
+
     /**
-    * 词条配置表
-    * @return \predicate
-    */
-    public static function predicate()
-    { 
-        static $a = null; 
+     * 词条配置表
+     * @return \predicate
+     */
+    public static function predicate() {
+        static $a = null;
         return self::initValue($a, 'predicate');
     }
+
     /**
-    * @return \sm_predicate predicate item数据 
-    */
-    public static function predicate_getItem($itemid)
-    { 
+     * @return \sm_predicate predicate item数据
+     */
+    public static function predicate_getItem($itemid) {
         return self::get_hash_item('predicate', $itemid);
     }
+
     /**
-    * 商城军备
-    * @return \shop_junbei
-    */
-    public static function shop_junbei()
-    { 
-        static $a = null; 
+     * 商城军备
+     * @return \shop_junbei
+     */
+    public static function shop_junbei() {
+        static $a = null;
         return self::initValue($a, 'shop_junbei');
     }
+
     /**
-    * @return \sm_shop_junbei shop_junbei item数据 
-    */
-    public static function shop_junbei_getItem($itemid)
-    { 
+     * @return \sm_shop_junbei shop_junbei item数据
+     */
+    public static function shop_junbei_getItem($itemid) {
         return self::get_hash_item('shop_junbei', $itemid);
     }
+
     /**
-    * 进化表
-    * @return \evolve
-    */
-    public static function evolve()
-    { 
-        static $a = null; 
+     * 进化表
+     * @return \evolve
+     */
+    public static function evolve() {
+        static $a = null;
         return self::initValue($a, 'evolve');
     }
+
     /**
-    * @return \sm_evolve evolve item数据 
-    */
-    public static function evolve_getItem($itemid)
-    { 
+     * @return \sm_evolve evolve item数据
+     */
+    public static function evolve_getItem($itemid) {
         return self::get_hash_item('evolve', $itemid);
     }
+
     /**
-    * 7日签到累计
-    * @return \active_day7_accumulate
-    */
-    public static function active_day7_accumulate()
-    { 
-        static $a = null; 
+     * 7日签到累计
+     * @return \active_day7_accumulate
+     */
+    public static function active_day7_accumulate() {
+        static $a = null;
         return self::initValue($a, 'active_day7_accumulate');
     }
+
     /**
-    * @return \sm_active_day7_accumulate active_day7_accumulate item数据 
-    */
-    public static function active_day7_accumulate_getItem($itemid)
-    { 
+     * @return \sm_active_day7_accumulate active_day7_accumulate item数据
+     */
+    public static function active_day7_accumulate_getItem($itemid) {
         return self::get_hash_item('active_day7_accumulate', $itemid);
     }
+
     /**
-    * 宝石表
-    * @return \gem
-    */
-    public static function gem()
-    { 
-        static $a = null; 
+     * 宝石表
+     * @return \gem
+     */
+    public static function gem() {
+        static $a = null;
         return self::initValue($a, 'gem');
     }
+
     /**
-    * @return \sm_gem gem item数据 
-    */
-    public static function gem_getItem($itemid)
-    { 
+     * @return \sm_gem gem item数据
+     */
+    public static function gem_getItem($itemid) {
         return self::get_hash_item('gem', $itemid);
     }
+
     /**
-    * 秘宝表
-    * @return \gate_sbox
-    */
-    public static function gate_sbox()
-    { 
-        static $a = null; 
+     * 秘宝表
+     * @return \gate_sbox
+     */
+    public static function gate_sbox() {
+        static $a = null;
         return self::initValue($a, 'gate_sbox');
     }
+
     /**
-    * @return \sm_gate_sbox gate_sbox itemArray 
-    */
-    public static function gate_sbox_getItemArray($key)
-    { 
+     * @return \sm_gate_sbox gate_sbox itemArray
+     */
+    public static function gate_sbox_getItemArray($key) {
         return self::get_hash_item('gate_sbox', $key);
     }
+
     /**
-    * 最新的成就
-    * @return \achieve_new
-    */
-    public static function achieve_new()
-    { 
-        static $a = null; 
+     * 最新的成就
+     * @return \achieve_new
+     */
+    public static function achieve_new() {
+        static $a = null;
         return self::initValue($a, 'achieve_new');
     }
+
     /**
-    * @return \sm_achieve_new achieve_new item数据 
-    */
-    public static function achieve_new_getItem($itemid)
-    { 
+     * @return \sm_achieve_new achieve_new item数据
+     */
+    public static function achieve_new_getItem($itemid) {
         return self::get_hash_item('achieve_new', $itemid);
     }
+
     /**
-    * 人物属性
-    * @return \heroattr
-    */
-    public static function heroattr()
-    { 
-        static $a = null; 
+     * 人物属性
+     * @return \heroattr
+     */
+    public static function heroattr() {
+        static $a = null;
         return self::initValue($a, 'heroattr');
     }
+
     /**
-    * @return \sm_heroattr heroattr item数据 
-    */
-    public static function heroattr_getItem($itemid)
-    { 
+     * @return \sm_heroattr heroattr item数据
+     */
+    public static function heroattr_getItem($itemid) {
         return self::get_hash_item('heroattr', $itemid);
     }
+
     /**
-    * 剧情对话
-    * @return \plots
-    */
-    public static function plots()
-    { 
-        static $a = null; 
+     * 剧情对话
+     * @return \plots
+     */
+    public static function plots() {
+        static $a = null;
         return self::initValue($a, 'plots');
     }
+
     /**
-    * @return \sm_plots plots item数据 
-    */
-    public static function plots_getItem($itemid)
-    { 
+     * @return \sm_plots plots item数据
+     */
+    public static function plots_getItem($itemid) {
         return self::get_hash_item('plots', $itemid);
     }
+
     /**
-    * 商城宝箱表
-    * @return \shop_box
-    */
-    public static function shop_box()
-    { 
-        static $a = null; 
+     * 商城宝箱表
+     * @return \shop_box
+     */
+    public static function shop_box() {
+        static $a = null;
         return self::initValue($a, 'shop_box');
     }
+
     /**
-    * @return \sm_shop_box shop_box item数据 
-    */
-    public static function shop_box_getItem($itemid)
-    { 
+     * @return \sm_shop_box shop_box item数据
+     */
+    public static function shop_box_getItem($itemid) {
         return self::get_hash_item('shop_box', $itemid);
     }
+
     /**
-    * 商城月卡
-    * @return \shop_monthcard
-    */
-    public static function shop_monthcard()
-    { 
-        static $a = null; 
+     * 商城月卡
+     * @return \shop_monthcard
+     */
+    public static function shop_monthcard() {
+        static $a = null;
         return self::initValue($a, 'shop_monthcard');
     }
+
     /**
-    * @return \sm_shop_monthcard shop_monthcard item数据 
-    */
-    public static function shop_monthcard_getItem($itemid)
-    { 
+     * @return \sm_shop_monthcard shop_monthcard item数据
+     */
+    public static function shop_monthcard_getItem($itemid) {
         return self::get_hash_item('shop_monthcard', $itemid);
     }
+
     /**
-    * 7日狂欢活跃点奖励
-    * @return \activepointreward
-    */
-    public static function activepointreward()
-    { 
-        static $a = null; 
+     * 7日狂欢活跃点奖励
+     * @return \activepointreward
+     */
+    public static function activepointreward() {
+        static $a = null;
         return self::initValue($a, 'activepointreward');
     }
+
     /**
-    * @return \sm_activepointreward activepointreward item数据 
-    */
-    public static function activepointreward_getItem($type, $pointId)
-    { 
+     * @return \sm_activepointreward activepointreward item数据
+     */
+    public static function activepointreward_getItem($type, $pointId) {
         return self::get_hash_item('activepointreward', "$type-$pointId");
     }
+
     /**
-    * 活动任务
-    * @return \activeTask
-    */
-    public static function activeTask()
-    { 
-        static $a = null; 
+     * 活动任务
+     * @return \activeTask
+     */
+    public static function activeTask() {
+        static $a = null;
         return self::initValue($a, 'activeTask');
     }
+
     /**
-    * @return \sm_activeTask activeTask item数据 
-    */
-    public static function activeTask_getItem($itemid)
-    { 
+     * @return \sm_activeTask activeTask item数据
+     */
+    public static function activeTask_getItem($itemid) {
         return self::get_hash_item('activeTask', $itemid);
     }
+
     /**
-    * 活动任务根据类型的不同分开
-    * @return \activeTask_type
-    */
-    public static function activeTask_type()
-    { 
-        static $a = null; 
+     * 活动任务根据类型的不同分开
+     * @return \activeTask_type
+     */
+    public static function activeTask_type() {
+        static $a = null;
         return self::initValue($a, 'activeTask_type');
     }
+
     /**
-    * @return \sm_activeTask_type activeTask_type itemArray 
-    */
-    public static function activeTask_type_getItemArray($key)
-    { 
+     * @return \sm_activeTask_type activeTask_type itemArray
+     */
+    public static function activeTask_type_getItemArray($key) {
         return self::get_hash_item('activeTask_type', $key);
     }
+
     /**
-    * 活动
-    * @return \activity
-    */
-    public static function activity()
-    { 
-        static $a = null; 
+     * 活动
+     * @return \activity
+     */
+    public static function activity() {
+        static $a = null;
         return self::initValue($a, 'activity');
     }
+
     /**
-    * @return \sm_activity activity item数据 
-    */
-    public static function activity_getItem($itemid)
-    { 
+     * @return \sm_activity activity item数据
+     */
+    public static function activity_getItem($itemid) {
         return self::get_hash_item('activity', $itemid);
     }
+
     /**
-    * 公告
-    * @return \announcement
-    */
-    public static function announcement()
-    { 
-        static $a = null; 
+     * 公告
+     * @return \announcement
+     */
+    public static function announcement() {
+        static $a = null;
         return self::initValue($a, 'announcement');
     }
+
     /**
-    * @return \sm_announcement announcement item数据 
-    */
-    public static function announcement_getItem($itemid)
-    { 
+     * @return \sm_announcement announcement item数据
+     */
+    public static function announcement_getItem($itemid) {
         return self::get_hash_item('announcement', $itemid);
     }
+
     /**
-    * 战力荣誉榜信息
-    * @return \rank_fightpowerreward
-    */
-    public static function rank_fightpowerreward()
-    { 
-        static $a = null; 
+     * 战力荣誉榜信息
+     * @return \rank_fightpowerreward
+     */
+    public static function rank_fightpowerreward() {
+        static $a = null;
         return self::initValue($a, 'rank_fightpowerreward');
     }
+
     /**
-    * @return \sm_rank_fightpowerreward rank_fightpowerreward item数据 
-    */
-    public static function rank_fightpowerreward_getItem($itemid)
-    { 
+     * @return \sm_rank_fightpowerreward rank_fightpowerreward item数据
+     */
+    public static function rank_fightpowerreward_getItem($itemid) {
         return self::get_hash_item('rank_fightpowerreward', $itemid);
     }
+
     /**
-    * 主线荣誉榜信息
-    * @return \rank_passgatereward
-    */
-    public static function rank_passgatereward()
-    { 
-        static $a = null; 
+     * 主线荣誉榜信息
+     * @return \rank_passgatereward
+     */
+    public static function rank_passgatereward() {
+        static $a = null;
         return self::initValue($a, 'rank_passgatereward');
     }
+
     /**
-    * @return \sm_rank_passgatereward rank_passgatereward item数据 
-    */
-    public static function rank_passgatereward_getItem($itemid)
-    { 
+     * @return \sm_rank_passgatereward rank_passgatereward item数据
+     */
+    public static function rank_passgatereward_getItem($itemid) {
         return self::get_hash_item('rank_passgatereward', $itemid);
     }
+
     /**
-    * 玩家等级表
-    * @return \player_level
-    */
-    public static function player_level()
-    { 
-        static $a = null; 
+     * 玩家等级表
+     * @return \player_level
+     */
+    public static function player_level() {
+        static $a = null;
         return self::initValue($a, 'player_level');
     }
+
     /**
-    * @return \sm_player_level player_level item数据 
-    */
-    public static function player_level_getItem($itemid)
-    { 
+     * @return \sm_player_level player_level item数据
+     */
+    public static function player_level_getItem($itemid) {
         return self::get_hash_item('player_level', $itemid);
     }
+
     /**
-    *  辅助:主线剧情解锁
-    * @return \gate_unlock
-    */
-    public static function gate_unlock()
-    { 
-        static $a = null; 
+     *  辅助:主线剧情解锁
+     * @return \gate_unlock
+     */
+    public static function gate_unlock() {
+        static $a = null;
         return self::initValue($a, 'gate_unlock');
     }
+
     /**
-    * @return \sm_gate_unlock gate_unlock itemArray 
-    */
-    public static function gate_unlock_getItemArray($key)
-    { 
+     * @return \sm_gate_unlock gate_unlock itemArray
+     */
+    public static function gate_unlock_getItemArray($key) {
         return self::get_hash_item('gate_unlock', $key);
     }
+
     /**
-    * 辅助: 波次直查
-    * @return \waveItem
-    */
-    public static function waveItem()
-    { 
-        static $a = null; 
+     * 辅助: 波次直查
+     * @return \waveItem
+     */
+    public static function waveItem() {
+        static $a = null;
         return self::initValue($a, 'waveItem');
     }
+
     /**
-    * @return \sm_waveItem waveItem item数据 
-    */
-    public static function waveItem_getItem($gateId, $waveId)
-    { 
+     * @return \sm_waveItem waveItem item数据
+     */
+    public static function waveItem_getItem($gateId, $waveId) {
         return self::get_hash_item('waveItem', "$gateId-$waveId");
     }
+
     /**
-    * 道具宝箱表
-    * @return \item_2023_box
-    */
-    public static function item_2023_box()
-    { 
-        static $a = null; 
+     * 道具宝箱表
+     * @return \item_2023_box
+     */
+    public static function item_2023_box() {
+        static $a = null;
         return self::initValue($a, 'item_2023_box');
     }
+
     /**
-    * @return \sm_item_2023_box item_2023_box item数据 
-    */
-    public static function item_2023_box_getItem($itemid)
-    { 
+     * @return \sm_item_2023_box item_2023_box item数据
+     */
+    public static function item_2023_box_getItem($itemid) {
         return self::get_hash_item('item_2023_box', $itemid);
     }
+
     /**
-    * 人物分类
-    * @return \heroType_typeId
-    */
-    public static function heroType_typeId()
-    { 
-        static $a = null; 
+     * 人物分类
+     * @return \heroType_typeId
+     */
+    public static function heroType_typeId() {
+        static $a = null;
         return self::initValue($a, 'heroType_typeId');
     }
+
     /**
-    * @return \sm_heroType_typeId heroType_typeId itemArray 
-    */
-    public static function heroType_typeId_getItemArray($key)
-    { 
+     * @return \sm_heroType_typeId heroType_typeId itemArray
+     */
+    public static function heroType_typeId_getItemArray($key) {
         return self::get_hash_item('heroType_typeId', $key);
     }
+
     /**
-    * 激活码表
-    * @return \token_gift
-    */
-    public static function token_gift()
-    { 
-        static $a = null; 
+     * 激活码表
+     * @return \token_gift
+     */
+    public static function token_gift() {
+        static $a = null;
         return self::initValue($a, 'token_gift');
     }
+
     /**
-    * @return \sm_token_gift token_gift item数据 
-    */
-    public static function token_gift_getItem($itemid)
-    { 
+     * @return \sm_token_gift token_gift item数据
+     */
+    public static function token_gift_getItem($itemid) {
         return self::get_hash_item('token_gift', $itemid);
     }
+
     /**
-    * 公共兑换码
-    * @return \token_publicgift
-    */
-    public static function token_publicgift()
-    { 
-        static $a = null; 
+     * 公共兑换码
+     * @return \token_publicgift
+     */
+    public static function token_publicgift() {
+        static $a = null;
         return self::initValue($a, 'token_publicgift');
     }
+
     /**
-    * @return \sm_token_publicgift token_publicgift item数据 
-    */
-    public static function token_publicgift_getItem($itemid)
-    { 
+     * @return \sm_token_publicgift token_publicgift item数据
+     */
+    public static function token_publicgift_getItem($itemid) {
         return self::get_hash_item('token_publicgift', $itemid);
     }
+
     /**
-    * 游戏功能解锁信息
-    * @return \fun_unlock
-    */
-    public static function fun_unlock()
-    { 
-        static $a = null; 
+     * 游戏功能解锁信息
+     * @return \fun_unlock
+     */
+    public static function fun_unlock() {
+        static $a = null;
         return self::initValue($a, 'fun_unlock');
     }
+
     /**
-    * @return \sm_fun_unlock fun_unlock item数据 
-    */
-    public static function fun_unlock_getItem($itemid)
-    { 
+     * @return \sm_fun_unlock fun_unlock item数据
+     */
+    public static function fun_unlock_getItem($itemid) {
         return self::get_hash_item('fun_unlock', $itemid);
     }
+
     /**
-    * 首充表
-    * @return \firstrecharge_reward
-    */
-    public static function firstrecharge_reward()
-    { 
-        static $a = null; 
+     * 首充表
+     * @return \firstrecharge_reward
+     */
+    public static function firstrecharge_reward() {
+        static $a = null;
         return self::initValue($a, 'firstrecharge_reward');
     }
+
     /**
-    * @return \sm_firstrecharge_reward firstrecharge_reward item数据 
-    */
-    public static function firstrecharge_reward_getItem($itemid)
-    { 
+     * @return \sm_firstrecharge_reward firstrecharge_reward item数据
+     */
+    public static function firstrecharge_reward_getItem($itemid) {
         return self::get_hash_item('firstrecharge_reward', $itemid);
     }
+
     /**
-    * 累计充值
-    * @return \accumulaterecharge
-    */
-    public static function accumulaterecharge()
-    { 
-        static $a = null; 
+     * 累计充值
+     * @return \accumulaterecharge
+     */
+    public static function accumulaterecharge() {
+        static $a = null;
         return self::initValue($a, 'accumulaterecharge');
     }
+
     /**
-    * @return \sm_accumulaterecharge accumulaterecharge item数据 
-    */
-    public static function accumulaterecharge_getItem($itemid)
-    { 
+     * @return \sm_accumulaterecharge accumulaterecharge item数据
+     */
+    public static function accumulaterecharge_getItem($itemid) {
         return self::get_hash_item('accumulaterecharge', $itemid);
     }
+
+    /**
+     * 次级功能开启表
+     * @return \subfun_unlock
+     */
+    public static function subfun_unlock() {
+        static $a = null;
+        return self::initValue($a, 'subfun_unlock');
+    }
+
+    /**
+     * @return \sm_subfun_unlock subfun_unlock item数据
+     */
+    public static function subfun_unlock_getItem($itemid) {
+        return self::get_hash_item('subfun_unlock', $itemid);
+    }
+
     /**
-    * 当前版本(时间戳)
-    * @return \ver
-    */
-    public static function ver()
-    { 
-        static $a = null; 
+     * 商城总表
+     * @return \shop
+     */
+    public static function shop() {
+        static $a = null;
+        return self::initValue($a, 'shop');
+    }
+
+    /**
+     * @return \sm_shop shop item数据
+     */
+    public static function shop_getItem($itemid) {
+        return self::get_hash_item('shop', $itemid);
+    }
+
+    /**
+     * 当前版本(时间戳)
+     * @return \ver
+     */
+    public static function ver() {
+        static $a = null;
         return self::initValue($a, 'ver', false);
     }
+
     /**
-    * 客户端配置数据
-    * @return \client
-    */
-    public static function client()
-    { 
-        static $a = null; 
+     * 客户端配置数据
+     * @return \client
+     */
+    public static function client() {
+        static $a = null;
         return self::initValue($a, 'client', false);
     }
 }
-

+ 33 - 1
Gameserver/App/model/Const/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-06 10:15:03
+ // 日期: 2024-09-11 14:03:12
 ////////////////////
 
 /**
@@ -813,6 +813,38 @@ class GameConfig {
         return self::get_hash_item('accumulaterecharge', $itemid);
     }
     /**
+    * 次级功能开启表
+    * @return \subfun_unlock
+    */
+    public static function subfun_unlock()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'subfun_unlock');
+    }
+    /**
+    * @return \sm_subfun_unlock subfun_unlock item数据 
+    */
+    public static function subfun_unlock_getItem($itemid)
+    { 
+        return self::get_hash_item('subfun_unlock', $itemid);
+    }
+    /**
+    * 商城总表
+    * @return \shop
+    */
+    public static function shop()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'shop');
+    }
+    /**
+    * @return \sm_shop shop item数据 
+    */
+    public static function shop_getItem($itemid)
+    { 
+        return self::get_hash_item('shop', $itemid);
+    }
+    /**
     * 当前版本(时间戳)
     * @return \ver
     */

+ 6 - 5
Gameserver/App/model/Const/sm_fun_unlock.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-04 11:35:50
+ // 日期: 2024-09-09 15:10:25
 ////////////////////
 
 
@@ -39,22 +39,23 @@ class sm_fun_unlock
     public $cmptPath;
 
     /**
-    * @var Int32 1:参与战斗结束即可  2战斗胜利  3某场战斗参加N次数才行  
+    * @var Int32 1:参与关卡;参数1:关卡ID  2通关关卡;参数1:关卡ID  
     */
     public $unlockType;
 
     /**
-    * @var Int32 关卡id  
+    * @var Int32 对应条件的关卡ID  
     */
     public $unlockGateId;
 
     /**
-    * @var Int32 解锁顺序  
+    * @var Int32 在同一条件下功能的解锁顺序  
     */
     public $unlockIndex;
 
     /**
-    * @var Int32 存在解锁提示的填1  default(0) 
+    * @var Int32 存在解锁提示:1
+    *  不存在解锁提示:0  default(0) 
     */
     public $unlockTip;
 

+ 1 - 1
Gameserver/App/model/Const/sm_globalsettings.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-05 16:05:50
+ // 日期: 2024-09-09 11:05:50
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_hero.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-05 17:35:50
+ // 日期: 2024-09-09 10:25:49
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_heroType_typeId.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-05 17:35:50
+ // 日期: 2024-09-09 10:25:49
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_plots.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-02 17:52:32
+ // 日期: 2024-09-10 15:05:50
 ////////////////////
 
 

+ 52 - 0
Gameserver/App/model/Const/sm_shop.php

@@ -0,0 +1,52 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-09-11 11:35:50
+////////////////////
+
+
+/**
+ * Static Model shop 商城总表
+ */
+class sm_shop
+{
+
+    /**
+    * @var Int32 商品ID  
+    */
+    public $typeId;
+
+    /**
+    * @var String 商品名称  
+    */
+    public $name;
+
+    /**
+    * @var String 商品描述  
+    */
+    public $desc;
+
+    /**
+    * @var Int32 价格  
+    */
+    public $price;
+
+    /**
+    * @var String 定价类型(g:金币, c:元宝, y:人民币) default(y) 
+    */
+    public $priceType;
+
+    /**
+    * @var Int32 商城道具ID default(0) 
+    */
+    public $shopItemTypeId;
+
+    /**
+    * @var String 商城道具类型 default(cash) 
+    */
+    public $shopItemType;
+
+}
+

+ 77 - 0
Gameserver/App/model/Const/sm_subfun_unlock.php

@@ -0,0 +1,77 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-09-09 18:06:13
+////////////////////
+
+
+/**
+ * Static Model subfun_unlock 次级功能开启表
+ */
+class sm_subfun_unlock
+{
+
+    /**
+    * @var Int32 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $id;
+
+    /**
+    * @var String 功能名称  
+    */
+    public $name;
+
+    /**
+    * @var Int32 所属功能id default(0) 
+    */
+    public $funTypeId;
+
+    /**
+    * @var Int32 活动类型  
+    */
+    public $type;
+
+    /**
+    * @var String 开始时间  
+    */
+    public $startTs;
+
+    /**
+    * @var String 结束时间  
+    */
+    public $endTs;
+
+    /**
+    * @var String 活动持续时间  
+    */
+    public $ts;
+
+    /**
+    * @var String 图片  
+    */
+    public $icon;
+
+    /**
+    * @var String 描述信息  
+    */
+    public $desc;
+
+    /**
+    * @var Int32 解锁类型  
+    */
+    public $unlockType;
+
+    /**
+    * @var Int32 对应条件的关卡ID  
+    */
+    public $unlockGateId;
+
+    /**
+    * @var Int32 解锁顺序  
+    */
+    public $unlockIndex;
+
+}
+

+ 27 - 1
Gameserver/App/process/PayProc.php

@@ -352,7 +352,33 @@ class PayProc {
         my_Assert($order->product_id != null, ErrCode::pay_order_product_id);
         $user = ctx();
         self::$retArr = array();
-        if ($order->product_id == 1) {
+
+        $shopItem = GameConfig::shop_getItem($order->product_id);               # 商城总表中查找下配置数据
+        if (null != $shopItem) {
+            switch ($shopItem->shopItemType) {
+                case 'cash':                                                    # 充值二级货币
+                    $cashMo = GameConfig::shop_cash_getItem($shopItem->shopItemTypeId);
+                    my_Assert(null != $cashMo, ErrCode::err_const_no);
+//                    StoreProc::AddMultiItemInStore($cashMo->reward, "付费");
+                    ShopProc::BuyShop_Cash(EnumShopGift::Cash_Shop, $shopItem->shopItemTypeId, $order->product_count);
+                    self::$retArr[] = $cashMo->reward;
+                    break;
+                case 'monthcard':                                               # 月卡
+                    $monthCardMo = GameConfig::shop_monthcard_getItem($shopItem->shopItemTypeId);
+                    my_Assert(null != $monthCardMo, ErrCode::err_const_no);
+                    ShopProc::BuyShop_MonthCard(EnumShopGift::MonthCard_Shop, $shopItem->shopItemTypeId, $order->product_count);
+                    break;
+                case 'box':
+                case 'daily':
+                case 'gategift':
+                case 'gold':
+                case 'junbei':
+                case 'supply' :
+                default:
+                    my_Assert(false, "该道具并非现金充值类!");
+                    break;
+            }
+        } else if ($order->product_id == 1) {
             $user->base()->Add_Cash($order->product_count);
             self::$retArr[] = "2," . $order->product_count;
         } else if ($order->product_id >= 6 && $order->product_id <= 1000) {//充值表

+ 5 - 5
Gameserver/App/service_call/pay/Mo/payRequest.php

@@ -14,7 +14,7 @@ class PayRequest extends loyalsoft\Object_ext {
     /**
      * @var bool 是否测试(金额降低100倍)(线上版千万别瞎改)
      */
-    const isTest = false;
+    const isTest = true;
 
     /**
      * @var string 充值回调透传参数(len=250)
@@ -236,12 +236,12 @@ class PayRequest extends loyalsoft\Object_ext {
 //                $this->amount = number_format(0.01, 2, '.', '');
 //                $this->product_price = 0.01;
 //            } else  //
-//            if ($this->amount != loyalsoft\GameConfig::shop_getItem($this->product_id)->price) {
+            if ($this->amount != loyalsoft\GameConfig::shop_getItem($this->product_id)->price) {
 //                var_dump($this->product_id);
 //                var_dump(loyalsoft\GameConfig::shop_getItem($this->product_id)->price);
-//                \loyalsoft\CLog::pay('金额不符' . $this->amount . " ");
-//                exit('{"err":1,"msg":"金额不符!"}');
-//            }
+                \loyalsoft\CLog::pay('金额不符' . $this->amount . " ");
+                exit('{"err":1,"msg":"金额不符!"}');
+            }
         }
         loyalsoft\daoInst()->insert(self::orderTab)                                                                                                                          # 创建一个新的订单
                 ->data(array('order_ts' => loyalsoft\now()))