소스 검색

source first commit

gwang 5 년 전
부모
커밋
19e67a2dc1
100개의 변경된 파일8315개의 추가작업 그리고 0개의 파일을 삭제
  1. 56 0
      Gameserver/Amfphp/AutoLoad.php
  2. 1009 0
      Gameserver/Amfphp/Configs/GameConfig.php
  3. 92 0
      Gameserver/Amfphp/Configs/GameConstants.php
  4. 55 0
      Gameserver/Amfphp/Configs/config_and.php
  5. 45 0
      Gameserver/Amfphp/Configs/config_ios.php
  6. 47 0
      Gameserver/Amfphp/Configs/config_web.php
  7. 2 0
      Gameserver/Amfphp/Configs/defines/const_and.php
  8. 2 0
      Gameserver/Amfphp/Configs/defines/const_ios.php
  9. 32 0
      Gameserver/Amfphp/Configs/defines/const_web.php
  10. 28 0
      Gameserver/Amfphp/Model/Const/GM_uids.php
  11. 131 0
      Gameserver/Amfphp/Model/Const/GoodsItemModel.php
  12. 600 0
      Gameserver/Amfphp/Model/Const/globalsettings.php
  13. 73 0
      Gameserver/Amfphp/Model/Const/primordial_data.php
  14. 58 0
      Gameserver/Amfphp/Model/Const/sm_activity.php
  15. 43 0
      Gameserver/Amfphp/Model/Const/sm_activity_onlinegift.php
  16. 48 0
      Gameserver/Amfphp/Model/Const/sm_activity_reggift.php
  17. 48 0
      Gameserver/Amfphp/Model/Const/sm_announcement.php
  18. 38 0
      Gameserver/Amfphp/Model/Const/sm_audio.php
  19. 68 0
      Gameserver/Amfphp/Model/Const/sm_box.php
  20. 38 0
      Gameserver/Amfphp/Model/Const/sm_boxJingYanCards.php
  21. 88 0
      Gameserver/Amfphp/Model/Const/sm_boxpool.php
  22. 79 0
      Gameserver/Amfphp/Model/Const/sm_buff.php
  23. 53 0
      Gameserver/Amfphp/Model/Const/sm_buffeffect.php
  24. 58 0
      Gameserver/Amfphp/Model/Const/sm_bullet.php
  25. 48 0
      Gameserver/Amfphp/Model/Const/sm_choujiang.php
  26. 33 0
      Gameserver/Amfphp/Model/Const/sm_choujiang_baodi.php
  27. 33 0
      Gameserver/Amfphp/Model/Const/sm_choujiang_settings.php
  28. 28 0
      Gameserver/Amfphp/Model/Const/sm_clientVersionHistory.php
  29. 58 0
      Gameserver/Amfphp/Model/Const/sm_day7.php
  30. 28 0
      Gameserver/Amfphp/Model/Const/sm_dragonbone_paras.php
  31. 113 0
      Gameserver/Amfphp/Model/Const/sm_gate.php
  32. 98 0
      Gameserver/Amfphp/Model/Const/sm_gate_carbon.php
  33. 78 0
      Gameserver/Amfphp/Model/Const/sm_gate_carbon_content.php
  34. 58 0
      Gameserver/Amfphp/Model/Const/sm_gate_city.php
  35. 48 0
      Gameserver/Amfphp/Model/Const/sm_gate_combat.php
  36. 43 0
      Gameserver/Amfphp/Model/Const/sm_gate_forever.php
  37. 33 0
      Gameserver/Amfphp/Model/Const/sm_gate_starreward.php
  38. 53 0
      Gameserver/Amfphp/Model/Const/sm_gate_story.php
  39. 53 0
      Gameserver/Amfphp/Model/Const/sm_gate_world.php
  40. 103 0
      Gameserver/Amfphp/Model/Const/sm_gatelevel.php
  41. 38 0
      Gameserver/Amfphp/Model/Const/sm_guilddonatereward.php
  42. 33 0
      Gameserver/Amfphp/Model/Const/sm_guildlevel.php
  43. 68 0
      Gameserver/Amfphp/Model/Const/sm_guildlibao.php
  44. 238 0
      Gameserver/Amfphp/Model/Const/sm_hero.php
  45. 43 0
      Gameserver/Amfphp/Model/Const/sm_hero_levelexp.php
  46. 33 0
      Gameserver/Amfphp/Model/Const/sm_hero_levelexp_costitem.php
  47. 43 0
      Gameserver/Amfphp/Model/Const/sm_hero_skin.php
  48. 73 0
      Gameserver/Amfphp/Model/Const/sm_heroextra_dengjie.php
  49. 38 0
      Gameserver/Amfphp/Model/Const/sm_heroextra_favor.php
  50. 43 0
      Gameserver/Amfphp/Model/Const/sm_heroextra_godblood.php
  51. 23 0
      Gameserver/Amfphp/Model/Const/sm_heroextra_jinengshengji.php
  52. 63 0
      Gameserver/Amfphp/Model/Const/sm_heroextra_level.php
  53. 58 0
      Gameserver/Amfphp/Model/Const/sm_heroextra_star.php
  54. 168 0
      Gameserver/Amfphp/Model/Const/sm_item.php
  55. 38 0
      Gameserver/Amfphp/Model/Const/sm_itemlevel.php
  56. 33 0
      Gameserver/Amfphp/Model/Const/sm_localtexts.php
  57. 48 0
      Gameserver/Amfphp/Model/Const/sm_playerlevel.php
  58. 38 0
      Gameserver/Amfphp/Model/Const/sm_plot.php
  59. 43 0
      Gameserver/Amfphp/Model/Const/sm_pvp_activityreward.php
  60. 48 0
      Gameserver/Amfphp/Model/Const/sm_pvp_leaguereward.php
  61. 68 0
      Gameserver/Amfphp/Model/Const/sm_pvp_leaguescore.php
  62. 48 0
      Gameserver/Amfphp/Model/Const/sm_pvp_rankreward.php
  63. 53 0
      Gameserver/Amfphp/Model/Const/sm_secretshop_goodsType.php
  64. 23 0
      Gameserver/Amfphp/Model/Const/sm_secretshop_refresh.php
  65. 53 0
      Gameserver/Amfphp/Model/Const/sm_secretshop_typeId.php
  66. 98 0
      Gameserver/Amfphp/Model/Const/sm_segment.php
  67. 58 0
      Gameserver/Amfphp/Model/Const/sm_segment_byPinzhi.php
  68. 30 0
      Gameserver/Amfphp/Model/Const/sm_segment_ronghe.php
  69. 33 0
      Gameserver/Amfphp/Model/Const/sm_service_schedule.php
  70. 78 0
      Gameserver/Amfphp/Model/Const/sm_shop.php
  71. 110 0
      Gameserver/Amfphp/Model/Const/sm_skill.php
  72. 108 0
      Gameserver/Amfphp/Model/Const/sm_skill_proty.php
  73. 38 0
      Gameserver/Amfphp/Model/Const/sm_skill_shengji.php
  74. 43 0
      Gameserver/Amfphp/Model/Const/sm_smelting.php
  75. 53 0
      Gameserver/Amfphp/Model/Const/sm_sysmail.php
  76. 58 0
      Gameserver/Amfphp/Model/Const/sm_task.php
  77. 48 0
      Gameserver/Amfphp/Model/Const/sm_task_achi.php
  78. 38 0
      Gameserver/Amfphp/Model/Const/sm_tokenGift.php
  79. 38 0
      Gameserver/Amfphp/Model/Const/sm_zonelist.php
  80. 34 0
      Gameserver/Amfphp/Model/User/CarbonModel.php
  81. 142 0
      Gameserver/Amfphp/Model/User/EmailModel.php
  82. 37 0
      Gameserver/Amfphp/Model/User/GamePvpChanlian.php
  83. 342 0
      Gameserver/Amfphp/Model/User/GuildModel.php
  84. 57 0
      Gameserver/Amfphp/Model/User/HeroManualModel.php
  85. 151 0
      Gameserver/Amfphp/Model/User/HeroModel.php
  86. 222 0
      Gameserver/Amfphp/Model/User/PrivateStateModel.php
  87. 29 0
      Gameserver/Amfphp/Model/User/PublicStateModel.php
  88. 71 0
      Gameserver/Amfphp/Model/User/StoreModel.php
  89. 19 0
      Gameserver/Amfphp/Model/User/UGateModel.php
  90. 29 0
      Gameserver/Amfphp/Model/User/UserCarbonModel.php
  91. 15 0
      Gameserver/Amfphp/Model/User/UserFriendsModel.php
  92. 77 0
      Gameserver/Amfphp/Model/User/UserGameHeroModel.php
  93. 421 0
      Gameserver/Amfphp/Model/User/UserGameModel.php
  94. 71 0
      Gameserver/Amfphp/Model/User/UserGateDifficulty.php
  95. 44 0
      Gameserver/Amfphp/Model/User/UserGatesModel.php
  96. 90 0
      Gameserver/Amfphp/Model/User/UserGuildModel.php
  97. 129 0
      Gameserver/Amfphp/Model/User/UserHeroModel.php
  98. 55 0
      Gameserver/Amfphp/Model/User/UserInfoMo.php
  99. 178 0
      Gameserver/Amfphp/Model/User/UserInteractModel.php
  100. 117 0
      Gameserver/Amfphp/Model/User/UserLotteryModel.php

+ 56 - 0
Gameserver/Amfphp/AutoLoad.php

@@ -0,0 +1,56 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 加载处理类
+ * @version
+ *          1.0.0 Created at 2017-2-14. by --gwang
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-2-14, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class AutoLoad
+{
+
+    /**
+     * 初始化代码自动载入功能
+     */
+    static public function Init()
+    {
+        static $a = true;                                                       # 利用静态变量, 避免重复执行
+        if ($a) {
+            static $incs = array(#                                              # 指定框架查找路径
+                ROOTDIR . '/Util/', #                                           # 常用辅助代码
+                ROOTDIR . '/Process/', #                                        # 逻辑处理代码
+                ROOTDIR . '/Model/User/', #                                     # 数据结构定义
+            );
+            $incPath = get_include_path() . PATH_SEPARATOR . join(PATH_SEPARATOR, $incs);
+            set_include_path($incPath);
+//            var_dump(get_include_path());
+            static $ns = __NAMESPACE__;                                         # 当前命名空间(loyalsoft)
+            spl_autoload_register(function ($className) use($ns) {              # 框架: 添加自动加载功能
+                if (strncmp($className, $ns, strlen($ns)) == 0) {               # 过滤: 符合当前命名空间的类
+                    include str_replace("$ns\\", '', $className) . '.php';      # 约定: 文件名要剔除命名空间
+                }
+            }, true, true);
+            $a = false;
+        }
+    }
+
+}
+
+# 预加载一部分常用的代码.
+require_once ROOTDIR . '/../globals.php';                           # 导入全局配置
+require_once ROOTDIR . '/Configs/GameConstants.php';                # 导入游戏基础常量定义
+require_once ROOTDIR . '/Configs/GameConfig.php';                   # 导入游戏静态数据
+require_once ROOTDIR . '/config.php';                               # 服务器配置数据
+require_once ROOTDIR . '/Util/UtilInclude.php';                     # 一部分Utils直接预加载
+require_once ROOTDIR . '/Process/vo/Include.php';                   # 导入框架vo
+require_once ROOTDIR . '/Process/PreProc.php';                      # 预加载逻辑
+require_once ROOTDIR . '/Process/UserProc.php';                     # 玩家处理逻辑
+require_once ROOTDIR . '/Process/FightProc/PVPProc.php';            # (userproc中引用到了)
+require_once ROOTDIR . '/Model/User/UserInfoMo.php';                # 玩家全部数据模型
+require_once ROOTDIR . '/Model/User/UserGameModel.php';             # 游戏数据
+require_once ROOTDIR . '/Model/User/UserProfile.php';               # 玩家画像
+require_once ROOTDIR . '/Model/User/GuildModel.php';
+AutoLoad::Init();                                                  // 直接执行初始化

+ 1009 - 0
Gameserver/Amfphp/Configs/GameConfig.php

@@ -0,0 +1,1009 @@
+<?php
+
+namespace loyalsoft;
+
+////////////////////
+// 由CodeGenerator创建。
+// Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+// author: gwang
+// 日期: 2018-02-08 10:53:29
+////////////////////
+
+/**
+ * 常量配置数据
+ */
+class GameConfig {
+// <editor-fold defaultstate="collapsed" desc="  基础代码 ">
+
+    /**
+     * 是否启用codegen
+     */
+    private static function isCG() {
+        return defined('CodeGen_Enabled') && CodeGen_Enabled;
+    }
+
+    /**
+     * @var bool 分区是否使用独立的常量配置数据
+     */
+    private static $useZoneId = false;
+
+    /**
+     * 追加分区列表字符串
+     * @return string
+     */
+    private static function zoneid() {
+        global $zoneid;
+        return self::$useZoneId ? "-zone$zoneid" : "";
+    }
+
+    /**
+     * 初始化指定变量, 非null的情况下直接跳出
+     * 可能从文件中或者redis中获取原始数据对变量进行初始化
+     * @param mixed $a 变量
+     * @param string $modelName 用来初始化变量的资源名称
+     * @param bool $isHash 数据是否采用hash结构(否:普通字符串)
+     */
+    static private function initValue(&$a, $modelName, $isHash = true) {
+        $key = 'gamecfg-' . $modelName . self::zoneid();
+        if (is_null($a)) {
+            if (self::isCG()) {
+                $a = include $key . '.php';
+            } else {
+                $a = $isHash ? gMem()->hgetall($key) : gMem()->get($key);
+            }
+        }
+        return $a;
+    }
+
+    /**
+     * 获取hash结构的一个item
+     * @param string $modelName 模块名称
+     * @param mixed/string/int $itemId 索引
+     * @return mixed
+     */
+    private static function get_hash_item($modelName, $itemId) {
+        if (self::isCG()) {
+            $data = self::$modelName();
+            if (property_exists($data, $itemId)) {
+                return $data->$itemId;
+            }
+        } else {
+            $key = 'gamecfg-' . $modelName . self::zoneid();
+            return gMem()->hget($key, $itemId);
+        }
+        return null;
+    }
+
+// </editor-fold>
+
+    /**
+     * 全局参数
+     * @return \globalsettings
+     */
+    public static function globalsettings() {
+        static $a = null;
+        return self::initValue($a, 'globalsettings');
+    }
+
+    /**
+     * @return \globalsettings globalsettingsitem数据
+     */
+    public static function globalsettings_getItem($itemid) {
+        return self::get_hash_item('globalsettings', $itemid);
+    }
+
+    /**
+     * 英雄模块
+     * @return \hero
+     */
+    public static function hero() {
+        static $a = null;
+        return self::initValue($a, 'hero');
+    }
+
+    /**
+     * @return \sm_hero heroitem数据
+     */
+    public static function hero_getItem($itemid) {
+        return self::get_hash_item('hero', $itemid);
+    }
+
+    /**
+     * 英雄的升级(属性加成)
+     * @return \heroextra_level
+     */
+    public static function heroextra_level() {
+        static $a = null;
+        return self::initValue($a, 'heroextra_level');
+    }
+
+    /**
+     * @return \sm_heroextra_level heroextra_levelitem数据
+     */
+    public static function heroextra_level_getItem($itemid) {
+        return self::get_hash_item('heroextra_level', $itemid);
+    }
+
+    /**
+     * 开服七天活动
+     * @return \day7
+     */
+    public static function day7() {
+        static $a = null;
+        return self::initValue($a, 'day7');
+    }
+
+    /**
+     * @return \sm_day7 day7item数据
+     */
+    public static function day7_getItem($itemid) {
+        return self::get_hash_item('day7', $itemid);
+    }
+
+    /**
+     *
+     * @return \item
+     */
+    public static function item() {
+        static $a = null;
+        return self::initValue($a, 'item');
+    }
+
+    /**
+     * @return \sm_item itemitem数据
+     */
+    public static function item_getItem($itemid) {
+        return self::get_hash_item('item', $itemid);
+    }
+
+    /**
+     *
+     * @return \itemlevel
+     */
+    public static function itemlevel() {
+        static $a = null;
+        return self::initValue($a, 'itemlevel');
+    }
+
+    /**
+     * @return \sm_itemlevel itemlevelitem数据
+     */
+    public static function itemlevel_getItem($itemid) {
+        return self::get_hash_item('itemlevel', $itemid);
+    }
+
+    /**
+     * 英雄的好感度提升(消耗金币)
+     * @return \heroextra_favor
+     */
+    public static function heroextra_favor() {
+        static $a = null;
+        return self::initValue($a, 'heroextra_favor');
+    }
+
+    /**
+     * @return \sm_heroextra_favor heroextra_favoritem数据
+     */
+    public static function heroextra_favor_getItem($itemid) {
+        return self::get_hash_item('heroextra_favor', $itemid);
+    }
+
+    /**
+     * 英雄的升级——每级成长消耗经验需求表
+     * @return \hero_levelexp
+     */
+    public static function hero_levelexp() {
+        static $a = null;
+        return self::initValue($a, 'hero_levelexp');
+    }
+
+    /**
+     * @return \sm_hero_levelexp hero_levelexpitem数据
+     */
+    public static function hero_levelexp_getItem($itemid) {
+        return self::get_hash_item('hero_levelexp', $itemid);
+    }
+
+    /**
+     * 英雄的升星(消耗金币+ 属性加成)
+     * @return \heroextra_star
+     */
+    public static function heroextra_star() {
+        static $a = null;
+        return self::initValue($a, 'heroextra_star');
+    }
+
+    /**
+     * @return \sm_heroextra_star heroextra_staritem数据
+     */
+    public static function heroextra_star_getItem($itemid) {
+        return self::get_hash_item('heroextra_star', $itemid);
+    }
+
+    /**
+     * 英雄的升阶(消耗金币+ 属性加成)
+     * @return \heroextra_dengjie
+     */
+    public static function heroextra_dengjie() {
+        static $a = null;
+        return self::initValue($a, 'heroextra_dengjie');
+    }
+
+    /**
+     * @return \sm_heroextra_dengjie heroextra_dengjieitem数据
+     */
+    public static function heroextra_dengjie_getItem($itemid) {
+        return self::get_hash_item('heroextra_dengjie', $itemid);
+    }
+
+    /**
+     * 关卡
+     * @return \gate
+     */
+    public static function gate() {
+        static $a = null;
+        return self::initValue($a, 'gate');
+    }
+
+    /**
+     * @return \sm_gate gateitem数据
+     */
+    public static function gate_getItem($itemid) {
+        return self::get_hash_item('gate', $itemid);
+    }
+
+    /**
+     * 关卡波茨数据
+     * @return \gatelevel
+     */
+    public static function gatelevel() {
+        static $a = null;
+        return self::initValue($a, 'gatelevel');
+    }
+
+    /**
+     * @return \sm_gatelevel gatelevelitem数据
+     */
+    public static function gatelevel_getItem($itemid) {
+        return self::get_hash_item('gatelevel', $itemid);
+    }
+
+    /**
+     * 关卡—— 星级奖励
+     * @return \gate_starreward
+     */
+    public static function gate_starreward() {
+        static $a = null;
+        return self::initValue($a, 'gate_starreward');
+    }
+
+    /**
+     * @return \sm_gate_starreward gate_starrewarditem数据
+     */
+    public static function gate_starreward_getItem($itemid) {
+        return self::get_hash_item('gate_starreward', $itemid);
+    }
+
+    /**
+     * 任务
+     * @return \task
+     */
+    public static function task() {
+        static $a = null;
+        return self::initValue($a, 'task');
+    }
+
+    /**
+     * @return \sm_task taskitem数据
+     */
+    public static function task_getItem($itemid) {
+        return self::get_hash_item('task', $itemid);
+    }
+
+    /**
+     *
+     * @return \playerlevel
+     */
+    public static function playerlevel() {
+        static $a = null;
+        return self::initValue($a, 'playerlevel');
+    }
+
+    /**
+     * @return \sm_playerlevel playerlevelitem数据
+     */
+    public static function playerlevel_getItem($itemid) {
+        return self::get_hash_item('playerlevel', $itemid);
+    }
+
+    /**
+     * 技能升级消耗金币
+     * @return \skill_shengji
+     */
+    public static function skill_shengji() {
+        static $a = null;
+        return self::initValue($a, 'skill_shengji');
+    }
+
+    /**
+     * @return \sm_skill_shengji skill_shengjiitem数据
+     */
+    public static function skill_shengji_getItem($itemid) {
+        return self::get_hash_item('skill_shengji', $itemid);
+    }
+
+    /**
+     * 商城
+     * @return \shop
+     */
+    public static function shop() {
+        static $a = null;
+        return self::initValue($a, 'shop');
+    }
+
+    /**
+     * @return \sm_shop shopitem数据
+     */
+    public static function shop_getItem($itemid) {
+        return self::get_hash_item('shop', $itemid);
+    }
+
+    /**
+     * 停服计划
+     * @return \service_schedule
+     */
+    public static function service_schedule() {
+        static $a = null;
+        return self::initValue($a, 'service_schedule');
+    }
+
+    /**
+     * @return \sm_service_schedule service_scheduleitem数据
+     */
+    public static function service_schedule_getItem($itemid) {
+        return self::get_hash_item('service_schedule', $itemid);
+    }
+
+    /**
+     * 抽奖数据
+     * @return \choujiang
+     */
+    public static function choujiang() {
+        static $a = null;
+        return self::initValue($a, 'choujiang');
+    }
+
+    /**
+     * @return \sm_choujiang choujiangitem数据
+     */
+    public static function choujiang_getItem($itemid) {
+        return self::get_hash_item('choujiang', $itemid);
+    }
+
+    /**
+     * 无穷无尽关卡模式
+     * @return \gate_forever
+     */
+    public static function gate_forever() {
+        static $a = null;
+        return self::initValue($a, 'gate_forever');
+    }
+
+    /**
+     * @return \sm_gate_forever gate_foreveritem数据
+     */
+    public static function gate_forever_getItem($itemid) {
+        return self::get_hash_item('gate_forever', $itemid);
+    }
+
+    /**
+     * 系统邮件
+     * @return \sysmail
+     */
+    public static function sysmail() {
+        static $a = null;
+        return self::initValue($a, 'sysmail');
+    }
+
+    /**
+     * @return \sm_sysmail sysmailitem数据
+     */
+    public static function sysmail_getItem($itemid) {
+        return self::get_hash_item('sysmail', $itemid);
+    }
+
+    /**
+     * 关卡【副本】
+     * @return \gate_carbon
+     */
+    public static function gate_carbon() {
+        static $a = null;
+        return self::initValue($a, 'gate_carbon');
+    }
+
+    /**
+     * @return \sm_gate_carbon gate_carbonitem数据
+     */
+    public static function gate_carbon_getItem($itemid) {
+        return self::get_hash_item('gate_carbon', $itemid);
+    }
+
+    /**
+     * pvp分段奖励
+     * @return \pvp_leaguereward
+     */
+    public static function pvp_leaguereward() {
+        static $a = null;
+        return self::initValue($a, 'pvp_leaguereward');
+    }
+
+    /**
+     * @return \sm_pvp_leaguereward pvp_leaguerewarditem数据
+     */
+    public static function pvp_leaguereward_getItem($itemid) {
+        return self::get_hash_item('pvp_leaguereward', $itemid);
+    }
+
+    /**
+     * pvp 百名榜单奖励
+     * @return \pvp_rankreward
+     */
+    public static function pvp_rankreward() {
+        static $a = null;
+        return self::initValue($a, 'pvp_rankreward');
+    }
+
+    /**
+     * @return \sm_pvp_rankreward pvp_rankrewarditem数据
+     */
+    public static function pvp_rankreward_getItem($itemid) {
+        return self::get_hash_item('pvp_rankreward', $itemid);
+    }
+
+    /**
+     * pvp_ 分数段
+     * @return \pvp_leaguescore
+     */
+    public static function pvp_leaguescore() {
+        static $a = null;
+        return self::initValue($a, 'pvp_leaguescore');
+    }
+
+    /**
+     * @return \sm_pvp_leaguescore pvp_leaguescoreitem数据
+     */
+    public static function pvp_leaguescore_getItem($itemid) {
+        return self::get_hash_item('pvp_leaguescore', $itemid);
+    }
+
+    /**
+     * 熔炼实验室
+     * @return \smelting
+     */
+    public static function smelting() {
+        static $a = null;
+        return self::initValue($a, 'smelting');
+    }
+
+    /**
+     * @return \sm_smelting smeltingitem数据
+     */
+    public static function smelting_getItem($itemid) {
+        return self::get_hash_item('smelting', $itemid);
+    }
+
+    /**
+     * 配置的关卡相关的战斗数据
+     * @return \gate_combat
+     */
+    public static function gate_combat() {
+        static $a = null;
+        return self::initValue($a, 'gate_combat');
+    }
+
+    /**
+     * @return \sm_gate_combat gate_combatitem数据
+     */
+    public static function gate_combat_getItem($itemid) {
+        return self::get_hash_item('gate_combat', $itemid);
+    }
+
+    /**
+     *
+     * @return \gate_carbon_content
+     */
+    public static function gate_carbon_content() {
+        static $a = null;
+        return self::initValue($a, 'gate_carbon_content');
+    }
+
+    /**
+     * @return \sm_gate_carbon_content gate_carbon_contentitem数据
+     */
+    public static function gate_carbon_content_getItem($itemid) {
+        return self::get_hash_item('gate_carbon_content', $itemid);
+    }
+
+    /**
+     * pvp活跃奖励数据
+     * @return \pvp_activityreward
+     */
+    public static function pvp_activityreward() {
+        static $a = null;
+        return self::initValue($a, 'pvp_activityreward');
+    }
+
+    /**
+     * @return \sm_pvp_activityreward pvp_activityrewarditem数据
+     */
+    public static function pvp_activityreward_getItem($itemid) {
+        return self::get_hash_item('pvp_activityreward', $itemid);
+    }
+
+    /**
+     * 抽奖保底数据
+     * @return \choujiang_baodi
+     */
+    public static function choujiang_baodi() {
+        static $a = null;
+        return self::initValue($a, 'choujiang_baodi');
+    }
+
+    /**
+     * @return \sm_choujiang_baodi choujiang_baodiitem数据
+     */
+    public static function choujiang_baodi_getItem($typeId, $cishu) {
+        return self::get_hash_item('choujiang_baodi', "$typeId-$cishu");
+    }
+
+    /**
+     * 英雄的升级——成长可消耗的道具表
+     * @return \hero_levelexp_costitem
+     */
+    public static function hero_levelexp_costitem() {
+        static $a = null;
+        return self::initValue($a, 'hero_levelexp_costitem');
+    }
+
+    /**
+     * @return \sm_hero_levelexp_costitem hero_levelexp_costitemitem数据
+     */
+    public static function hero_levelexp_costitem_getItem($itemid) {
+        return self::get_hash_item('hero_levelexp_costitem', $itemid);
+    }
+
+    /**
+     * 抽奖设置数据
+     * @return \choujiang_settings
+     */
+    public static function choujiang_settings() {
+        static $a = null;
+        return self::initValue($a, 'choujiang_settings');
+    }
+
+    /**
+     * @return \sm_choujiang_settings choujiang_settingsitem数据
+     */
+    public static function choujiang_settings_getItem($itemid) {
+        return self::get_hash_item('choujiang_settings', $itemid);
+    }
+
+    /**
+     * 成就任务
+     * @return \task_achi
+     */
+    public static function task_achi() {
+        static $a = null;
+        return self::initValue($a, 'task_achi');
+    }
+
+    /**
+     * @return \sm_task_achi task_achiitem数据
+     */
+    public static function task_achi_getItem($itemid) {
+        return self::get_hash_item('task_achi', $itemid);
+    }
+
+    /**
+     * 宝箱
+     * @return \box
+     */
+    public static function box() {
+        static $a = null;
+        return self::initValue($a, 'box');
+    }
+
+    /**
+     * @return \sm_box boxitem数据
+     */
+    public static function box_getItem($itemid) {
+        return self::get_hash_item('box', $itemid);
+    }
+
+    /**
+     * 宝箱的奖池
+     * @return \boxpool
+     */
+    public static function boxpool() {
+        static $a = null;
+        return self::initValue($a, 'boxpool');
+    }
+
+    /**
+     * @return \sm_boxpool boxpoolitem数据
+     */
+    public static function boxpool_getItem($itemid) {
+        return self::get_hash_item('boxpool', $itemid);
+    }
+
+    /**
+     * 英雄————神血系统
+     * @return \heroextra_godblood
+     */
+    public static function heroextra_godblood() {
+        static $a = null;
+        return self::initValue($a, 'heroextra_godblood');
+    }
+
+    /**
+     * @return \sm_heroextra_godblood heroextra_godblooditem数据
+     */
+    public static function heroextra_godblood_getItem($itemid) {
+        return self::get_hash_item('heroextra_godblood', $itemid);
+    }
+
+    /**
+     * 碎片
+     * @return \segment
+     */
+    public static function segment() {
+        static $a = null;
+        return self::initValue($a, 'segment');
+    }
+
+    /**
+     * @return \sm_segment segmentitem数据
+     */
+    public static function segment_getItem($itemid) {
+        return self::get_hash_item('segment', $itemid);
+    }
+
+    /**
+     *
+     * @return \gate_world
+     */
+    public static function gate_world() {
+        static $a = null;
+        return self::initValue($a, 'gate_world');
+    }
+
+    /**
+     * @return \sm_gate_world gate_worlditem数据
+     */
+    public static function gate_world_getItem($itemid) {
+        return self::get_hash_item('gate_world', $itemid);
+    }
+
+    /**
+     *
+     * @return \gate_city
+     */
+    public static function gate_city() {
+        static $a = null;
+        return self::initValue($a, 'gate_city');
+    }
+
+    /**
+     * @return \sm_gate_city gate_cityitem数据
+     */
+    public static function gate_city_getItem($itemid) {
+        return self::get_hash_item('gate_city', $itemid);
+    }
+
+    /**
+     * 神秘商城道具表-by goodstype
+     * @return \secretshop_goodsType
+     */
+    public static function secretshop_goodsType() {
+        static $a = null;
+        return self::initValue($a, 'secretshop_goodsType');
+    }
+
+    /**
+     * @return \sm_secretshop_goodsType secretshop_goodsTypeitem数据
+     */
+    public static function secretshop_goodsType_getItem($itemid) {
+        return self::get_hash_item('secretshop_goodsType', $itemid);
+    }
+
+    /**
+     * 神秘商城刷新价格表
+     * @return \secretshop_refresh
+     */
+    public static function secretshop_refresh() {
+        static $a = null;
+        return self::initValue($a, 'secretshop_refresh');
+    }
+
+    /**
+     * @return \sm_secretshop_refresh secretshop_refreshitem数据
+     */
+    public static function secretshop_refresh_getItem($itemid) {
+        return self::get_hash_item('secretshop_refresh', $itemid);
+    }
+
+    /**
+     * 神秘商城道具表-by typeId
+     * @return \secretshop_typeId
+     */
+    public static function secretshop_typeId() {
+        static $a = null;
+        return self::initValue($a, 'secretshop_typeId');
+    }
+
+    /**
+     * @return \sm_secretshop_typeId secretshop_typeIditem数据
+     */
+    public static function secretshop_typeId_getItem($itemid) {
+        return self::get_hash_item('secretshop_typeId', $itemid);
+    }
+
+    /**
+     * 客户端版本信息
+     * @return \clientVersionHistory
+     */
+    public static function clientVersionHistory() {
+        static $a = null;
+        return self::initValue($a, 'clientVersionHistory');
+    }
+
+    /**
+     * @return \sm_clientVersionHistory clientVersionHistoryitem数据
+     */
+    public static function clientVersionHistory_getItem($itemid) {
+        return self::get_hash_item('clientVersionHistory', $itemid);
+    }
+
+    /**
+     * 分区列表
+     * @return \zonelist
+     */
+    public static function zonelist() {
+        static $a = null;
+        return self::initValue($a, 'zonelist');
+    }
+
+    /**
+     * @return \sm_zonelist zonelistitem数据
+     */
+    public static function zonelist_getItem($itemid) {
+        return self::get_hash_item('zonelist', $itemid);
+    }
+
+    /**
+     * 兑换码礼包
+     * @return \tokenGift
+     */
+    public static function tokenGift() {
+        static $a = null;
+        return self::initValue($a, 'tokenGift');
+    }
+
+    /**
+     * @return \sm_tokenGift tokenGiftitem数据
+     */
+    public static function tokenGift_getItem($itemid) {
+        return self::get_hash_item('tokenGift', $itemid);
+    }
+
+    /**
+     * 活动配置
+     * @return \activity
+     */
+    public static function activity() {
+        static $a = null;
+        return self::initValue($a, 'activity');
+    }
+
+    /**
+     * @return \sm_activity activityitem数据
+     */
+    public static function activity_getItem($itemid) {
+        return self::get_hash_item('activity', $itemid);
+    }
+
+    /**
+     * 碎片融合的概率表
+     * @return \segment_ronghe
+     */
+    public static function segment_ronghe() {
+        static $a = null;
+        return self::initValue($a, 'segment_ronghe');
+    }
+
+    /**
+     * @return \sm_segment_ronghe segment_rongheitem数据
+     */
+    public static function segment_ronghe_getItem($itemid) {
+        return self::get_hash_item('segment_ronghe', $itemid);
+    }
+
+    /**
+     * 碎片_按品质索引
+     * @return \segment_byPinzhi
+     */
+    public static function segment_byPinzhi() {
+        static $a = null;
+        return self::initValue($a, 'segment_byPinzhi');
+    }
+
+    /**
+     * @return \sm_segment_byPinzhi segment_byPinzhiitem数据
+     */
+    public static function segment_byPinzhi_getItem($quailty, $itemType) {
+        return self::get_hash_item('segment_byPinzhi', $quailty)->$itemType;
+    }
+
+    /**
+     * 宝箱经验卡掉落数据
+     * @return \boxJingYanCards
+     */
+    public static function boxJingYanCards() {
+        static $a = null;
+        return self::initValue($a, 'boxJingYanCards');
+    }
+
+    /**
+     * @return \sm_boxJingYanCards boxJingYanCardsitem数据
+     */
+    public static function boxJingYanCards_getItem($itemid) {
+        return self::get_hash_item('boxJingYanCards', $itemid);
+    }
+
+    /**
+     * 活动: 在线礼包
+     * @return \activity_onlinegift
+     */
+    public static function activity_onlinegift() {
+        static $a = null;
+        return self::initValue($a, 'activity_onlinegift');
+    }
+
+    /**
+     * @return \sm_activity_onlinegift activity_onlinegiftitem数据
+     */
+    public static function activity_onlinegift_getItem($itemid) {
+        return self::get_hash_item('activity_onlinegift', $itemid);
+    }
+
+    /**
+     * GM号的UID
+     * @return \GM_uids
+     */
+    public static function GM_uids() {
+        static $a = null;
+        return self::initValue($a, 'GM_uids');
+    }
+
+    /**
+     * @return \GM_uids GM_uidsitem数据
+     */
+    public static function GM_uids_getItem($itemid) {
+        return self::get_hash_item('GM_uids', $itemid);
+    }
+
+    /**
+     * 活动, 全服注册礼包
+     * @return \activity_reggift
+     */
+    public static function activity_reggift() {
+        static $a = null;
+        return self::initValue($a, 'activity_reggift');
+    }
+
+    /**
+     * @return \sm_activity_reggift activity_reggiftitem数据
+     */
+    public static function activity_reggift_getItem($itemid) {
+        return self::get_hash_item('activity_reggift', $itemid);
+    }
+
+    /**
+     * 公会捐献卡牌奖励
+     * @return \guilddonatereward
+     */
+    public static function guilddonatereward() {
+        static $a = null;
+        return self::initValue($a, 'guilddonatereward');
+    }
+
+    /**
+     * @return \sm_guilddonatereward guilddonaterewarditem数据
+     */
+    public static function guilddonatereward_getItem($itemid) {
+        return self::get_hash_item('guilddonatereward', $itemid);
+    }
+
+    /**
+     * 公会等级相关数据
+     * @return \guildlevel
+     */
+    public static function guildlevel() {
+        static $a = null;
+        return self::initValue($a, 'guildlevel');
+    }
+
+    /**
+     * @return \sm_guildlevel guildlevelitem数据
+     */
+    public static function guildlevel_getItem($itemid) {
+        return self::get_hash_item('guildlevel', $itemid);
+    }
+
+    /**
+     * 公会礼包
+     * @return \guildlibao
+     */
+    public static function guildlibao() {
+        static $a = null;
+        return self::initValue($a, 'guildlibao');
+    }
+
+    /**
+     * @return \sm_guildlibao guildlibaoitem数据
+     */
+    public static function guildlibao_getItem($itemid) {
+        return self::get_hash_item('guildlibao', $itemid);
+    }
+
+    /**
+     * 玩家初始化数据
+     * @return \primordial_data
+     */
+    public static function primordial_data() {
+        static $a = null;
+        return self::initValue($a, 'primordial_data');
+    }
+
+    /**
+     * @return \primordial_data primordial_dataitem数据
+     */
+    public static function primordial_data_getItem($itemid) {
+        return self::get_hash_item('primordial_data', $itemid);
+    }
+
+    /**
+     * 英雄技能升级的限定
+     * @return \heroextra_jinengshengji
+     */
+    public static function heroextra_jinengshengji() {
+        static $a = null;
+        return self::initValue($a, 'heroextra_jinengshengji');
+    }
+
+    /**
+     * @return \sm_heroextra_jinengshengji heroextra_jinengshengjiitem数据
+     */
+    public static function heroextra_jinengshengji_getItem($itemid) {
+        return self::get_hash_item('heroextra_jinengshengji', $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 self::initValue($a, 'client', false);
+    }
+
+}

+ 92 - 0
Gameserver/Amfphp/Configs/GameConstants.php

@@ -0,0 +1,92 @@
+<?php
+
+namespace loyalsoft;
+
+// 所谓const是指游戏上线后就不再变动的变量
+/**
+ * 游戏内常量
+ * @author gwang email:wanggangzero@qq.com
+ * @copyright © 2015-3-9, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class GameConstants {
+
+    /**
+     * @var string 全平台后缀字符串
+     */
+    const AllPlatStr = "all";
+
+    /**
+     * 密码本
+     * @return string
+     */
+    public static function GetCipherString() {
+        switch (PLAT) {
+            case 'and':                # android平台 20171101110403
+                return "qh6jid4g598rfnwp37xyb2vetzuskcam";
+            case 'web':                # web平台
+                return "zgyqfmpav4whex9td7nu2kj8b5ris36c";
+            case 'ios':                # ios平台
+                return "m8hsn46efyuatvp972cdgz3qrxj5wibk";
+            default :                  # 默认采用原文密码本
+                return "abcdefghijkmnpqrstuvwxyz23456789";
+        }
+    }
+
+    /**
+     * 根据激活码拿到平台字符串,增加新的平台的时候需要对应修改常量配置
+     * @param ActiveCode $code
+     */
+    public static function GetPlatStringByActivteCode($code) {
+        if (isset(self::$platStr[$code->plat])) {
+            return self::$platStr[$code->plat];
+        }
+        return "unknown";
+    }
+
+    /**
+     * 平台字符串,这是和客户端的一个约定,所上的渠道咱们给他们加个字符串后缀,方便区分.
+     * @var array(string)
+     */
+    private static $platStr = array(
+        "all", #                                        # 0 全平台
+        "yyb", #                                        # 1 腾讯
+        "uc", #                                         # 2 九游
+        "xiaomi_yj", #                                  # 3 小米
+        "qh360", #                                      # 4 360
+        "baidu", #                                      # 5 百度
+        "huawei", #                                     # 6 华为
+        "lenove", #                                     # 7 联想
+        "oppo_yj", #                                    # 8 OPPO(易接)
+        "wandoujia", #                                  # 9 豌豆荚
+        "dangle_yj", #                                  # 10 当乐(易接)
+        "meizu_yj", #                                   # 11 魅族(易接)
+        "yijie", #                                      # 12 安智(易接)
+        "jinli", #                                      # 13 金立
+        "anysdk", #                                     # 14 anysdk
+        "vivo", #                                       # 15 vivo
+        "samsung", #                                    # 16 三星()
+        "x7sy", #                                       # 17 小七手游
+        "yile_yj", #                                    # 18 以乐易接
+    );
+
+}
+
+//                                                    <=> 元数据定义 <=>
+define("META_CASH_ITEMID", 399001);                     # 宝石物品id
+define("META_GOLD_ITEMID", 399002);                     # 金币物品id
+define("META_tili_ITEMID", 399004);                     # 体力的物品ID
+define('META_FriendShipPoit_ItemId', 399005);           # 友情点的物品ID
+define("META_SPAE_ITEMID", 3);                          # Spar(能量晶石)物品id
+define("META_YUANBAOITEMID", 7);                        # 元宝物品ID
+//                                                  TODO: config the c-s offset data
+define("OFFSET_TIMESPAN", -6);                          # 服务端相对于客户端的偏移时间戳
+define("OFFSET_MSGTIME", 30);                           # 客户端服务端时间戳偏移最大误差
+
+if (GAME_ONLINE) {                                      # 线上版本配置文件
+    require_once __DIR__ . '/defines/const_' . PLAT . '.php'; # 引入个平台特定设置: and,ios,web
+} else {                                                # 内网测试版本配置文件
+#                                                       # config the 内存数据库
+    define("MEM_HOST", '192.168.10.16');                # host/ip
+    define("MEM_PORT", 6002);                           # 端口
+    define("MEM_PWD", 'wanggang1985');                  # 密钥
+}

+ 55 - 0
Gameserver/Amfphp/Configs/config_and.php

@@ -0,0 +1,55 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * Description of config
+ * 尝试用这种写法来定义服务器配置
+ * @author gwang email:mail@wanggangzero.cn
+ * @copyright © 2015-2-3, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class config_and extends config
+{
+
+    function _InitTester()
+    {
+        $this->testerArr = array(
+            "gwang", //  王刚
+            "8796-any", //  王倩倩
+            "wanggangzero.cn", // 王刚
+        );
+    }
+
+    function _InitBaneder()
+    {
+        $this->banedArr = array(
+            "251984775-baidu", // 王刚
+        );
+    }
+
+    /**
+     * 外网paydb
+     */
+    protected function _InitOuterNetPaydb()
+    {
+        $this->paydb->host = '10.66.108.49';
+	    $this->paydb->host = '10.66.172.19';
+        $this->paydb->port = '3306';
+        $this->paydb->name = 'dhdpay';
+        $this->paydb->user = 'root';
+        $this->paydb->password = 'wanggang1985';
+    }
+
+    /**
+     * 外网nosql
+     */
+    protected function _InitOuterNetNosql()
+    {
+        $this->nosql->host = "10.66.143.110";               # host/ip
+        $this->nosql->port = 6379;                          # 端口
+        $this->nosql->pwd = 'crs-6jcljj4g:ylsj2018';        # 密钥
+    }
+
+}
+
+return new config_and;

+ 45 - 0
Gameserver/Amfphp/Configs/config_ios.php

@@ -0,0 +1,45 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * Description of config
+ * 尝试用这种写法来定义服务器配置
+ * @author gwang email:mail@wanggangzero.cn
+ * @copyright © 2015-2-3, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class config_ios extends config
+{
+
+    function _InitTester()
+    {
+        $this->testerArr = array();
+    }
+
+    function _InitBaneder()
+    {
+        $this->banedArr = array();
+    }
+
+    /**
+     * 外网paydb
+     */
+    protected function _InitOuterNetPaydb()
+    {
+        $this->paydb->host = '10.66.108.49';
+        $this->paydb->port = '3306';
+        $this->paydb->name = 'dhdpay';
+        $this->paydb->user = 'root';
+        $this->paydb->password = 'wanggang1985';
+    }
+
+    protected function _InitOuterNetNosql()
+    {
+        $this->nosql->host = '10.154.22.27';                 # host/ip(mock-cvm)
+        $this->nosql->port = 6002;                           # 端口
+        $this->nosql->pwd = 'wanggang1985';                  # 密钥
+    }
+
+}
+
+return new config_ios();

+ 47 - 0
Gameserver/Amfphp/Configs/config_web.php

@@ -0,0 +1,47 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * Description of config
+ * 尝试用这种写法来定义服务器配置
+ * @author gwang email:mail@wanggangzero.cn
+ * @copyright © 2015-2-3, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class config_web extends config
+{
+
+    function _InitTester()
+    {
+        $this->testerArr = array(
+            'FA29D1152CF72523563BCB5A0C28744B'
+        );
+    }
+
+    function _InitBaneder()
+    {
+        $this->banedArr = array();
+    }
+
+    /**
+     * 外网paydb
+     */
+    protected function _InitOuterNetPaydb()
+    {
+//        $this->paydb->host = '10.66.108.49';
+//        $this->paydb->port = '3306';
+//        $this->paydb->name = 'dhdpay';
+//        $this->paydb->user = 'root';
+//        $this->paydb->password = 'wanggang1985';
+    }
+
+    protected function _InitOuterNetNosql()
+    {
+//        $this->nosql->host = '192.168.10.16';                # host/ip
+//        $this->nosql->port = 6002;                           # 端口
+//        $this->nosql->pwd = 'wanggang1985';                  # 密钥
+    }
+
+}
+
+return new config_web();

+ 2 - 0
Gameserver/Amfphp/Configs/defines/const_and.php

@@ -0,0 +1,2 @@
+<?php
+

+ 2 - 0
Gameserver/Amfphp/Configs/defines/const_ios.php

@@ -0,0 +1,2 @@
+<?php
+

+ 32 - 0
Gameserver/Amfphp/Configs/defines/const_web.php

@@ -0,0 +1,32 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 常量, 用于WEB(qzoen)平台
+ * @author gwang (mail@wanggangzero.cn)
+ */
+define("Sandbox", false);                                 # 是否使用沙箱
+define("V3_APPID", "1105051445");                         # 应用appid
+define("V3_APPKEY", "YZPU1tiuh0m93TlF");                  # 应用appkey
+//                                                    TODO: config the 活动 data
+define("ACT_VIP_OPEN", "UM130621161914261");              # 开通包月礼包活动号 【待换】
+define("ACT_VIP_DAY", "UM160201122324671");               # 黄钻每日礼包活动号 √
+define("ITEM_VIPNEWER", 8000);                            # 黄钻新手礼包id
+//                                                    TODO: config the PAY data 赠送游戏币
+define("PAY_PRESENTCASH_ACTID", "UM130621161914261");     # 赠送游戏币的活动号
+define("PAY_PRESENTCSAH_GIFTID", "UM131024195342422");    # 赠送游戏币的礼包ID
+define("ITEM_YEARVIPNEWER", 8010);                        # 黄钻新手礼包id
+//
+if (Sandbox) {
+    define("V3_HOST", "119.147.19.43");                   # 沙箱测试用v3地址
+} else {
+    define("V3_HOST", "openapi.tencentyun.com");          # 正式发布时v3地址
+}
+
+if (GAME_ONLINE) {                                        # 外网
+#                                                         # CDN资源服务器地址
+    define("CDN_HOST", "http://app1105051445.imgcache.qzoneapp.com/app1105051445/qzone/");
+} else {                                                  # 内网
+    define("CDN_HOST", "http://192.168.10.1:89/"); // CDN资源服务器地址
+}

+ 28 - 0
Gameserver/Amfphp/Model/Const/GM_uids.php

@@ -0,0 +1,28 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-11-08 15:29:11
+////////////////////
+
+
+/**
+ * Static Model GM_uids 
+ */
+class GM_uids
+{
+
+/**
+ * @var GM Master 
+ */
+  public $wanggangzero;
+
+/**
+ * @var  
+ */
+  public $wanggangzero_cn;
+
+}
+

+ 131 - 0
Gameserver/Amfphp/Model/Const/GoodsItemModel.php

@@ -0,0 +1,131 @@
+<?php
+
+/**
+ * 商品数据模型 *
+ * @author jgao
+ */
+class GoodsItemModel
+{
+    //put your code here
+
+    /**
+     * 手动id
+     * @var type
+     */
+    public $id;
+
+    /**
+     * 名称
+     * @var string
+     */
+    public $name;
+
+    /**
+     * 封包类型 1=单一物品 2=多个物品
+     * @var int
+     */
+    public $packageType;
+
+    /**
+     * 商店第一级菜单 1=龙蛋 2=栖息地 3=建筑 4=装饰 5=兑换
+     * @var type
+     */
+    public $shopFist;
+
+    /**
+     * 商店2级菜单 数组 同时存在多个菜单中 [1, 2, 3]
+     * @var type
+     */
+    public $shopSecond;
+
+    /**
+     * 内容 一个对象 里面是物品的id:数量 金币id=1 宝石=2 食物=3 ...
+     * @var type
+     */
+    public $content;
+
+    /**
+     * 获取方式 1=商店出售 2=每日领取 3=目标奖励 4=活动奖励
+     * @var type
+     */
+    public $getType;
+
+    /**
+     * 商店出售价格 {"g":100} 金币和宝石
+     * @var type
+     */
+    public $prize;
+
+    /**
+     * 商店定价-钻石
+     * @var int 钻石定价
+     */
+    public $cashPrice;
+
+    /**
+     * 商店定价-金币
+     * @var int 金币定价
+     */
+    public $goldPrice;
+
+    /**
+     *  二级货币价格
+     * @var type
+     */
+    public $cost;
+
+    /**
+     * 商店折扣是否开启
+     * @var type
+     */
+    public $isDiscount;
+
+    /**
+     * 折扣开始时间戳
+     * @var int
+     */
+    public $discountStartTs;
+
+    /**
+     * 折扣结束时间戳
+     * @var int
+     */
+    public $discountEndTs;
+
+    /**
+     * 折扣数量(1~100,100为不打折)
+     * @var int
+     */
+    public $discountRate;
+
+    /**
+     * 是否上架 1=上架, 0=否,非卖品
+     * @var type
+     */
+    public $forSale;
+
+    /**
+     * 物品图片
+     * @var type
+     */
+    public $iamge;
+
+    /**
+     * 是否新品
+     * @var type
+     */
+    public $isNew;
+
+    /**
+     * 额外属性 {"isActive":true},活动物品
+     * @var type
+     */
+    public $properties;
+
+    /**
+     * 商品描述
+     * @var string
+     */
+    public $describe;
+
+}

+ 600 - 0
Gameserver/Amfphp/Model/Const/globalsettings.php

@@ -0,0 +1,600 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-02-07 15:50:35
+////////////////////
+
+
+/**
+ * Static Model globalsettings 
+ */
+class globalsettings
+{
+
+/**
+ * @var demo 
+ */
+  public $key;
+
+/**
+ * @var 某战斗开启的玩家等级限制 
+ */
+  public $Fight_OpenLevelLimit;
+
+/**
+ * @var 英雄升级_消耗卡牌的卡槽,最大数量 
+ */
+  public $Hero_Upgrade_MaxCostHeroCardNum;
+
+/**
+ * @var 七日大奖要求完成的任务点数 
+ */
+  public $day7_dianshu;
+
+/**
+ * @var 七日最终奖励 
+ */
+  public $day7_reward;
+
+/**
+ * @var 装备经验=吞噬经验X系数+初始值 
+ */
+  public $shengxing_xishu;
+
+/**
+ * @var 升级成为高1等级的宝石需要的数量 
+ */
+  public $baoshi_shengjishu;
+
+/**
+ * @var 游戏内玩家账号的最高等级限制 
+ */
+  public $Game_MaxPlayerLevel;
+
+/**
+ * @var 战斗内攻击时间间隔(毫秒) 
+ */
+  public $Fight_AttackTime;
+
+/**
+ * @var 英雄升级_当前卡提供的基础经验值 
+ */
+  public $Hero_Upgrade_BasicEXP;
+
+/**
+ * @var 英雄升级_当前卡的累计经验值,折扣系数 
+ */
+  public $Hero_Upgrade_EXP_XiShu;
+
+/**
+ * @var 英雄升级_获得经验与消耗金币之间的系数 
+ */
+  public $Hero_Upgrade_ExpConverGold;
+
+/**
+ * @var 英雄升级——英雄能达到的最大等级 
+ */
+  public $Hero_Upgrade_BasicMaxLevel;
+
+/**
+ * @var 英雄升星——最大星级 
+ */
+  public $Hero_Star_MaxStarLevel;
+
+/**
+ * @var 英雄升星——升星消耗的道具种类 (  金元素) 
+ */
+  public $Hero_Star_CostItem_1;
+
+/**
+ * @var 英雄升星——升星消耗的道具种类 (  木元素) 
+ */
+  public $Hero_Star_CostItem_2;
+
+/**
+ * @var 英雄升星——升星消耗的道具种类 (  水元素) 
+ */
+  public $Hero_Star_CostItem_3;
+
+/**
+ * @var 强化5,10级时,当前属性乘以一次系数 
+ */
+  public $item_qianghua;
+
+/**
+ * @var 英雄升星——升星消耗的道具种类 (  火元素) 
+ */
+  public $Hero_Star_CostItem_4;
+
+/**
+ * @var 英雄升星——升星消耗的道具种类 (  土元素) 
+ */
+  public $Hero_Star_CostItem_5;
+
+/**
+ * @var 英雄装备_每个卡槽的开放要求好感度 
+ */
+  public $Hero_Equip_SlotOpenConditions_Favor;
+
+/**
+ * @var 英雄分解——不同的星星数量分解转换的晶石数量 
+ */
+  public $Hero_Separate_StarConvertToSpar;
+
+/**
+ * @var 英雄分解—— 消耗卡牌的卡槽,最大数量 
+ */
+  public $Hero_Separate_MaxCostHeroCardNum;
+
+/**
+ * @var 英雄升星——消耗英雄的卡槽,最大数量 
+ */
+  public $Hero_Star_MaxCostHeroCardNum;
+
+/**
+ * @var 英雄升阶——最大等阶 
+ */
+  public $Hero_Stength_MaxStrengthLevel;
+
+/**
+ * @var 游戏账号内_默认,收集的英雄数量上限 
+ */
+  public $Game_CollectHero_BasicMaxCount;
+
+/**
+ * @var 游戏账号内_收集的英雄数量上限_每次购买数目 
+ */
+  public $Game_CollectHero_OneBuyLimtNum;
+
+/**
+ * @var 战斗_每个页面上存在的关卡的数量(删) 
+ */
+  public $Battle_GateNumOnePage;
+
+/**
+ * @var 社交好友——玩家好友数量上限 
+ */
+  public $User_Friends_Number_Max;
+
+/**
+ * @var 社交好友——向好友示好(浇水,送花等)的冷却时间(按好友分别计时), 6小时 
+ */
+  public $User_Friends_overtures_coding_time;
+
+/**
+ * @var 社交好友——和每个好友的聊天记录保留的最大条数 
+ */
+  public $User_Friends_MessageCount_Max;
+
+/**
+ * @var 社交好友——向好友示好记录的过期时间(秒), 24小时 
+ */
+  public $User_Friends_Gift_ExpireTs;
+
+/**
+ * @var 社交好友——好友请求的过期时间(秒), 24小时 
+ */
+  public $User_Friends_Apply_ExpireTs;
+
+/**
+ * @var 默认背包最大数量 
+ */
+  public $Item_Packet_MaxNum;
+
+/**
+ * @var 每开10个格子需要消耗的钻石价格 
+ */
+  public $Item_Packet_NumCostCash;
+
+/**
+ * @var 英雄评论区一个赞的排行权重(秒), 3600秒
+  * Ps. 暂行公式: score = ts + praise * weight
+  *   按照score 从大到小排序. 
+ */
+  public $Hero_Discuss_Praise_weight;
+
+/**
+ * @var 战前消耗金币购买buff 
+ */
+  public $Battle_CostGoldBuyBuff;
+
+/**
+ * @var 战斗计算的 格属性比重系数(李宁) 
+ */
+  public $Battle_PowerFactor;
+
+/**
+ * @var 单场战斗总时间, 单位毫秒 
+ */
+  public $Battle_BattleShowTime;
+
+/**
+ * @var 战斗队伍最大人数(千万别改) 
+ */
+  public $Battle_BattleTeamMaxFighter;
+
+/**
+ * @var 己方释放技能恢复己方团队能量值 
+ */
+  public $Battle_IncreasePowerByCastSkill;
+
+/**
+ * @var 己方连击能量值上限(数值满足时,可以进行连击) 
+ */
+  public $Battle_BlueTeamMaxPower;
+
+/**
+ * @var 神秘商城, 刷新时间间隔(单位: 秒) 
+ */
+  public $secretshop_refresh_interval;
+
+/**
+ * @var 物品栏购买栏位梯度价格 
+ */
+  public $Item_Packet_MaxNumPrice;
+
+/**
+ * @var 游戏账号内_收集的英雄数量上限_英雄栏购买栏位梯度价格 
+ */
+  public $Game_CollectHero_BasicMaxPrice;
+
+/**
+ * @var 无穷无尽关卡——每天的挑战次数总上限 
+ */
+  public $Battle_Forever_MaxCountEveryDay;
+
+/**
+ * @var 玩家发送一条系统消息消(当前分区)耗钻石数量 
+ */
+  public $SystemMessage_UserSendToMyZone_Cos;
+
+/**
+ * @var 系统消息 - 对英雄升星进行系统广播的最低星级限制 
+ */
+  public $SystemMessage_HeroStar_Limit_Min;
+
+/**
+ * @var 系统消息 - 对英雄升阶进行系统广播的最低等阶限制 
+ */
+  public $SystemMessage_HeroStage_Limit_Min;
+
+/**
+ * @var 系统消息 - 对装备强化进行系统广播的最低等级限制 
+ */
+  public $SystemMessage_WeaponLevel_Limit_Min;
+
+/**
+ * @var 租借好友英雄,消耗的物品数量。结构为【id,num】 
+ */
+  public $User_Friends_HireFriendForBattle_Cost;
+
+/**
+ * @var 新手引导中抽奖的掉落 
+ */
+  public $choujiang_guide_items;
+
+/**
+ * @var 神秘商城最单个物品大购买次数 
+ */
+  public $secretshop_itembuy_maxtimes;
+
+/**
+ * @var 宝箱开启里大R充值判断条件 
+ */
+  public $bigRPay_Condition;
+
+/**
+ * @var 宝箱开启里大R当日抽奖次数判断条件 
+ */
+  public $bigROpenBoxTimesDayliy_Condition;
+
+/**
+ * @var 租借好友英雄的佣金邮件的有效时间, 15天 
+ */
+  public $User_Friends_HireFriendForBattle_MailExpireTs;
+
+/**
+ * @var 租借好友英雄的佣金邮件的文本内容 
+ */
+  public $User_Friends_HireFriendForBattle_MailContents;
+
+/**
+ * @var 租借好友英雄佣金, 课税后收益, cost * (1-this) = 好友收益 
+ */
+  public $User_Friends_HireFriendForBattle_Tax;
+
+/**
+ * @var 手动刷新对手花费钻石数量,(按次梯度定价),达到上限禁止继续刷新 
+ */
+  public $PVP_reFresh_Match_cost;
+
+/**
+ * @var 恢复一点体力所需时间(秒) 
+ */
+  public $PVP_reCover_Tili_costSec;
+
+/**
+ * @var PVP 胜利奖励积分 
+ */
+  public $PVP_PK_Win_Score;
+
+/**
+ * @var 每种熔炼元素在角色身上的最大数量 
+ */
+  public $Melt_Element_MaxNum;
+
+/**
+ * @var PVP 胜利奖励金币 
+ */
+  public $PVP_PK_Win_Gold;
+
+/**
+ * @var PVP 胜利奖励PVP币 
+ */
+  public $PVP_PK_Win_PvpCoin;
+
+/**
+ * @var 免费刷新对手所需恢复时间,单位秒 
+ */
+  public $PVP_refresh_Match_RecoverSeconds;
+
+/**
+ * @var 可熔炼装备的最低需求(level:等级;xingji:星级)装备默认是1星1级 
+ */
+  public $Melt_Equip_Requst;
+
+/**
+ * @var 恢复5点体力所需花费钻石数量,(按次数阶梯定价),达到上限禁止继续购买 
+ */
+  public $PVP_recover_tili_cost_cash;
+
+/**
+ * @var 打车券的itemid 
+ */
+  public $choujiang_dachequan_itemid;
+
+/**
+ * @var 修改昵称消耗的道具itemid,0代表不消耗 
+ */
+  public $User_SetNickname_CostItemid;
+
+/**
+ * @var 新手引导中发放所需碎片(cardid,numb;cardid,num...) 
+ */
+  public $User_SetNewbieGuideCards;
+
+/**
+ * @var 系统设定: 操作日志保存天数 
+ */
+  public $syscfg_oplog_keepdays;
+
+/**
+ * @var 装备属性升级的参数 
+ */
+  public $Equip_Upgrade_Property;
+
+/**
+ * @var 神秘商城最大刷新次数 
+ */
+  public $secretshop_refresh_maxtimes;
+
+/**
+ * @var 己方连击(倒计时)时间 
+ */
+  public $Battle_BlueCriticalTime;
+
+/**
+ * @var 连击伤害概率(x/100) 
+ */
+  public $Battle_BattleLianJiDamageRate;
+
+/**
+ * @var PVP 奖励积分: 积分差额外奖励系数 
+ */
+  public $PVP_PK_ScoreDiff_factor;
+
+/**
+ * @var PVP 被人挑战成功扣除积分 
+ */
+  public $PVP_PK_be_defeated_score;
+
+/**
+ * @var PVP 被人挑战并战胜对手获得积分 
+ */
+  public $PVP_PK_be_undefeated_score;
+
+/**
+ * @var 碎片融合时需要花费的金币 
+ */
+  public $Compose_Pieces_Gold;
+
+/**
+ * @var 首充活动礼包的商品ID 
+ */
+  public $FirstPay_ItemId;
+
+/**
+ * @var 赠送体力的时间段(24小时的数字无前导0, 逗号分隔) 
+ */
+  public $activity_presentTili_times;
+
+/**
+ * @var 每次赠送体力的数量 
+ */
+  public $activity_presentTili_number;
+
+/**
+ * @var PVP 蝉联奖励,10万钻(待运营策划填正式数据) 
+ */
+  public $PVP_Chanlian_RewardStr;
+
+/**
+ * @var 当前客户端版本号 
+ */
+  public $clientVer;
+
+/**
+ * @var 支付模块是否开放 
+ */
+  public $Game_Pay_Open;
+
+/**
+ * @var 更新开始时间戳 
+ */
+  public $updatingBeginTs;
+
+/**
+ * @var 更新结束时间戳 
+ */
+  public $updatingEndTs;
+
+/**
+ * @var 开宝箱的公共冷却值(热保护值) 
+ */
+  public $Box_Total_CoolDown;
+
+/**
+ * @var 免cd开各种宝箱所花费的钻石数。 
+ */
+  public $Box_NoCoolDown_Cash;
+
+/**
+ * @var 公会开启最小等级 
+ */
+  public $Guild_Join_LeastLevel;
+
+/**
+ * @var 创建公会所需花费 
+ */
+  public $Guild_Found_CostGold;
+
+/**
+ * @var 公会申请记录的容量限制 
+ */
+  public $Guild_ApplyCapacityLimit;
+
+/**
+ * @var 公会副会长最多人数 
+ */
+  public $Guild_ViceChairManLimit;
+
+/**
+ * @var 公会干部最多人数 
+ */
+  public $Guild_OfficerManLimit;
+
+/**
+ * @var 公会申请被拒接后冷却时间 
+ */
+  public $Guild_ApplyrefuseCoolLimit;
+
+/**
+ * @var 弹劾会长有效时间 
+ */
+  public $Guild_AccuseChairManTimeLimit;
+
+/**
+ * @var 可弹劾公长所需时长 
+ */
+  public $Guild_ChairManLastLoginLimit;
+
+/**
+ * @var 加入公会申请反复发送的时间间隔 
+ */
+  public $Guild_MoreApplyLimit;
+
+/**
+ * @var 弹劾会长失败冷却时间 
+ */
+  public $Guild_AccuseFailCoolingTime;
+
+/**
+ * @var 每次请求卡牌时间间隔 
+ */
+  public $Guild_RequestCardIntervalTime;
+
+/**
+ * @var 不同种卡牌一次可以请求的数量 
+ */
+  public $Guild_RequsetCardNum;
+
+/**
+ * @var 公会每天捐献总数量最大值 
+ */
+  public $Guild_EveryDayDonateTotalNumMax;
+
+/**
+ * @var 公会捐献冷却时间 
+ */
+  public $Guild_DonateCoolingTime;
+
+/**
+ * @var 公会等级及对应捐献度 
+ */
+  public $Guild_ContributeLevel;
+
+/**
+ * @var 公会不开放请求的碎片类型 
+ */
+  public $Guild_NotOpenChipType;
+
+/**
+ * @var PVP 挑战失败扣除的积分 
+ */
+  public $PVP_PK_Fail_Score;
+
+/**
+ * @var 购买钻石礼包给公会成员额外奖励 
+ */
+  public $Guild_BuyCashGiftExtraReward;
+
+/**
+ * @var 公会公告编辑冷却时间 
+ */
+  public $Guild_AnnouncementEditCoolingTime;
+
+/**
+ * @var 公会公告显示时间 
+ */
+  public $Guild_AnnouncementShowTime;
+
+/**
+ * @var 新手引导中发放所需经验卡(id,num;id,num...) 
+ */
+  public $User_SetNewbieGuideExps;
+
+/**
+ * @var 创建公会——加入公会的分数 
+ */
+  public $Guild_Found_ScoreLimit;
+
+/**
+ * @var 游戏聊天功能——是否开放 1开放0 关闭 
+ */
+  public $Game_ChatIsOpen;
+
+/**
+ * @var 游戏引导功能——是否开放 1开放0 关闭 
+ */
+  public $Game_Guide_IsOpen;
+
+/**
+ * @var 己方(释放技能)共用总能量条(按时间增长) 
+ */
+  public $Battle_BlueTeamMaxSkillPower;
+
+/**
+ * @var 敌方(释放技能)共用总能量条(按时间增长) 
+ */
+  public $Battle_RedTeamMaxSkillPower;
+
+/**
+ * @var 系统公告 
+ */
+  public $Game_PublicNotice;
+
+}
+

+ 73 - 0
Gameserver/Amfphp/Model/Const/primordial_data.php

@@ -0,0 +1,73 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-02-03 10:24:15
+////////////////////
+
+
+/**
+ * Static Model primordial_data 
+ */
+class primordial_data
+{
+
+/**
+ * @var 初始战队 
+ */
+  public $User_HeroTeamConfig;
+
+/**
+ * @var 初始金币 
+ */
+  public $User_Gold;
+
+/**
+ * @var 初始钻石 
+ */
+  public $User_Cash;
+
+/**
+ * @var 初始经验 
+ */
+  public $User_XP;
+
+/**
+ * @var 初始头像 
+ */
+  public $User_img;
+
+/**
+ * @var 初始英雄 
+ */
+  public $User_Heros;
+
+/**
+ * @var 宝箱初始化 
+ */
+  public $User_Store_boxes;
+
+/**
+ * @var 元素初始化 
+ */
+  public $User_Store_element;
+
+/**
+ * @var 物品的背包格子的上限 
+ */
+  public $User_Private_MaxItem_num;
+
+/**
+ * @var 碎片初始化数据 
+ */
+  public $User_Store_segment;
+
+/**
+ * @var 道具初始化数据 
+ */
+  public $User_Store_items;
+
+}
+

+ 58 - 0
Gameserver/Amfphp/Model/Const/sm_activity.php

@@ -0,0 +1,58 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-12-28 10:05:10
+////////////////////
+
+
+/**
+ * Static Model activity 
+ */
+class sm_activity
+{
+
+/**
+ * @var String 活动名称 
+ */
+  public $name;
+
+/**
+ * @var Int32 开始时间 
+ */
+  public $startts;
+
+/**
+ * @var Int32 结束时间 
+ */
+  public $endts;
+
+/**
+ * @var SByte 新活动标志 
+ */
+  public $isNew;
+
+/**
+ * @var SByte 是否展示在活动面板上 
+ */
+  public $inPanel;
+
+/**
+ * @var String 介绍文字 
+ */
+  public $desc;
+
+/**
+ * @var String 展示图片 
+ */
+  public $pic;
+
+/**
+ * @var String 商品图标 
+ */
+  public $icon;
+
+}
+

+ 43 - 0
Gameserver/Amfphp/Model/Const/sm_activity_onlinegift.php

@@ -0,0 +1,43 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-02-06 17:33:52
+////////////////////
+
+
+/**
+ * Static Model activity_onlinegift 
+ */
+class sm_activity_onlinegift
+{
+
+/**
+ * @var Int32 需要的在线时长(单位:秒) default(100)
+ */
+  public $onlineSec;
+
+/**
+ * @var String 名称 
+ */
+  public $name;
+
+/**
+ * @var String 图标 
+ */
+  public $icon;
+
+/**
+ * @var String 描述 
+ */
+  public $desc;
+
+/**
+ * @var String 奖励内容字符串: itemid,num;itemid,num.... 
+ */
+  public $rewardstr;
+
+}
+

+ 48 - 0
Gameserver/Amfphp/Model/Const/sm_activity_reggift.php

@@ -0,0 +1,48 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-08 11:41:04
+////////////////////
+
+
+/**
+ * Static Model activity_reggift 
+ */
+class sm_activity_reggift
+{
+
+/**
+ * @var Int32 需要的注册人数 default(100)
+ */
+  public $regNumber;
+
+/**
+ * @var String 名称 
+ */
+  public $name;
+
+/**
+ * @var String 图标 
+ */
+  public $icon;
+
+/**
+ * @var String 描述 
+ */
+  public $desc;
+
+/**
+ * @var String 奖励内容字符串: itemid,num;itemid,num.... 
+ */
+  public $rewardstr;
+
+/**
+ * @var Int32 奖励领取等级 default(1)
+ */
+  public $level;
+
+}
+

+ 48 - 0
Gameserver/Amfphp/Model/Const/sm_announcement.php

@@ -0,0 +1,48 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model announcement 
+ */
+class sm_announcement
+{
+
+/**
+ * @var String 公告名称 
+ */
+  public $name;
+
+/**
+ * @var String 公告日期 
+ */
+  public $time;
+
+/**
+ * @var String 公告内容 
+ */
+  public $content;
+
+/**
+ * @var String 公告使用的图片 
+ */
+  public $image;
+
+/**
+ * @var String 公告链接地址 
+ */
+  public $url;
+
+/**
+ * @var Int32 是否开启 default(1)
+ */
+  public $ison;
+
+}
+

+ 38 - 0
Gameserver/Amfphp/Model/Const/sm_audio.php

@@ -0,0 +1,38 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model audio 
+ */
+class sm_audio
+{
+
+/**
+ * @var String 动作音效 
+ */
+  public $audioClip;
+
+/**
+ * @var String 音效类型 
+ */
+  public $audioType;
+
+/**
+ * @var String 音效参数 
+ */
+  public $audioPara;
+
+/**
+ * @var Int32 是否循环播放[ 0 播一遍,1循环播放] default(0)
+ */
+  public $isLoop;
+
+}
+

+ 68 - 0
Gameserver/Amfphp/Model/Const/sm_box.php

@@ -0,0 +1,68 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-08 11:40:38
+////////////////////
+
+
+/**
+ * Static Model box 
+ */
+class sm_box
+{
+
+/**
+ * @var Int32  
+ */
+  public $id;
+
+/**
+ * @var String 包厢名称 
+ */
+  public $name;
+
+/**
+ * @var String 包厢图标 
+ */
+  public $icon;
+
+/**
+ * @var String 包厢描述 
+ */
+  public $desc;
+
+/**
+ * @var Int32 开出金币数量上限 default(100)
+ */
+  public $goldsMax;
+
+/**
+ * @var Int32 开出金币数量下限 default(10)
+ */
+  public $goldsMin;
+
+/**
+ * @var Int32 开一次需要占用的冷却时间(秒) 
+ */
+  public $coolDwonTime;
+
+/**
+ * @var String 宝箱序列 
+ */
+  public $order;
+
+/**
+ * @var String 前端掉落展示 
+ */
+  public $dropShow;
+
+/**
+ * @var String 宝箱掉落物品序列 
+ */
+  public $dropTypeSeq;
+
+}
+

+ 38 - 0
Gameserver/Amfphp/Model/Const/sm_boxJingYanCards.php

@@ -0,0 +1,38 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-19 17:07:55
+////////////////////
+
+
+/**
+ * Static Model boxJingYanCards 
+ */
+class sm_boxJingYanCards
+{
+
+/**
+ * @var Int32 经验卡的道具ID 
+ */
+  public $cardId;
+
+/**
+ * @var Int32 开出经验卡数量上限 default(100)
+ */
+  public $cardsMax;
+
+/**
+ * @var Int32 开出经验卡数量下限 default(10)
+ */
+  public $cardsMin;
+
+/**
+ * @var Int32 掉落概率(权重) 
+ */
+  public $probability;
+
+}
+

+ 88 - 0
Gameserver/Amfphp/Model/Const/sm_boxpool.php

@@ -0,0 +1,88 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-02-06 14:03:52
+////////////////////
+
+
+/**
+ * Static Model boxpool 
+ */
+class sm_boxpool
+{
+
+/**
+ * @var Int32  
+ */
+  public $id;
+
+/**
+ * @var String 掉落物品id 
+ */
+  public $rewardItemId;
+
+/**
+ * @var String 碎片名称(辅助) 
+ */
+  public $name;
+
+/**
+ * @var String 解锁所需(玩家)等级 
+ */
+  public $unlock_level;
+
+/**
+ * @var String 掉落类型,Ps. box里面有个droptypeSeq,掉落序列,里面填的是顺序掉落物品的类型,第一个是1,那么则从奖池中取droptype为1的物品投骰子. 
+ */
+  public $dropType;
+
+/**
+ * @var String 数量 
+ */
+  public $number;
+
+/**
+ * @var String 普通玩家基础概率权重 
+ */
+  public $normal;
+
+/**
+ * @var String 大R玩家基础掉率权重 
+ */
+  public $bigR;
+
+/**
+ * @var String 一周内登录1~2天玩家的修正值 
+ */
+  public $f_7day2on;
+
+/**
+ * @var String 一周内登录3~4天玩家的修正值 
+ */
+  public $f_7day4on;
+
+/**
+ * @var String 一周内登录5~6天玩家的修正值 
+ */
+  public $f_7day6on;
+
+/**
+ * @var String 碎片完成度的修正值,Ps. 比如合成需要200张碎片,那么当前拥有100张则完成度为50%. 
+ */
+  public $completionCorrect;
+
+/**
+ * @var String 影响的物品id(皮肤碎片) 
+ */
+  public $effectItem;
+
+/**
+ * @var String 影响的物品修正值 
+ */
+  public $effectCorrect;
+
+}
+

+ 79 - 0
Gameserver/Amfphp/Model/Const/sm_buff.php

@@ -0,0 +1,79 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-11-06 18:59:02
+////////////////////
+
+
+/**
+ * Static Model buff 
+ */
+class sm_buff
+{
+
+/**
+ * @var Int32  
+ */
+  public $id;
+
+/**
+ * @var String  
+ */
+  public $name;
+
+/**
+ * @var String 描述 
+ */
+  public $desc;
+
+/**
+ * @var Int32 目标类型 default(0)
+ */
+  public $aim;
+
+/**
+ * @var Int32 当前生命,直接改数值=11,
+最大生命= 12,
+攻击 = 21,
+防御 = 22,
+敏捷= 23,
+暴击几率= 24,
+法术强度= 25,
+魔法抗力 = 26,
+当前能量值 =27,
+晕眩{不能使用任何技能} = 30,
+沉默 {不能使用主动技能,可以普攻} = 31,
+护盾 = 40, default(0)
+ */
+  public $effect;
+
+/**
+ * @var String buff值 
+ */
+  public $effectvalue;
+
+/**
+ * @var Int32 执行次数 default(0)
+ */
+  public $times;
+
+/**
+ * @var String  
+ */
+  public $duration;
+
+/**
+ * @var String 资源/icon 
+ */
+  public $icon;
+
+/**
+ * @var String  
+ */
+  public $res;
+
+}
+

+ 53 - 0
Gameserver/Amfphp/Model/Const/sm_buffeffect.php

@@ -0,0 +1,53 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model buffeffect 
+ */
+class sm_buffeffect
+{
+
+/**
+ * @var String  
+ */
+  public $name;
+
+/**
+ * @var String 关联特效名称 
+ */
+  public $resname;
+
+/**
+ * @var Int32 对应效果id 
+ */
+  public $effecttype;
+
+/**
+ * @var Double 效果基础值 
+ */
+  public $val;
+
+/**
+ * @var Double  效果成长系数 
+ */
+  public $inc;
+
+/**
+ * @var String 附加参数1 
+ */
+  public $param;
+
+/**
+ * @var Int32 buff附加点,对应EBulletHitPointType枚举 
+ */
+  public $hitpt;
+
+}
+

+ 58 - 0
Gameserver/Amfphp/Model/Const/sm_bullet.php

@@ -0,0 +1,58 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-11-06 10:39:25
+////////////////////
+
+
+/**
+ * Static Model bullet 
+ */
+class sm_bullet
+{
+
+/**
+ * @var String  
+ */
+  public $audioId;
+
+/**
+ * @var Int32  
+ */
+  public $tracktype;
+
+/**
+ * @var Int32  default(0)
+ */
+  public $shake;
+
+/**
+ * @var Int32  default(0)
+ */
+  public $drag;
+
+/**
+ * @var String  
+ */
+  public $shootSound;
+
+/**
+ * @var String  
+ */
+  public $sendingSound;
+
+/**
+ * @var String  
+ */
+  public $bomSound;
+
+/**
+ * @var Int32 特效运行时间(以作为逻辑上检测是否已经释放完技能的标准时间) default(2000)
+ */
+  public $runtime;
+
+}
+

+ 48 - 0
Gameserver/Amfphp/Model/Const/sm_choujiang.php

@@ -0,0 +1,48 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model choujiang 
+ */
+class sm_choujiang
+{
+
+/**
+ * @var Int32 奖励物品ID 
+ */
+  public $rewardItemId;
+
+/**
+ * @var Int32 奖励物品数量 
+ */
+  public $number;
+
+/**
+ * @var Int32 掉落概率(权重) 
+ */
+  public $probability;
+
+/**
+ * @var Int32 解锁条件: 充值总金额 
+ */
+  public $unlock_charge_amt;
+
+/**
+ * @var Int32 解锁条件: 抽奖总次数 
+ */
+  public $unlock_choujiang_cishu;
+
+/**
+ * @var Int32 解锁条件: 玩家等级 
+ */
+  public $unlock_level;
+
+}
+

+ 33 - 0
Gameserver/Amfphp/Model/Const/sm_choujiang_baodi.php

@@ -0,0 +1,33 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model choujiang_baodi 
+ */
+class sm_choujiang_baodi
+{
+
+/**
+ * @var Int32 奖品道具id 
+ */
+  public $rewardItemId;
+
+/**
+ * @var Int32 数量 
+ */
+  public $number;
+
+/**
+ * @var Int32 掉落概率(权重) 
+ */
+  public $probability;
+
+}
+

+ 33 - 0
Gameserver/Amfphp/Model/Const/sm_choujiang_settings.php

@@ -0,0 +1,33 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model choujiang_settings 
+ */
+class sm_choujiang_settings
+{
+
+/**
+ * @var Int32 定价:所需道具(typeId)数量 default(0)
+ */
+  public $price;
+
+/**
+ * @var Int32 每日限次 
+ */
+  public $dailyLimit;
+
+/**
+ * @var Int32 保底奖励的最大次数 
+ */
+  public $baodiMax;
+
+}
+

+ 28 - 0
Gameserver/Amfphp/Model/Const/sm_clientVersionHistory.php

@@ -0,0 +1,28 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-09 15:01:19
+////////////////////
+
+
+/**
+ * Static Model clientVersionHistory 
+ */
+class sm_clientVersionHistory
+{
+
+/**
+ * @var String 发布时间 default(0)
+ */
+  public $releaseTime;
+
+/**
+ * @var String 版本说明 default(0)
+ */
+  public $description;
+
+}
+

+ 58 - 0
Gameserver/Amfphp/Model/Const/sm_day7.php

@@ -0,0 +1,58 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-11 09:42:15
+////////////////////
+
+
+/**
+ * Static Model day7 
+ */
+class sm_day7
+{
+
+/**
+ * @var String  
+ */
+  public $day;
+
+/**
+ * @var String  
+ */
+  public $name;
+
+/**
+ * @var String  
+ */
+  public $desc;
+
+/**
+ * @var String  
+ */
+  public $tasktype;
+
+/**
+ * @var String 参数 
+ */
+  public $canshu1;
+
+/**
+ * @var String  
+ */
+  public $canshu2;
+
+/**
+ * @var String  
+ */
+  public $dianshu;
+
+/**
+ * @var String  
+ */
+  public $reward;
+
+}
+

+ 28 - 0
Gameserver/Amfphp/Model/Const/sm_dragonbone_paras.php

@@ -0,0 +1,28 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model dragonbone_paras 
+ */
+class sm_dragonbone_paras
+{
+
+/**
+ * @var String  
+ */
+  public $dragonBoneOffset;
+
+/**
+ * @var Int32 身高 default(1600)
+ */
+  public $height;
+
+}
+

+ 113 - 0
Gameserver/Amfphp/Model/Const/sm_gate.php

@@ -0,0 +1,113 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-02-07 10:30:21
+////////////////////
+
+
+/**
+ * Static Model gate 
+ */
+class sm_gate
+{
+
+/**
+ * @var String  
+ */
+  public $gateName;
+
+/**
+ * @var String  
+ */
+  public $desc;
+
+/**
+ * @var Int32 所在页码(0开始算第一页) default(0)
+ */
+  public $pageId;
+
+/**
+ * @var String 关卡的头像 
+ */
+  public $gateIcon;
+
+/**
+ * @var Int32  
+ */
+  public $tili1;
+
+/**
+ * @var Int32  
+ */
+  public $tili2;
+
+/**
+ * @var Int32  
+ */
+  public $tili3;
+
+/**
+ * @var Int32  
+ */
+  public $cishu1;
+
+/**
+ * @var Int32  
+ */
+  public $cishu2;
+
+/**
+ * @var Int32  
+ */
+  public $cishu3;
+
+/**
+ * @var String  
+ */
+  public $reward1;
+
+/**
+ * @var String  
+ */
+  public $reward2;
+
+/**
+ * @var String  
+ */
+  public $reward3;
+
+/**
+ * @var Int32 掉落金币(普通难度) default(0)
+ */
+  public $gold1;
+
+/**
+ * @var Int32 掉落金币(困难难度) default(0)
+ */
+  public $gold2;
+
+/**
+ * @var Int32 掉落金币(噩梦难度) default(0)
+ */
+  public $gold3;
+
+/**
+ * @var Int32 掉落玩家经验(普通难度) default(0)
+ */
+  public $exp1;
+
+/**
+ * @var Int32 掉落玩家经验(困难难度) default(0)
+ */
+  public $exp2;
+
+/**
+ * @var Int32 掉落玩家经验(噩梦难度) default(0)
+ */
+  public $exp3;
+
+}
+

+ 98 - 0
Gameserver/Amfphp/Model/Const/sm_gate_carbon.php

@@ -0,0 +1,98 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-13 16:30:57
+////////////////////
+
+
+/**
+ * Static Model gate_carbon 
+ */
+class sm_gate_carbon
+{
+
+/**
+ * @var String  
+ */
+  public $carbonName;
+
+/**
+ * @var Int32 副本所在的地图页码 
+ */
+  public $mapPageId;
+
+/**
+ * @var String  
+ */
+  public $desc;
+
+/**
+ * @var String 属于该副本的关卡ID(Gatelevel.id) 
+ */
+  public $gateids;
+
+/**
+ * @var String  
+ */
+  public $carbonPosition;
+
+/**
+ * @var UInt32 副本开启的玩家等级限制 default(1)
+ */
+  public $openLevelLimit;
+
+/**
+ * @var Int32 副本开启的需要的通关的关卡节点的ID default(0)
+ */
+  public $openGateLimit;
+
+/**
+ * @var Int32 开启之后的持续时间(秒) default(10800)
+ */
+  public $duration;
+
+/**
+ * @var String 【普通】难度需要的钥匙的物品ID 
+ */
+  public $keyId1;
+
+/**
+ * @var Int32 【普通】难度需要的钥匙数量 default(1)
+ */
+  public $keyNum1;
+
+/**
+ * @var String 【困难】难度需要的钥匙的物品ID 
+ */
+  public $keyId2;
+
+/**
+ * @var Int32 【困难】难度需要的钥匙数量 default(1)
+ */
+  public $keyNum2;
+
+/**
+ * @var String 【噩梦】难度需要的钥匙的物品ID 
+ */
+  public $keyId3;
+
+/**
+ * @var Int32 【噩梦】难度需要的钥匙数量 default(1)
+ */
+  public $keyNum3;
+
+/**
+ * @var String  
+ */
+  public $start;
+
+/**
+ * @var String  
+ */
+  public $end;
+
+}
+

+ 78 - 0
Gameserver/Amfphp/Model/Const/sm_gate_carbon_content.php

@@ -0,0 +1,78 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-20 16:31:56
+////////////////////
+
+
+/**
+ * Static Model gate_carbon_content 
+ */
+class sm_gate_carbon_content
+{
+
+/**
+ * @var String  
+ */
+  public $gateName;
+
+/**
+ * @var String  
+ */
+  public $desc;
+
+/**
+ * @var String 关卡的头像 
+ */
+  public $gateIcon;
+
+/**
+ * @var Int32  
+ */
+  public $tili1;
+
+/**
+ * @var Int32  
+ */
+  public $tili2;
+
+/**
+ * @var Int32  
+ */
+  public $tili3;
+
+/**
+ * @var Int32  
+ */
+  public $cishu1;
+
+/**
+ * @var Int32  
+ */
+  public $cishu2;
+
+/**
+ * @var Int32  
+ */
+  public $cishu3;
+
+/**
+ * @var String  
+ */
+  public $reward1;
+
+/**
+ * @var String  
+ */
+  public $reward2;
+
+/**
+ * @var String  
+ */
+  public $reward3;
+
+}
+

+ 58 - 0
Gameserver/Amfphp/Model/Const/sm_gate_city.php

@@ -0,0 +1,58 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-08 11:41:21
+////////////////////
+
+
+/**
+ * Static Model gate_city 
+ */
+class sm_gate_city
+{
+
+/**
+ * @var String 关卡名称 
+ */
+  public $cityName;
+
+/**
+ * @var String 描述 
+ */
+  public $desc;
+
+/**
+ * @var String 是否是主线 default(1)
+ */
+  public $isMain;
+
+/**
+ * @var String 包含的关卡内容 
+ */
+  public $containGates;
+
+/**
+ * @var String 依赖其他城市通关才开放 
+ */
+  public $relyCity;
+
+/**
+ * @var Int32 依赖城市通关难度  0 =普通 1 =困难 2=噩梦 default(0)
+ */
+  public $relyCityDifficulty;
+
+/**
+ * @var String  
+ */
+  public $path;
+
+/**
+ * @var String  
+ */
+  public $cityPosition;
+
+}
+

+ 48 - 0
Gameserver/Amfphp/Model/Const/sm_gate_combat.php

@@ -0,0 +1,48 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-12-22 17:23:43
+////////////////////
+
+
+/**
+ * Static Model gate_combat 
+ */
+class sm_gate_combat
+{
+
+/**
+ * @var String  
+ */
+  public $typeName;
+
+/**
+ * @var String  
+ */
+  public $senceName;
+
+/**
+ * @var String  
+ */
+  public $senceBgName;
+
+/**
+ * @var String  
+ */
+  public $desc;
+
+/**
+ * @var String 波次ID(Gatelevel.id) 
+ */
+  public $level;
+
+/**
+ * @var DateTime 上次修改 default(CURRENT_TIMESTAMP)
+ */
+  public $lastupdate;
+
+}
+

+ 43 - 0
Gameserver/Amfphp/Model/Const/sm_gate_forever.php

@@ -0,0 +1,43 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model gate_forever 
+ */
+class sm_gate_forever
+{
+
+/**
+ * @var String  
+ */
+  public $foreverName;
+
+/**
+ * @var String 描述 
+ */
+  public $desc;
+
+/**
+ * @var Int32 开放等级要求 default(1)
+ */
+  public $dengji;
+
+/**
+ * @var String 奖励物品图标 
+ */
+  public $reward1;
+
+/**
+ * @var String 用于战前展示的敌人信息【enemyID,Level】 
+ */
+  public $enemyInfo;
+
+}
+

+ 33 - 0
Gameserver/Amfphp/Model/Const/sm_gate_starreward.php

@@ -0,0 +1,33 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model gate_starreward 
+ */
+class sm_gate_starreward
+{
+
+/**
+ * @var String  
+ */
+  public $star;
+
+/**
+ * @var String  
+ */
+  public $reward;
+
+/**
+ * @var DateTime 上次修改 default(CURRENT_TIMESTAMP)
+ */
+  public $lastupdate;
+
+}
+

+ 53 - 0
Gameserver/Amfphp/Model/Const/sm_gate_story.php

@@ -0,0 +1,53 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model gate_story 
+ */
+class sm_gate_story
+{
+
+/**
+ * @var String 剧情名称 
+ */
+  public $storyName;
+
+/**
+ * @var String 触发剧情的地图页码,所在页码(0开始算第一页) 
+ */
+  public $mapPageId;
+
+/**
+ * @var String 触发剧情的关卡地图编号 
+ */
+  public $mapNodeId;
+
+/**
+ * @var String 剧情结局走向分支流 
+ */
+  public $storyChooseResult;
+
+/**
+ * @var Int32 剧情对话内容ID default(0)
+ */
+  public $storyDialogId;
+
+/**
+ * @var String 剧情关的奖励内容 
+ */
+  public $storyGateReward;
+
+/**
+ * @var DateTime 上次修改 default(CURRENT_TIMESTAMP)
+ */
+  public $lastupdate;
+
+}
+

+ 53 - 0
Gameserver/Amfphp/Model/Const/sm_gate_world.php

@@ -0,0 +1,53 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-08 11:41:29
+////////////////////
+
+
+/**
+ * Static Model gate_world 
+ */
+class sm_gate_world
+{
+
+/**
+ * @var String  
+ */
+  public $worldName;
+
+/**
+ * @var String  
+ */
+  public $desc;
+
+/**
+ * @var String  
+ */
+  public $contains;
+
+/**
+ * @var String 解锁 玩家等级 条件 
+ */
+  public $playerLevelLimit;
+
+/**
+ * @var String 依赖通关的ID 
+ */
+  public $relyWorldId;
+
+/**
+ * @var String  
+ */
+  public $position;
+
+/**
+ * @var String 地图放大状态下,区域块的大概位置 
+ */
+  public $worldPosition;
+
+}
+

+ 103 - 0
Gameserver/Amfphp/Model/Const/sm_gatelevel.php

@@ -0,0 +1,103 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-02-07 10:33:33
+////////////////////
+
+
+/**
+ * Static Model gatelevel 
+ */
+class sm_gatelevel
+{
+
+/**
+ * @var String 对应的关卡ID 
+ */
+  public $gateId;
+
+/**
+ * @var String  
+ */
+  public $parm;
+
+/**
+ * @var String  
+ */
+  public $enemys1;
+
+/**
+ * @var Int32 是否为boss default(0)
+ */
+  public $boss1;
+
+/**
+ * @var String  
+ */
+  public $normal1;
+
+/**
+ * @var String  
+ */
+  public $hard1;
+
+/**
+ * @var String  
+ */
+  public $elite1;
+
+/**
+ * @var String  
+ */
+  public $enemys2;
+
+/**
+ * @var Int32 是否为boss default(0)
+ */
+  public $boss2;
+
+/**
+ * @var String  
+ */
+  public $normal2;
+
+/**
+ * @var String  
+ */
+  public $hard2;
+
+/**
+ * @var String  
+ */
+  public $elite2;
+
+/**
+ * @var String  
+ */
+  public $enemys3;
+
+/**
+ * @var Int32 是否为boss default(0)
+ */
+  public $boss3;
+
+/**
+ * @var String  
+ */
+  public $normal3;
+
+/**
+ * @var String  
+ */
+  public $hard3;
+
+/**
+ * @var String  
+ */
+  public $elite3;
+
+}
+

+ 38 - 0
Gameserver/Amfphp/Model/Const/sm_guilddonatereward.php

@@ -0,0 +1,38 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-12-13 11:09:23
+////////////////////
+
+
+/**
+ * Static Model guilddonatereward 
+ */
+class sm_guilddonatereward
+{
+
+/**
+ * @var Int32  
+ */
+  public $exp;
+
+/**
+ * @var Int32  
+ */
+  public $gold;
+
+/**
+ * @var Int32  
+ */
+  public $maxDonateNum;
+
+/**
+ * @var Int32  
+ */
+  public $contribution;
+
+}
+

+ 33 - 0
Gameserver/Amfphp/Model/Const/sm_guildlevel.php

@@ -0,0 +1,33 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-12 11:33:15
+////////////////////
+
+
+/**
+ * Static Model guildlevel 
+ */
+class sm_guildlevel
+{
+
+/**
+ * @var Int32 人数上限 
+ */
+  public $maxPersoNum;
+
+/**
+ * @var String 贡献度礼包开启设置 
+ */
+  public $contributionGift;
+
+/**
+ * @var String 公会礼包(钻石礼包)开启设置 
+ */
+  public $guildGift;
+
+}
+

+ 68 - 0
Gameserver/Amfphp/Model/Const/sm_guildlibao.php

@@ -0,0 +1,68 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-12 11:51:00
+////////////////////
+
+
+/**
+ * Static Model guildlibao 
+ */
+class sm_guildlibao
+{
+
+/**
+ * @var Int32 礼包购买需要的个人贡献度要求 default(0)
+ */
+  public $donaterequire;
+
+/**
+ * @var Int32 礼包价格1=金币2=钻石 
+ */
+  public $pricetype;
+
+/**
+ * @var Int32  
+ */
+  public $price;
+
+/**
+ * @var String 礼包的具体内容 
+ */
+  public $libaocontent;
+
+/**
+ * @var String  
+ */
+  public $name;
+
+/**
+ * @var String  
+ */
+  public $describe;
+
+/**
+ * @var Int32 礼包购买。需要的公会等级 default(1)
+ */
+  public $openguildlevel;
+
+/**
+ * @var Int32 公会礼包是否对外开放购买 0 不能购买1 = 对外开放可购买 default(0)
+ */
+  public $isOpen;
+
+/**
+ * @var Int32 购买礼包 是否附赠额外奖励 0 = 不送1= 有附赠礼品 default(0)
+ */
+  public $isSendReward;
+
+/**
+ * @var String 附赠礼物的具体内容 
+ */
+  public $sendRewardStr;
+
+}
+

+ 238 - 0
Gameserver/Amfphp/Model/Const/sm_hero.php

@@ -0,0 +1,238 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-02-06 16:23:56
+////////////////////
+
+
+/**
+ * Static Model hero 
+ */
+class sm_hero
+{
+
+/**
+ * @var String 英雄名称 
+ */
+  public $name;
+
+/**
+ * @var String 技能特效id 方便查看 
+ */
+  public $skill;
+
+/**
+ * @var Int32 0=小怪 1=英雄   1:意味着战斗中使用公共power default(1)
+ */
+  public $roletype;
+
+/**
+ * @var String 人物描述 
+ */
+  public $desc;
+
+/**
+ * @var String boss擅长描述 
+ */
+  public $proficientDesc;
+
+/**
+ * @var Int32 图鉴分类 default(1)
+ */
+  public $tujianId;
+
+/**
+ * @var String 龙骨动画 
+ */
+  public $dragonBoneMod;
+
+/**
+ * @var Int32 珍惜程度(越大越珍惜) default(1)
+ */
+  public $zhenxidu;
+
+/**
+ * @var Int32 英雄排序 default(1)
+ */
+  public $order;
+
+/**
+ * @var Int32 是否对玩家开放,可以拥有(0不开,1 可以拥有) default(0)
+ */
+  public $isOpenForPlayer;
+
+/**
+ * @var Int32 是否可购买 1可以买 0 不开放购买 default(0)
+ */
+  public $isCanBuy;
+
+/**
+ * @var Int32 钻石定价 default(99999)
+ */
+  public $cashPrice;
+
+/**
+ * @var Int32 金币购买价格 default(9999999)
+ */
+  public $goldPrice;
+
+/**
+ * @var Int32 英雄解锁的条件限制ID default(1)
+ */
+  public $unlockConditionId;
+
+/**
+ * @var String 元素 
+ */
+  public $yuansu;
+
+/**
+ * @var String 职业类型 
+ */
+  public $zhiye;
+
+/**
+ * @var Int32 默认的等阶 default(0)
+ */
+  public $dengjie;
+
+/**
+ * @var Int32 默认的星级 default(0)
+ */
+  public $xingji;
+
+/**
+ * @var Int32  default(0)
+ */
+  public $hp;
+
+/**
+ * @var Int32 能量值 default(0)
+ */
+  public $nengliangzhi;
+
+/**
+ * @var Int32 物理攻击 default(0)
+ */
+  public $wuligongji;
+
+/**
+ * @var Int32 防御护甲 default(0)
+ */
+  public $fangyuhujia;
+
+/**
+ * @var Single 攻击速度 
+ */
+  public $gongjisudu;
+
+/**
+ * @var Int32 魔法抗性 default(0)
+ */
+  public $mofakangxing;
+
+/**
+ * @var Int32 法术强度 default(0)
+ */
+  public $fashuqiangdu;
+
+/**
+ * @var Int32 暴击 default(0)
+ */
+  public $baoji;
+
+/**
+ * @var Int32 释放技能需要的能量值(1000==1000毫秒) default(2000)
+ */
+  public $npower;
+
+/**
+ * @var Int32 每回合自身能量恢复速度 default(15)
+ */
+  public $rpower;
+
+/**
+ * @var String  default(0)
+ */
+  public $hp1;
+
+/**
+ * @var String  
+ */
+  public $nengliangzhi1;
+
+/**
+ * @var String 物理攻击成长 default(0)
+ */
+  public $wuligongji1;
+
+/**
+ * @var String 防御护甲成长 default(0)
+ */
+  public $fangyuhujia1;
+
+/**
+ * @var String 法术强度成长 
+ */
+  public $fashuqiangdu1;
+
+/**
+ * @var String 魔法抗性成长 
+ */
+  public $mofakangxing1;
+
+/**
+ * @var String 攻击速度 
+ */
+  public $gongjisudu1;
+
+/**
+ * @var String 暴击 
+ */
+  public $baoji1;
+
+/**
+ * @var String  
+ */
+  public $normalSkill;
+
+/**
+ * @var String  
+ */
+  public $manuSkill1;
+
+/**
+ * @var String  
+ */
+  public $manuSkill2;
+
+/**
+ * @var String 被动技能 
+ */
+  public $passiveSkill;
+
+/**
+ * @var String  
+ */
+  public $leaderSkill;
+
+/**
+ * @var String (界面 展示)音效 
+ */
+  public $normalSound;
+
+/**
+ * @var String 技能释放(有用 ) 
+ */
+  public $skillSound;
+
+/**
+ * @var String  
+ */
+  public $beattackSound;
+
+}
+

+ 43 - 0
Gameserver/Amfphp/Model/Const/sm_hero_levelexp.php

@@ -0,0 +1,43 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model hero_levelexp 
+ */
+class sm_hero_levelexp
+{
+
+/**
+ * @var Int32 当前等级 
+ */
+  public $level;
+
+/**
+ * @var Int32 升级消耗金币 default(99999)
+ */
+  public $gold;
+
+/**
+ * @var Int32 达到当前等级所需经验 default(100)
+ */
+  public $needExp;
+
+/**
+ * @var Int32 达到当前等级所需累计各级经验 default(0)
+ */
+  public $requiredExp;
+
+/**
+ * @var Int32 当前等级的卡牌, 被吃掉的时候价值的经验。 default(1)
+ */
+  public $dogExp;
+
+}
+

+ 33 - 0
Gameserver/Amfphp/Model/Const/sm_hero_levelexp_costitem.php

@@ -0,0 +1,33 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-03-06 09:41:55
+////////////////////
+
+
+/**
+ * Static Model hero_levelexp_costitem 
+ */
+class sm_hero_levelexp_costitem
+{
+
+/**
+ * @var String 名称 
+ */
+  public $name;
+
+/**
+ * @var Int32 提供的经验值 default(0)
+ */
+  public $dogExp;
+
+/**
+ * @var Int32 消耗金币 
+ */
+  public $costGold;
+
+}
+

+ 43 - 0
Gameserver/Amfphp/Model/Const/sm_hero_skin.php

@@ -0,0 +1,43 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model hero_skin 
+ */
+class sm_hero_skin
+{
+
+/**
+ * @var String 皮肤名称 
+ */
+  public $skinName;
+
+/**
+ * @var Int32 皮肤对应的英雄 
+ */
+  public $heroId;
+
+/**
+ * @var String 皮肤对应英雄的 龙骨模型ID 
+ */
+  public $dragonModeId;
+
+/**
+ * @var String 皮肤图标 
+ */
+  public $skinIcon;
+
+/**
+ * @var String 称号图标 
+ */
+  public $chenghaoIcon;
+
+}
+

+ 73 - 0
Gameserver/Amfphp/Model/Const/sm_heroextra_dengjie.php

@@ -0,0 +1,73 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model heroextra_dengjie 
+ */
+class sm_heroextra_dengjie
+{
+
+/**
+ * @var String 等阶名称 
+ */
+  public $name;
+
+/**
+ * @var Int32 升阶消耗金币 default(0)
+ */
+  public $cost;
+
+/**
+ * @var String 等阶对应图标 
+ */
+  public $icon;
+
+/**
+ * @var String 玩家名称等阶底框 
+ */
+  public $nameBgIcon;
+
+/**
+ * @var String 玩家的大卡片的等阶边框 
+ */
+  public $borderIcon;
+
+/**
+ * @var String 英雄正常的外包框 
+ */
+  public $heroBorder_normal;
+
+/**
+ * @var String 英雄称号 对应的底 
+ */
+  public $heroChenghao_bgIcon;
+
+/**
+ * @var String 物品等阶的外包框 
+ */
+  public $itemBorder_normal;
+
+/**
+ * @var String 属性加成系数 default(1)
+ */
+  public $attributeBonus;
+
+/**
+ * @var Int32 当前等阶的 限制的玩家最小等级 
+ */
+  public $minLevel;
+
+/**
+ * @var Int32 当前等阶的 限制的玩家最大等级 
+ */
+  public $maxLevel;
+
+}
+

+ 38 - 0
Gameserver/Amfphp/Model/Const/sm_heroextra_favor.php

@@ -0,0 +1,38 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model heroextra_favor 
+ */
+class sm_heroextra_favor
+{
+
+/**
+ * @var String  
+ */
+  public $name;
+
+/**
+ * @var Int32  default(0)
+ */
+  public $cost;
+
+/**
+ * @var String  
+ */
+  public $next;
+
+/**
+ * @var Int32 是否是主线 default(0)
+ */
+  public $isMain;
+
+}
+

+ 43 - 0
Gameserver/Amfphp/Model/Const/sm_heroextra_godblood.php

@@ -0,0 +1,43 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-12-30 17:47:47
+////////////////////
+
+
+/**
+ * Static Model heroextra_godblood 
+ */
+class sm_heroextra_godblood
+{
+
+/**
+ * @var Int32  
+ */
+  public $playerLevel;
+
+/**
+ * @var Int32 目标要达到的神血的血脉值 
+ */
+  public $targetGodPercent;
+
+/**
+ * @var String 属性加成系数 default(1)
+ */
+  public $attributeBonus;
+
+/**
+ * @var String  
+ */
+  public $cost;
+
+/**
+ * @var String  
+ */
+  public $pieces;
+
+}
+

+ 23 - 0
Gameserver/Amfphp/Model/Const/sm_heroextra_jinengshengji.php

@@ -0,0 +1,23 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-12-31 14:02:38
+////////////////////
+
+
+/**
+ * Static Model heroextra_jinengshengji 
+ */
+class sm_heroextra_jinengshengji
+{
+
+/**
+ * @var Int32  
+ */
+  public $playerLevel;
+
+}
+

+ 63 - 0
Gameserver/Amfphp/Model/Const/sm_heroextra_level.php

@@ -0,0 +1,63 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-10 11:11:51
+////////////////////
+
+
+/**
+ * Static Model heroextra_level 
+ */
+class sm_heroextra_level
+{
+
+/**
+ * @var String D 
+ */
+  public $quality;
+
+/**
+ * @var String  
+ */
+  public $hp;
+
+/**
+ * @var String 能量值 
+ */
+  public $nengliangzhi;
+
+/**
+ * @var String 物理攻击 
+ */
+  public $wuligongji;
+
+/**
+ * @var String 防御护甲 
+ */
+  public $fangyuhujia;
+
+/**
+ * @var String 法术强度 
+ */
+  public $fashuqiangdu;
+
+/**
+ * @var String 魔法抗性 
+ */
+  public $mofakangxing;
+
+/**
+ * @var String  
+ */
+  public $gongjisudu;
+
+/**
+ * @var String  
+ */
+  public $baoji;
+
+}
+

+ 58 - 0
Gameserver/Amfphp/Model/Const/sm_heroextra_star.php

@@ -0,0 +1,58 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model heroextra_star 
+ */
+class sm_heroextra_star
+{
+
+/**
+ * @var Int32 升星消耗金币 default(999999)
+ */
+  public $costGold;
+
+/**
+ * @var String  
+ */
+  public $costItemNum;
+
+/**
+ * @var Int32 消耗英雄碎片的数量 default(9999)
+ */
+  public $costHeroesPiecesNum;
+
+/**
+ * @var String 属性加成系数 default(1)
+ */
+  public $attributeBonus;
+
+/**
+ * @var String  
+ */
+  public $cost;
+
+/**
+ * @var String  
+ */
+  public $itemNum;
+
+/**
+ * @var String  
+ */
+  public $pieces;
+
+/**
+ * @var String  
+ */
+  public $itemid;
+
+}
+

+ 168 - 0
Gameserver/Amfphp/Model/Const/sm_item.php

@@ -0,0 +1,168 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-20 11:57:15
+////////////////////
+
+
+/**
+ * Static Model item 
+ */
+class sm_item
+{
+
+/**
+ * @var Int32  
+ */
+  public $id;
+
+/**
+ * @var String  
+ */
+  public $name;
+
+/**
+ * @var String 物品icon名 
+ */
+  public $icon;
+
+/**
+ * @var String  
+ */
+  public $item_desc;
+
+/**
+ * @var String 背包排序 
+ */
+  public $order;
+
+/**
+ * @var String 物品分类(武器、盾牌、首饰等等) 
+ */
+  public $itemtype;
+
+/**
+ * @var String 区分大类里的小类 
+ */
+  public $type2;
+
+/**
+ * @var String 道具可叠加展示的数量上限 default(0)
+ */
+  public $diejia;
+
+/**
+ * @var String 道具的售出价格 default(0)
+ */
+  public $maijia;
+
+/**
+ * @var String 装备升级——当前等级 default(0)
+ */
+  public $level;
+
+/**
+ * @var String 熔炼的当前等级 default(0)
+ */
+  public $melt_level;
+
+/**
+ * @var String 道具珍惜度 default(0)
+ */
+  public $pingji;
+
+/**
+ * @var String 道具默认星级 default(0)
+ */
+  public $xingji;
+
+/**
+ * @var String  default(0)
+ */
+  public $gongji;
+
+/**
+ * @var String X default(0)
+ */
+  public $gongji1;
+
+/**
+ * @var String  default(0)
+ */
+  public $fangyu;
+
+/**
+ * @var String X default(0)
+ */
+  public $fangyu1;
+
+/**
+ * @var String  default(0)
+ */
+  public $hp;
+
+/**
+ * @var String X default(0)
+ */
+  public $hp1;
+
+/**
+ * @var String  default(0)
+ */
+  public $minjie;
+
+/**
+ * @var String X default(0)
+ */
+  public $minjie1;
+
+/**
+ * @var String  default(0)
+ */
+  public $baoji;
+
+/**
+ * @var String X default(0)
+ */
+  public $baoji1;
+
+/**
+ * @var Int32 物理攻击 default(0)
+ */
+  public $wuligongji;
+
+/**
+ * @var Int32 防御护甲 default(0)
+ */
+  public $fangyuhujia;
+
+/**
+ * @var Int32 攻击速度 default(0)
+ */
+  public $gongjisudu;
+
+/**
+ * @var Int32 魔法抗性 default(0)
+ */
+  public $mofakangxing;
+
+/**
+ * @var Int32 品质 
+ */
+  public $quailty;
+
+/**
+ * @var Int32 法术强度 default(0)
+ */
+  public $fashuqiangdu;
+
+/**
+ * @var String X default(0)
+ */
+  public $chan_exp;
+
+}
+

+ 38 - 0
Gameserver/Amfphp/Model/Const/sm_itemlevel.php

@@ -0,0 +1,38 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-04 19:21:37
+////////////////////
+
+
+/**
+ * Static Model itemlevel 
+ */
+class sm_itemlevel
+{
+
+/**
+ * @var String  
+ */
+  public $level;
+
+/**
+ * @var String 每放入一件装备需要的手工费 
+ */
+  public $needGold;
+
+/**
+ * @var String 装备升级所需经验 
+ */
+  public $needExp;
+
+/**
+ * @var String 当狗粮使用时的经验 
+ */
+  public $selfExp;
+
+}
+

+ 33 - 0
Gameserver/Amfphp/Model/Const/sm_localtexts.php

@@ -0,0 +1,33 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model localtexts 
+ */
+class sm_localtexts
+{
+
+/**
+ * @var String 中文 
+ */
+  public $zh;
+
+/**
+ * @var String 英文 
+ */
+  public $en;
+
+/**
+ * @var String 日文 
+ */
+  public $jp;
+
+}
+

+ 48 - 0
Gameserver/Amfphp/Model/Const/sm_playerlevel.php

@@ -0,0 +1,48 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model playerlevel 
+ */
+class sm_playerlevel
+{
+
+/**
+ * @var Int64 达到当前等级所需经验 default(0)
+ */
+  public $xp_need;
+
+/**
+ * @var Int64 达到当前等级所需累计各级经验 default(0)
+ */
+  public $xp_required;
+
+/**
+ * @var Int32 升级奖励金币 default(0)
+ */
+  public $gold;
+
+/**
+ * @var Int32 升级奖励钻石 default(0)
+ */
+  public $cash;
+
+/**
+ * @var Int32 升级奖励晶石 default(0)
+ */
+  public $spar;
+
+/**
+ * @var String 奖励宝箱ID 
+ */
+  public $boxReward;
+
+}
+

+ 38 - 0
Gameserver/Amfphp/Model/Const/sm_plot.php

@@ -0,0 +1,38 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model plot 
+ */
+class sm_plot
+{
+
+/**
+ * @var String  
+ */
+  public $position;
+
+/**
+ * @var String  
+ */
+  public $leftright;
+
+/**
+ * @var String  
+ */
+  public $icon;
+
+/**
+ * @var String  
+ */
+  public $dialogue;
+
+}
+

+ 43 - 0
Gameserver/Amfphp/Model/Const/sm_pvp_activityreward.php

@@ -0,0 +1,43 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model pvp_activityreward 
+ */
+class sm_pvp_activityreward
+{
+
+/**
+ * @var String  
+ */
+  public $activityName;
+
+/**
+ * @var String  
+ */
+  public $activityNum;
+
+/**
+ * @var String  
+ */
+  public $reward1;
+
+/**
+ * @var String  
+ */
+  public $reward2;
+
+/**
+ * @var String  
+ */
+  public $reward3;
+
+}
+

+ 48 - 0
Gameserver/Amfphp/Model/Const/sm_pvp_leaguereward.php

@@ -0,0 +1,48 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-16 09:35:56
+////////////////////
+
+
+/**
+ * Static Model pvp_leaguereward 
+ */
+class sm_pvp_leaguereward
+{
+
+/**
+ * @var String  
+ */
+  public $leagueName;
+
+/**
+ * @var String  
+ */
+  public $leagueType;
+
+/**
+ * @var String  
+ */
+  public $subType;
+
+/**
+ * @var String  
+ */
+  public $reward1;
+
+/**
+ * @var String  
+ */
+  public $reward2;
+
+/**
+ * @var String  
+ */
+  public $reward3;
+
+}
+

+ 68 - 0
Gameserver/Amfphp/Model/Const/sm_pvp_leaguescore.php

@@ -0,0 +1,68 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-22 11:03:00
+////////////////////
+
+
+/**
+ * Static Model pvp_leaguescore 
+ */
+class sm_pvp_leaguescore
+{
+
+/**
+ * @var String  
+ */
+  public $leagueName;
+
+/**
+ * @var String  
+ */
+  public $leagueIcon;
+
+/**
+ * @var String  
+ */
+  public $leagueType;
+
+/**
+ * @var String  
+ */
+  public $subType;
+
+/**
+ * @var Int32  
+ */
+  public $minScore;
+
+/**
+ * @var Int32  
+ */
+  public $maxScore;
+
+/**
+ * @var Int32  
+ */
+  public $faild;
+
+/**
+ * @var Int32  
+ */
+  public $changci;
+
+/**
+ * @var Int32  
+ */
+  public $shenglv;
+
+/**
+ * @var Int32  
+ */
+  public $xiajiang;
+
+}
+

+ 48 - 0
Gameserver/Amfphp/Model/Const/sm_pvp_rankreward.php

@@ -0,0 +1,48 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-22 15:24:01
+////////////////////
+
+
+/**
+ * Static Model pvp_rankreward 
+ */
+class sm_pvp_rankreward
+{
+
+/**
+ * @var String  
+ */
+  public $rankName;
+
+/**
+ * @var String  
+ */
+  public $minRank;
+
+/**
+ * @var String  
+ */
+  public $maxRank;
+
+/**
+ * @var String  
+ */
+  public $reward1;
+
+/**
+ * @var String  
+ */
+  public $reward2;
+
+/**
+ * @var String  
+ */
+  public $reward3;
+
+}
+

+ 53 - 0
Gameserver/Amfphp/Model/Const/sm_secretshop_goodsType.php

@@ -0,0 +1,53 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-12-29 14:50:10
+////////////////////
+
+
+/**
+ * Static Model secretshop_goodsType 
+ */
+class sm_secretshop_goodsType
+{
+
+/**
+ * @var Int32 商品ID 
+ */
+  public $typeId;
+
+/**
+ * @var String  
+ */
+  public $name;
+
+/**
+ * @var Int32 物品售价,起步价, 按照购买次数翻倍 
+ */
+  public $price;
+
+/**
+ * @var Int32 定价类型: 0.RMB, 1.钻石, 2.金币 
+ */
+  public $pricetype;
+
+/**
+ * @var Int32 解锁所需(玩家)等级 
+ */
+  public $unlock_level;
+
+/**
+ * @var Int32 基础概率(权重) 
+ */
+  public $probability;
+
+/**
+ * @var String 内容(物品id,num) 
+ */
+  public $goods;
+
+}
+

+ 23 - 0
Gameserver/Amfphp/Model/Const/sm_secretshop_refresh.php

@@ -0,0 +1,23 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-12-01 09:06:33
+////////////////////
+
+
+/**
+ * Static Model secretshop_refresh 
+ */
+class sm_secretshop_refresh
+{
+
+/**
+ * @var UInt32 刷新价格(钻石) 
+ */
+  public $price;
+
+}
+

+ 53 - 0
Gameserver/Amfphp/Model/Const/sm_secretshop_typeId.php

@@ -0,0 +1,53 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-12-29 14:50:10
+////////////////////
+
+
+/**
+ * Static Model secretshop_typeId 
+ */
+class sm_secretshop_typeId
+{
+
+/**
+ * @var String  
+ */
+  public $name;
+
+/**
+ * @var Int32 物品售价,起步价, 按照购买次数翻倍 
+ */
+  public $price;
+
+/**
+ * @var Int32 定价类型: 0.RMB, 1.钻石, 2.金币 
+ */
+  public $pricetype;
+
+/**
+ * @var Int32 解锁所需(玩家)等级 
+ */
+  public $unlock_level;
+
+/**
+ * @var Int32 基础概率(权重) 
+ */
+  public $probability;
+
+/**
+ * @var Int32 商品类型分类:1. 普通角色, 2. 稀有角色, 3. 普通装备, 4. 稀有装备, 5. 普通道具, 6. 稀有道具 
+ */
+  public $goodsType;
+
+/**
+ * @var String 内容(物品id,num) 
+ */
+  public $goods;
+
+}
+

+ 98 - 0
Gameserver/Amfphp/Model/Const/sm_segment.php

@@ -0,0 +1,98 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-02-03 10:52:46
+////////////////////
+
+
+/**
+ * Static Model segment 
+ */
+class sm_segment
+{
+
+/**
+ * @var Int32  
+ */
+  public $id;
+
+/**
+ * @var String  
+ */
+  public $name;
+
+/**
+ * @var String 物品icon名 
+ */
+  public $icon;
+
+/**
+ * @var String 物品描述 
+ */
+  public $item_desc;
+
+/**
+ * @var Int32 物品 品质(珍惜度) default(1)
+ */
+  public $quailty;
+
+/**
+ * @var Int32 显示顺序的排序,1最低 default(1)
+ */
+  public $order;
+
+/**
+ * @var Int32 一级 物品分类(英雄碎片 1 装备碎片2 皮肤碎片3小怪碎片是4 等等) 
+ */
+  public $itemType;
+
+/**
+ * @var Int32 物品二级分类 
+ */
+  public $subType;
+
+/**
+ * @var Int32 背包是否可以卖出 0 不能卖 1 可以卖 default(0)
+ */
+  public $isCanSoldFromPacket;
+
+/**
+ * @var Int32 背包出售的 金币价格 default(0)
+ */
+  public $saleGoldPrice;
+
+/**
+ * @var Int32 分解获得普通魂魄 default(0)
+ */
+  public $ordinarySoul;
+
+/**
+ * @var Int32 分解能获得金色魂魄数值 default(0)
+ */
+  public $goldenSoul;
+
+/**
+ * @var String 碎片对应的数据原型 
+ */
+  public $prototypeData;
+
+/**
+ * @var Int32 合成数据原型的道具,需要的碎片数量 default(100)
+ */
+  public $mergePrototypeNeedNum;
+
+/**
+ * @var String 道具的数值 
+ */
+  public $tag;
+
+/**
+ * @var DateTime 上次修改 default(CURRENT_TIMESTAMP)
+ */
+  public $lastupdate;
+
+}
+

+ 58 - 0
Gameserver/Amfphp/Model/Const/sm_segment_byPinzhi.php

@@ -0,0 +1,58 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-02-03 10:52:46
+////////////////////
+
+
+/**
+ * Static Model segment_byPinzhi 
+ */
+class sm_segment_byPinzhi
+{
+
+/**
+ * @var String  
+ */
+  public $typeId;
+
+/**
+ * @var Int32 背包是否可以卖出 0 不能卖 1 可以卖 default(0)
+ */
+  public $isCanSoldFromPacket;
+
+/**
+ * @var Int32 背包出售的 金币价格 default(0)
+ */
+  public $saleGoldPrice;
+
+/**
+ * @var Int32 分解获得普通魂魄 default(0)
+ */
+  public $ordinarySoul;
+
+/**
+ * @var Int32 分解能获得金色魂魄数值 default(0)
+ */
+  public $goldenSoul;
+
+/**
+ * @var String 碎片对应的数据原型 
+ */
+  public $prototypeData;
+
+/**
+ * @var Int32 合成数据原型的道具,需要的碎片数量 default(100)
+ */
+  public $mergePrototypeNeedNum;
+
+/**
+ * @var String 道具的数值 
+ */
+  public $tag;
+
+}
+

+ 30 - 0
Gameserver/Amfphp/Model/Const/sm_segment_ronghe.php

@@ -0,0 +1,30 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-03-06 15:58:30
+////////////////////
+
+
+/**
+ * Static Model segment_ronghe 
+ */
+class sm_segment_ronghe
+{
+
+/**
+ * @var Int32 权重值(该品质在获取概率中占的权重) 
+ */
+  public $weight;
+
+/**
+ * @var String 根据最终三个碎片的权重值和来判断该品质的获取概率。
+
+用类似  3,80;5,60;10,20;  来表示 (在权重和达到3时获取率是80%,在权重和达到5时获取率是60%,在权重和达到10时获取率是10%) 
+ */
+  public $probability;
+
+}
+

+ 33 - 0
Gameserver/Amfphp/Model/Const/sm_service_schedule.php

@@ -0,0 +1,33 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-02-07 15:56:44
+////////////////////
+
+
+/**
+ * Static Model service_schedule 
+ */
+class sm_service_schedule
+{
+
+/**
+ * @var Int32 开始时间戳 default(0)
+ */
+  public $startts;
+
+/**
+ * @var Int32 结束时间戳 default(0)
+ */
+  public $endts;
+
+/**
+ * @var String 原因 default(0)
+ */
+  public $reason;
+
+}
+

+ 78 - 0
Gameserver/Amfphp/Model/Const/sm_shop.php

@@ -0,0 +1,78 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-20 11:28:14
+////////////////////
+
+
+/**
+ * Static Model shop 
+ */
+class sm_shop
+{
+
+/**
+ * @var Int32  
+ */
+  public $id;
+
+/**
+ * @var String 名称 
+ */
+  public $name;
+
+/**
+ * @var Int32 原价 
+ */
+  public $yuanjia;
+
+/**
+ * @var Int32 现价 
+ */
+  public $price;
+
+/**
+ * @var Int32 定价类型: 0.RMB(元), 1.钻石(颗), 2.金币(个) 
+ */
+  public $pricetype;
+
+/**
+ * @var String 介绍文字 
+ */
+  public $desc;
+
+/**
+ * @var String 内容(物品id,num) 
+ */
+  public $goods;
+
+/**
+ * @var String 商品类型分类 
+ */
+  public $goodsType;
+
+/**
+ * @var Int32 0 关闭 1开启 default(0)
+ */
+  public $IsOpen;
+
+/**
+ * @var Int32  default(99999)
+ */
+  public $Order;
+
+/**
+ * @var String 商品图标名称 
+ */
+  public $icon;
+
+/**
+ * @var String 物品在商店所属的标签页 
+ */
+  public $subType;
+
+}
+

+ 110 - 0
Gameserver/Amfphp/Model/Const/sm_skill.php

@@ -0,0 +1,110 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-11-06 11:06:56
+////////////////////
+
+
+/**
+ * Static Model skill 
+ */
+class sm_skill
+{
+
+/**
+ * @var String  
+ */
+  public $name;
+
+/**
+ * @var String icon 
+ */
+  public $icon;
+
+/**
+ * @var String 己方打敌方,显示在敌方身上(就是地图上的) 
+ */
+  public $redres;
+
+/**
+ * @var String blue,是敌方打我方,显示在UI上的。 
+ */
+  public $blueres;
+
+/**
+ * @var String  
+ */
+  public $desc;
+
+/**
+ * @var String 11自身
+12当前敌方
+21自身以及相邻单位
+22当前目标及相邻单位
+31我方全体
+32敌方全体
+41我方坦克职业角色
+42敌方坦克职业角色
+43血量最少的一个(敌方)
+44血量最少的一个(己方)
+44敌方血量最少的三个
+45敌我双方
+46生命最少的一个(己方)
+47生命最少的一个(敌方) default(12)
+ */
+  public $aim;
+
+/**
+ * @var Int32 技能效果修正
+0=根据aim列锁定目标生成特效
+1=生成一个特效放在地图中间
+2=生成一个特效在屏幕上 default(0)
+ */
+  public $aimparm;
+
+/**
+ * @var Int32 动作(0=无 1=攻击) default(1)
+ */
+  public $action;
+
+/**
+ * @var Int32 技能类型
+1、普通攻击/2、点击技能/3、必杀技能/4、个人被动/5、队长被动 default(1)
+ */
+  public $type;
+
+/**
+ * @var String 点值,"/"隔开 default(0)
+ */
+  public $parmValue;
+
+/**
+ * @var Int32 魔法伤害
+EBULLET_DAMAGE_MAG = 5,
+物理攻击
+EBULLET_DAMAGE_PHY = 6,
+治疗类型
+EBULLET_DAMAGE_CURE = 7, default(0)
+ */
+  public $ProType;
+
+/**
+ * @var String 影像的数值型比例,"/"隔开 default(0)
+ */
+  public $ProValue;
+
+/**
+ * @var String buffid,"/"隔开 
+ */
+  public $BuffLst;
+
+/**
+ * @var Int32 技能延迟时间(毫秒) default(0)
+ */
+  public $delayTime;
+
+}
+

+ 108 - 0
Gameserver/Amfphp/Model/Const/sm_skill_proty.php

@@ -0,0 +1,108 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model skill_proty 
+ */
+class sm_skill_proty
+{
+
+/**
+ * @var String 成长公式 
+ */
+  public $upgradeFormula;
+
+/**
+ * @var Int32 生命值 default(0)
+ */
+  public $hp;
+
+/**
+ * @var Int32  default(0)
+ */
+  public $hp1;
+
+/**
+ * @var Int32 生命回复 default(0)
+ */
+  public $hpRecover;
+
+/**
+ * @var Int32  default(0)
+ */
+  public $hpRecover1;
+
+/**
+ * @var Int32 物理攻击 default(0)
+ */
+  public $physicaAttack;
+
+/**
+ * @var Int32  default(0)
+ */
+  public $physicaAttack1;
+
+/**
+ * @var Int32 法术强度 default(0)
+ */
+  public $spellPower;
+
+/**
+ * @var Int32  default(0)
+ */
+  public $spellPower1;
+
+/**
+ * @var Int32 护甲 default(0)
+ */
+  public $armor;
+
+/**
+ * @var Int32  default(0)
+ */
+  public $armor1;
+
+/**
+ * @var Int32 魔抗 default(0)
+ */
+  public $magicResistance;
+
+/**
+ * @var Int32  default(0)
+ */
+  public $magicResistance1;
+
+/**
+ * @var Int32 物理穿透 default(0)
+ */
+  public $physicalPenetration;
+
+/**
+ * @var Int32 魔法穿透 default(0)
+ */
+  public $magicPenetration;
+
+/**
+ * @var Int32 出现暴击的几率 default(0)
+ */
+  public $critical;
+
+/**
+ * @var Int32  生命偷取 default(0)
+ */
+  public $suckBlood;
+
+/**
+ * @var Int32 出手速度 基础值 default(0)
+ */
+  public $attackSpeed;
+
+}
+

+ 38 - 0
Gameserver/Amfphp/Model/Const/sm_skill_shengji.php

@@ -0,0 +1,38 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-16 11:55:49
+////////////////////
+
+
+/**
+ * Static Model skill_shengji 
+ */
+class sm_skill_shengji
+{
+
+/**
+ * @var Int32  
+ */
+  public $basic;
+
+/**
+ * @var Int32  
+ */
+  public $xishu;
+
+/**
+ * @var String 升到目标等级,,需要额外值 
+ */
+  public $extra;
+
+/**
+ * @var Int32 最大等级 default(5)
+ */
+  public $maxLevel;
+
+}
+

+ 43 - 0
Gameserver/Amfphp/Model/Const/sm_smelting.php

@@ -0,0 +1,43 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model smelting 
+ */
+class sm_smelting
+{
+
+/**
+ * @var String  
+ */
+  public $grade;
+
+/**
+ * @var String  
+ */
+  public $spendgold;
+
+/**
+ * @var String  
+ */
+  public $costamoun;
+
+/**
+ * @var String  
+ */
+  public $successrate;
+
+/**
+ * @var String  
+ */
+  public $attribute;
+
+}
+

+ 53 - 0
Gameserver/Amfphp/Model/Const/sm_sysmail.php

@@ -0,0 +1,53 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-11 10:35:43
+////////////////////
+
+
+/**
+ * Static Model sysmail 
+ */
+class sm_sysmail
+{
+
+/**
+ * @var String 标题 
+ */
+  public $title;
+
+/**
+ * @var String 内容 
+ */
+  public $content;
+
+/**
+ * @var Int32 道具id 
+ */
+  public $itemid;
+
+/**
+ * @var Int32 道具数量 
+ */
+  public $num;
+
+/**
+ * @var Int32 生效时间ts 
+ */
+  public $startts;
+
+/**
+ * @var Int32 过期/失效时间ts default(0)
+ */
+  public $endts;
+
+/**
+ * @var String 附加数据 
+ */
+  public $tag;
+
+}
+

+ 58 - 0
Gameserver/Amfphp/Model/Const/sm_task.php

@@ -0,0 +1,58 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-02-05 11:03:36
+////////////////////
+
+
+/**
+ * Static Model task 
+ */
+class sm_task
+{
+
+/**
+ * @var String 按面板查询任务 每日,挑战,新手,副本。 
+ */
+  public $ban;
+
+/**
+ * @var String  
+ */
+  public $name;
+
+/**
+ * @var String  
+ */
+  public $desc;
+
+/**
+ * @var String 任务的阶段(10,20)代表10级到20级之间会接到  (0,10)代表10级之前会接到 
+ */
+  public $taskrank;
+
+/**
+ * @var String  
+ */
+  public $tasktype;
+
+/**
+ * @var String 完成任务所需的第一个参数 
+ */
+  public $canshu1;
+
+/**
+ * @var String 完成任务所需的第二个参数 
+ */
+  public $canshu2;
+
+/**
+ * @var String  
+ */
+  public $reward;
+
+}
+

+ 48 - 0
Gameserver/Amfphp/Model/Const/sm_task_achi.php

@@ -0,0 +1,48 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2017-10-27 14:27:45
+////////////////////
+
+
+/**
+ * Static Model task_achi 
+ */
+class sm_task_achi
+{
+
+/**
+ * @var String 该成就任务是否存在父任务 
+ */
+  public $father;
+
+/**
+ * @var String  
+ */
+  public $name;
+
+/**
+ * @var String  
+ */
+  public $desc;
+
+/**
+ * @var String  
+ */
+  public $tasktype;
+
+/**
+ * @var String  
+ */
+  public $canshu;
+
+/**
+ * @var String  
+ */
+  public $reward;
+
+}
+

+ 38 - 0
Gameserver/Amfphp/Model/Const/sm_tokenGift.php

@@ -0,0 +1,38 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-02-06 14:32:15
+////////////////////
+
+
+/**
+ * Static Model tokenGift 
+ */
+class sm_tokenGift
+{
+
+/**
+ * @var Int32 平台(0:all,1:腾讯,2:九游,...) 
+ */
+  public $plat;
+
+/**
+ * @var Int32 开始生效时间戳 
+ */
+  public $startTs;
+
+/**
+ * @var Int32 失效时间戳 
+ */
+  public $expirets;
+
+/**
+ * @var String 礼包内容: itemid,num;itemid,num... 
+ */
+  public $reward;
+
+}
+

+ 38 - 0
Gameserver/Amfphp/Model/Const/sm_zonelist.php

@@ -0,0 +1,38 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2018-01-19 15:55:30
+////////////////////
+
+
+/**
+ * Static Model zonelist 
+ */
+class sm_zonelist
+{
+
+/**
+ * @var String 分区名称 
+ */
+  public $name;
+
+/**
+ * @var UInt64 是否推荐: 0,否; 1,推荐 default(b'1')
+ */
+  public $isRecommended;
+
+/**
+ * @var Int32 分区状态:1,new;2,maintain;3,hot default(1)
+ */
+  public $status;
+
+/**
+ * @var Int32 分区什么时候开放的时间戳,设置确定后不要再改 default(0)
+ */
+  public $publicTs;
+
+}
+

+ 34 - 0
Gameserver/Amfphp/Model/User/CarbonModel.php

@@ -0,0 +1,34 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 副本状态数据
+ * @version
+ *          1.0.0 Created at 2017-5-18. by --gwang
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-5-18, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class CarbonModel
+{
+    /**
+     *   副本设计: 依附于关卡, 需要用关卡掉落的道具开启副本,
+     *            开启后, 可从关卡界面进入副本, 副本中含有一系列的小关卡.
+     *            副本开启后立即开始关闭倒计时,倒计时结束,副本关闭, 可以再次重复开启流程.
+     *            副本通关后立即关闭副本.
+     *            副本关卡战斗,类似于普通关卡战斗, 同样会有掉落.
+     *            副本也有三个难度.
+     */
+
+    /**
+     * @var int 推进关卡索引
+     */
+    public $curIndex = 0;
+
+    /**
+     *
+     * @var int 何时关闭的时间戳
+     */
+    public $closeTs = 0;
+
+}

+ 142 - 0
Gameserver/Amfphp/Model/User/EmailModel.php

@@ -0,0 +1,142 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 邮件数据模型
+ * @version
+ *          1.0.0 Created at 2017-4-27. by --gwang
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-4-27, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class EmailModel extends Object_ext
+{
+
+    /**
+     * 邮件编号
+     * @var int
+     */
+    public $mailId;
+
+    /**
+     * 发件人uid
+     * @var string
+     */
+    public $uid_sender;
+
+    /**
+     * 发件人昵称
+     * @var string
+     */
+    public $name_sender;
+
+    /**
+     * 道具Id
+     * @var string
+     */
+    public $itemid;
+
+    /**
+     * 道具数量
+     * @var int
+     */
+    public $num;
+
+    /**
+     * 邮件类型
+     * @var int
+     */
+    public $type;
+
+    /**
+     * 邮件标题
+     * @var string
+     */
+    public $title;
+
+    /**
+     * 邮件正文
+     * @var string
+     */
+    public $content;
+
+    /**
+     * 附加标签
+     * @var obj
+     */
+    public $tag;
+
+    /**
+     * 生效时间
+     * @var ts
+     */
+    public $startts;
+
+    /**
+     * 过期时间
+     * @var ts
+     */
+    public $endts;
+
+    /**
+     * 领取时间
+     * @var ts
+     */
+    public $drawedts = 0;
+
+    /**
+     * 发送时间
+     * @var ts
+     */
+    public $insertts;
+
+    /**
+     * 邮件是否已经领取
+     * true = 已读
+     * @return bool
+     */
+    public function isDrawed()
+    {
+        return $this->drawedts > 0;
+    }
+
+    /**
+     * 邮件是否存在奖励内容
+     * true = 有奖励
+     * false =  无
+     * @return bool
+     */
+    public function isExistReward()
+    {
+        return $this->itemid > 0 && $this->num > 0;
+    }
+
+    /**
+     * 返回: 物品id,数量 的字符串
+     * @return string
+     */
+    public function getRewardStr()
+    {
+        return $this->itemid . "," . $this->num;
+    }
+
+    function __construct($tag = null, $type = 1, $title = "", $content = "", $itemid = 0, $num = 0, #
+            $uid_sender = "系统", $name_sender = "系统", $startts = 0, $endts = 1999999999)
+    {
+        if (1 == func_num_args() && $tag) { # 默认的Object初始化方法
+            parent::__construct($tag);
+        } else {
+            $this->tag = $tag;
+            $this->type = $type;
+            $this->title = $title;
+            $this->content = $content;
+            $this->itemid = $itemid;
+            $this->num = $num;
+            $this->uid_sender = $uid_sender;
+            $this->name_sender = $name_sender;
+            $this->startts = $startts;
+            $this->endts = $endts;
+        }
+    }
+
+}

+ 37 - 0
Gameserver/Amfphp/Model/User/GamePvpChanlian.php

@@ -0,0 +1,37 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ *  PVP蝉联数据
+ *  PVP 蝉联榜, (历届得主) array
+ * @version
+ *          1.0.0 Created at 2017-11-13. by --gwang
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-11-13, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class GamePvpChanlian extends Object_ext
+{
+
+    /**
+     *
+     * @var int 修改标记
+     */
+    public $tsWeek = 0;
+
+    /**
+     * @var int 蝉联次数
+     */
+    public $times = 0;
+
+    /**
+     * @var string 玩家唯一ID
+     */
+    public $uid;
+
+    /**
+     * @var json 玩家信息(参考拉取榜单玩家时的返回结构)
+     */
+    public $userInfo;
+
+}

+ 342 - 0
Gameserver/Amfphp/Model/User/GuildModel.php

@@ -0,0 +1,342 @@
+<?php
+
+namespace loyalsoft;
+
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+/**
+ * Description of GuildModel
+ *
+ * @author cyzhao
+ */
+class GuildModel
+{
+
+    /**
+     * 公会的ID
+     * @var int
+     */
+    public $guildId;
+
+    /**
+     * 公会名称
+     * @var string
+     */
+    public $name;
+
+    /**
+     * 公会的等级
+     * @var int
+     */
+    public $level = 1;
+
+    /**
+     * 奖杯积分
+     * @var int
+     */
+    public $cupScore = 0;
+
+    /**
+     * 玩家申请加入公会列表
+     * @var object
+     */
+    public $applylist;
+
+    /**
+     * 会长的OpenID
+     * @var string
+     */
+    public $chairman_id = "";
+
+    /**
+     * 会长 name
+     * @var string
+     */
+    public $chairman_name = "";
+
+    /**
+     * @var array 副会长集合
+     */
+    public $viceChairManArr = array();
+
+    /**
+     * @var array 干部
+     */
+    public $officerManArr = array();
+
+    /**
+     * 公会成员
+     * @var array
+     */
+    public $members = array();
+
+    /**
+     * 公会的宗旨/公告
+     * @var string
+     */
+    public $declare = "";
+
+    /**
+     * 创建时间戳
+     * @var type
+     */
+    public $createts = 0;
+
+    /**
+     * 允许一键(快速)加入, 默认不开启
+     * @var int
+     */
+    public $enableQuickIn = 0; //默认允许任何人加入; 1是需要申请;2不允许任何人加入公会
+
+    /**
+     * 徽章
+     * @var int
+     */
+    public $guild_img = 0;
+
+    /**
+     * 加入公会所需条件
+     * @var int
+     */
+    public $condition;
+
+    /**
+     * 弹劾 同意
+     * @var type
+     */
+    public $accuse_agreed = array();
+
+    /**
+     * 弹劾 拒接
+     *  @var type
+     */
+    public $accuse_refuse = array();
+
+    /**
+     * 弹劾 时间
+     * @var int
+     */
+    public $accuseTs = 0;
+
+    /**
+     * 弹劾 冷却时间
+     * @var int
+     */
+    public $accuse_coolTime = 0;
+
+    /**
+     * 公会总贡献
+     * @var int
+     */
+    public $allContribute = 0;
+
+    /**
+     * 公会公告编辑冷却时间
+     * @var int
+     */
+    public $announcement_CoolingTs = 0;
+
+    /**
+     * 公会公告内容
+     * @var type
+     */
+    public $announcement_content = array();
+
+    /**
+     * 公会礼包购买数量记录
+     * @var type
+     */
+    public $giftnum_record;
+
+    /**
+     * 创建新公会
+     * @param type $mem
+     * @return GuildModel
+     */
+    public static function NewGuildInit($mem, $zoneid)
+    {
+
+        $guildid = self::CreateNewGuildID($mem, $zoneid);
+
+        $guildInfo = new GuildModel();
+        $guildInfo->guildId = $guildid;
+        $guildInfo->createts = now();
+        $guildInfo->members = array();
+        $guildInfo->level = 1;
+        $guildInfo->cupScore = 0;
+        $guildInfo->applylist = ObjectInit();
+        $guildInfo->condition = ObjectInit();
+        $guildInfo->giftnum_record = ObjectInit();
+        return $guildInfo;
+    }
+
+    static function CreateNewGuildID($mem, $zoneid)
+    {
+        $i = 0;
+        while (true) {
+            if ($mem->add(MemKey_Guild::constCreateGuildIDLock(), "V")) {
+                $guildid = $mem->get(MemKey_Guild::constGetCurrentMaxGuildID($zoneid));
+                if ($guildid == null) {
+                    $guildid = GUILDIDBASE;
+                }
+                $guildid += 1;
+                $mem->set(MemKey_Guild::constGetCurrentMaxGuildID($zoneid), $guildid);
+                $mem->delete(MemKey_Guild::constCreateGuildIDLock());
+                return $guildid;
+            } else {
+                if ($i++ > 10)
+                    return 0;
+                usleep(13); // 休息13微妙
+            }
+        }
+    }
+
+}
+
+/**
+ * 玩家请求加入公会的消息结构体
+ */
+class UserApplyForGuildModel
+{
+
+    public $uid;
+    public $ts;
+    public $approved = false;
+    public $name;
+    public $level;
+
+    /**
+     * 创建一条新的请求信息
+     * @param type $oid
+     * @return UserApplyForGuildModel Description
+     */
+    public static function CreateApplyInfo($uid, $name, $level)
+    {
+        $ret = new UserApplyForGuildModel();
+        $ret->uid = $uid;
+        $ret->ts = now();
+        $ret->name = $name;
+        $ret->level = $level;
+        $ret->approved = false;
+
+        return $ret;
+    }
+
+}
+
+/**
+ * 公会值日消息类型
+ */
+class GuildJournalType
+{
+
+    const Join = 1; //加入
+    const requestDonate = 2; //请求捐献
+    const Quit = 3; //退会
+    const ChangeChairMan = 4; //改变会长
+    const BuyGift = 5; //购买礼包
+
+}
+
+/**
+ * 公会日志数据体
+ */
+class GuildJournalModel
+{
+
+    public $ts;
+    public $uid;
+    public $type;
+    public $datas;
+
+    public static function CreateJoin($uid, $name)
+    {
+        $journal = new GuildJournalModel();
+        $journal->ts = now();
+        $journal->type = GuildJournalType::Join;
+        $journal->uid = $uid;
+        $journal->datas = array();
+        $journal->datas [] = $uid;
+        $journal->datas [] = $name;
+        return $journal;
+    }
+
+    public static function RequestDonate($uid, $name, $cardId, $cardCount)
+    {
+        $journal = new GuildJournalModel();
+        $journal->ts = now();
+        $journal->type = GuildJournalType::requestDonate;
+        $journal->uid = $uid;
+        $journal->datas = array();
+        $journal->datas [] = $uid;
+        $journal->datas [] = $name;
+        $journal->datas [] = $cardId;
+        $journal->datas [] = $cardCount;
+        $journal->datas [] = 0; //现在已得到的捐献数量
+        return $journal;
+    }
+
+    public static function CreateQuit($uid, $name)
+    {
+        $journal = new GuildJournalModel();
+        $journal->ts = now();
+        $journal->type = GuildJournalType::Quit;
+        $journal->uid = $uid;
+        $journal->datas = array();
+        $journal->datas [] = $uid;
+        $journal->datas [] = $name;
+        return $journal;
+    }
+
+    public static function CreateChangeChairman($uid, $name, $transferedid, $transferedname)
+    {
+        $journal = new GuildJournalModel();
+        $journal->ts = now();
+        $journal->type = GuildJournalType::ChangeChairMan;
+        $journal->uid = $uid;
+        $journal->datas = array();
+        $journal->datas [] = $uid;
+        $journal->datas [] = $name;
+        $journal->datas [] = $transferedid;
+        $journal->datas [] = $transferedname;
+        return $journal;
+    }
+
+    public static function BuyGift($uid, $name)
+    {
+        $journal = new GuildJournalModel();
+        $journal->ts = now();
+        $journal->type = GuildJournalType::BuyGift;
+        $journal->uid = $uid;
+        $journal->datas = array();
+        $journal->datas [] = $uid;
+        $journal->datas [] = $name;
+
+        return $journal;
+    }
+
+}
+
+class GuildAnnouncementModel extends Object_ext
+{
+
+    public $ts;
+    public $title;
+    public $content;
+
+    function __construct($tag, $ts, $title, $content)
+    {
+        if (1 == func_num_args() && $tag) { # 默认的Object初始化方法
+            parent::__construct($tag);
+        } else {
+            $this->ts = $ts;
+            $this->title = $title;
+            $this->content = $content;
+        }
+    }
+
+}

+ 57 - 0
Gameserver/Amfphp/Model/User/HeroManualModel.php

@@ -0,0 +1,57 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 《神兽宝鉴》
+ * 玩家的《神兽宝鉴》点亮了多少图标
+ */
+class HeroManualModel
+{
+
+    /**
+     * 《玩家宝鉴》的成长度(经验)
+     * 获得新的神兽(蛋)或者神兽升阶的时候增加成长度
+     * @var type
+     */
+    public $exp = 0;
+
+    /**
+     * 神兽图鉴序列
+     * @var stdClass {30100" : [0], "30101" : [0, 1, 2]}
+     */
+    public $godpetDic;
+
+    /**
+     * 神兽星星记录
+     * @var obj {30100" : [0], "30101" : [0, 1, 2]}
+     */
+    public $godpetStarDic;
+
+    /**
+     * 已经领取的奖励记录
+     * @var stdClass {30100" : [0], "30101" : [0, 1, 2]}
+     */
+    public $rewarded;
+
+    /**
+     * 属性套装
+     * @var obj {elements:{e:3,f:3,w:0},extra:{a,d,h,s}}
+     */
+    public $attributeSuits;
+
+    /**
+     * 星套套装
+     * @var obj  {elements:{e:3,f:3,w:0},extra:{a,d,h,s}}
+     */
+    public $starSuits;
+
+    function initInstance()
+    {
+        $this->godpetDic = ObjectInit();
+        $this->rewarded = ObjectInit();
+        $this->attributeSuits = ObjectInit();
+        $this->starSuits = ObjectInit();
+    }
+
+}

+ 151 - 0
Gameserver/Amfphp/Model/User/HeroModel.php

@@ -0,0 +1,151 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 玩家英雄数据模块
+ * 模板数据
+ * @author gwang
+ */
+class HeroModel
+{
+
+    /**
+     * 英雄原型数据编号
+     * @var string
+     */
+    public $heroId;
+
+    /**
+     *
+     * @var string
+     */
+    public $name;
+
+    /**
+     * 元素
+     */
+    public $yuansu;
+
+    /**
+     * 职业类别
+     */
+    public $zhiye;
+
+    #region  战斗使用属性
+
+    /**
+     * 生命值
+     */
+    public $hp;
+
+    /**
+     *  攻击
+     */
+    public $gongji;
+
+    /**
+     *  魔防御
+     */
+    public $fangyu;
+
+    /**
+     *  敏捷
+     */
+    public $minjie;
+
+    /**
+     *  暴击
+     */
+    public $baoji;
+
+    #endregion
+    #region 各属性的成长系数
+    /**
+     * 生命值
+     */
+    public $hp1;
+
+    /**
+     *  攻击
+     */
+    public $gongji1;
+
+    /**
+     *  魔防御
+     */
+    public $fangyu1;
+
+    /**
+     *  敏捷
+     */
+    public $minjie1;
+
+    /**
+     *  暴击
+     */
+    public $baoji1;
+    #endregion
+    #region   战斗技能
+
+    /**
+     *  普通攻击
+     */
+    public $normalSkill;
+
+    /**
+     *   主动技能1
+     */
+    public $manuSkill1;
+
+    /**
+     * 主动技能2
+     */
+    public $manuSkill2;
+
+    /**
+     * 被动技能
+     */
+    public $manuSkill3;
+
+    /**
+     *  队长技能
+     */
+    public $captainSkill;
+
+    #endregion
+//    /**
+//     * 构造函数
+//     */
+//    public function __construct()
+//    {
+//        $this->level = 1;
+//        $this->quality = 1;
+//    }
+//    /**
+//     * 设置
+//     * @param string $heroID
+//     * @param int $instanceID
+//     * @param int $level
+//     * @param int $quality
+//     */
+//    public function reInit($heroID, $instanceID, $level = 1, $quality = 1)
+//    {
+//        $this->heroId = $heroID;
+//        $this->uid = $instanceID;
+//        $this->level = $level;
+//        $this->quality = $quality;
+//        $this->skills = new HeroSkillModel;
+//    }
+//    /**
+//     * 从一个对象中序列化
+//     * @param type $value
+//     */
+//    function initialize($value)
+//    {
+//        CommUtil::loadObject($value, $this);
+//        $skills = new HeroSkillModel;
+//        CommUtil::loadObject($value->skills, $skills);
+//        $this->skills = $skills;
+//    }
+}

+ 222 - 0
Gameserver/Amfphp/Model/User/PrivateStateModel.php

@@ -0,0 +1,222 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * Description of UserGameDataModel
+ * 私有状态标志字
+ */
+class PrivateStateModel extends Object_ext
+{
+// ------------字段声明-------------
+//    tian添加7日活动的数据结构
+
+    /**
+     * "day7": {  // 初始化user的时候,初始化好day7模块的数据.
+      "tasks":{
+      "401101": {
+      "state": 1, // 1.待完成,2.已完成,待领奖,3.已领奖.
+      },
+      "dianshu":11
+     * }
+     * @var object 7日活动数据
+     */
+    public $day7;
+
+    /**
+     *
+     * @var int 物品的uid,递增
+     */
+    public $currentId;
+
+    /**
+     *
+     * @var int 物品的背包格子的上限 目前和李宁协商的结果是:抽奖可以超上限,物品合成可以超上限,任务奖励可以超上限,只有战斗时候会有限制超过上限,如果继续战斗的话,战斗的奖励品将不会获取.
+     */
+    public $maxItemNum = 100;
+
+    /**
+     *
+     * @var int 物品背包格子的数量.
+     */
+    public $ItemNum;
+
+    /**
+     *
+     * @var int 当天英雄升级次数
+     */
+    public $heroshengji;
+
+    /**
+     *
+     * @var int 当天英雄升阶次数
+     */
+    public $heroshengjie;
+
+    /**
+     *
+     * @var int 当天英雄技能升级的次数
+     */
+    public $herojinhua;
+
+    /**
+     *
+     * @var int 当天英雄升星次数
+     */
+    public $heroshengxing;
+
+    /**
+     *
+     * @var int 当天装备升级次数
+     */
+    public $ItemUpgrage;
+
+    /**
+     *
+     * @var int 当天宝石升级次数
+     */
+    public $GemUpgrage;
+
+    /**
+     * @var array 当天租借好友记录
+     */
+    public $rentedFriends;
+
+    /**
+     * @var UserLotteryModel
+     */
+    public $lottery;
+
+    /**
+     * "tasks":{
+     * "401101": {
+     * "state": 1, // 1.待完成,2.已完成,待领奖,3.已领奖.
+     * }
+     * @var object 任务数据
+     */
+    public $Tasks;
+
+    /**
+     * "tasks":{
+     * "401101": {
+     * "state": 1, // 1.待完成,2.已完成,待领奖,3.已领奖.
+     * "extData": NULL
+     * }
+     * @var object 成就任务数据
+     */
+    public $AchiTasks;
+
+    /**
+     * 上次获取体力的时间戳
+     * @var int
+     */
+    public $TiliTime;
+
+    /**
+     * 宝箱累计的冷却时间。(到这个时间戳才能完全没有冷却)
+     * @var int
+     */
+    public $BoxCoolDownTime;
+
+    /**
+     * 宝箱是否被锁住,0代表没有锁住可以开,1代表锁住,不能开。
+     * @var int
+     */
+    public $BoxLock;
+
+    /**
+     * 登录天数
+     * @var array
+     */
+    public $LoginDays;
+
+    /**
+     * 是否领取过每次登录任务
+     * @var int是1的话就领取过,0的话就没有领取
+     */
+    public $LoginTaskComplete;
+
+    /**
+     * @var array 兑换码使用记录
+     */
+    public $usedTokens = array();
+
+    /**
+     * @var int 在线礼包领取时间戳(每日清空)
+     */
+    public $onlineGiftts = 0;
+
+    /**
+     *
+     * @var int 当前在线礼包ID(每天清空)
+     */
+    public $onlineGiftID;
+
+    /**
+     * @var array 全服注册礼包领取记录
+     */
+    public $drawedRegGift = array();
+
+    /**
+     * @var boolean 首付礼包是否领取
+     */
+    public $firstPayGift = false;
+
+    /**
+     * @var array 每日领取的体力奖励记录
+     */
+    public $dailyDrawedTiliGift = array();
+
+// <editor-fold defaultstate="collapsed" desc="    初始化    ">
+
+    /**
+     * 玩家注册时初始化
+     */
+    public function initialize()
+    {
+// 用于给各个字段赋默认初始值
+        $this->day7 = JsonUtil::decode(JsonUtil::encode(array('tasks' => ObjectInit(), 'dianshu' => 0)));
+        $this->Tasks = ObjectInit();
+        $this->AchiTasks = ObjectInit();
+        $this->maxItemNum = GameConfig::primordial_data()->User_Private_MaxItem_num; //100;
+        $this->currentId = 1;
+        $this->ItemNum = 0;
+        $this->GemUpgrage = 0;
+        $this->ItemUpgrage = 0;
+        $this->herojinhua = 0;
+        $this->heroshengji = 0;
+        $this->heroshengjie = 0;
+        $this->heroshengxing = 0;
+        $this->TiliTime = now();
+        $this->BoxCoolDownTime = now();
+        $this->BoxLock = 0;
+        $this->LoginDays = ArrayInit();
+        $this->LoginTaskComplete = 0;
+        $this->lottery = new UserLotteryModel;
+        $this->usedTokens = ArrayInit();
+// <editor-fold defaultstate="collapsed" desc="    day7 相关">
+        $con = GameConfig::day7();
+        foreach ($con as $k => $v) {
+            $this->day7->tasks->$k = json_decode('{"state":1}');
+        }
+//        var_dump($this->day7);
+// </editor-fold>
+// <editor-fold defaultstate="collapsed" desc="    任务 相关">
+        $conTasks = GameConfig::task();
+        foreach ($conTasks as $k => $v) {
+            $this->Tasks->$k = json_decode('{"state":1}');
+        }
+// </editor-fold>
+// <editor-fold defaultstate="collapsed" desc="   成就任务 相关">
+//        $AchiTasks = GameConfig::task_achi();
+//        foreach ($AchiTasks as $k => $v) {
+//            $this->AchiTasks->$k = json_decode(json_encode(array(
+//                'state' => 1,
+//                'extData' => 0
+//            )));
+//        }
+// </editor-fold>
+    }
+
+// </editor-fold>
+}

+ 29 - 0
Gameserver/Amfphp/Model/User/PublicStateModel.php

@@ -0,0 +1,29 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 玩家公共数据(跨区)
+ * @version
+ *          1.0.0 Created at 2017-4-19. 添加英雄评分记录 by --gwang
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-4-19, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class PublicStateModel extends Object_ext
+{
+
+    /**
+     * 评过分的英雄id
+     * @var []
+     */
+    public $scoredheros;
+
+    /**
+     * 玩家注册时初始化
+     */
+    public function initialize()
+    {
+        $this->scoredheros = ArrayInit();
+    }
+
+}

+ 71 - 0
Gameserver/Amfphp/Model/User/StoreModel.php

@@ -0,0 +1,71 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * Description of StoreModel
+ * 玩家背包/仓库数据模型
+ * @author gwang
+ */
+class StoreModel extends Object_ext
+{
+
+    /**
+     * 其他道具
+     * @var array
+     */
+    public $items;
+
+    /**
+     * 已获得英雄卡牌道具,不叠加
+     * @var array
+     */
+    public $cards;
+
+    /**
+     * 装备, 待定
+     * @var type
+     */
+    public $equipment;
+
+    /**
+     * 宝箱
+     * @var array
+     */
+    public $boxes;
+
+    /**
+     * 英雄碎片,叠加
+     * @var object
+     */
+    public $segement;
+
+    /**
+     * 七宗罪元素(炼金元素)
+     * @var object
+     */
+    public $element;
+
+    /**
+     * 石头,叠加
+     * @var object
+     */
+    public $stones;
+
+    /**
+     * 玩家注册时初始化
+     */
+    public function initialize()
+    {
+        $this->boxes = GameConfig::primordial_data()->User_Store_boxes;
+        //array('701001' => 0, '702002' => 0, '703003' => 0, '704004' => 0);
+        $this->cards = ArrayInit();
+        $this->items = GameConfig::primordial_data()->User_Store_items;         # 初始含有一张黄金通知书
+        $this->equipment = ObjectInit();
+        $this->segement = GameConfig::primordial_data()->User_Store_segment;    # 碎片
+        $this->stones = ObjectInit();
+        $this->element = GameConfig::primordial_data()->User_Store_element;
+        //array('388001' => 0, '388002' => 0, '388003' => 0, '388004' => 0, '388005' => 0, '388006' => 0, '388007' => 0);
+    }
+
+}

+ 19 - 0
Gameserver/Amfphp/Model/User/UGateModel.php

@@ -0,0 +1,19 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * Description of UGateModel
+ * @version
+ *          1.0.0 Created at 2017-2-14. by --gwang
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-2-14, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class UGateModel extends Object_ext
+{
+
+    public $star = 1;
+    public $cleared = 0;
+    public $challengeTimes = 0;
+
+}

+ 29 - 0
Gameserver/Amfphp/Model/User/UserCarbonModel.php

@@ -0,0 +1,29 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 玩家关卡副本数据
+ * @version
+ *          1.0.0 Created at 2017-5-19. by --gwang
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-5-19, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class UserCarbonModel extends Object_ext
+{
+
+//put your code here
+    # 当前开启的副本
+    # 通关记录
+    /**
+     *
+     * @var  carbonmodel
+     */
+    public $openedCarbons;
+
+    public function initialize()
+    {
+        $this->openedCarbons = ObjectInit();
+    }
+
+}

+ 15 - 0
Gameserver/Amfphp/Model/User/UserFriendsModel.php

@@ -0,0 +1,15 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * Description of UserFriendsModel
+ * @version
+ *          1.0.0 Created at 2017-3-6. by --gwang
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-3-6, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class UserFriendsModel
+{
+//put your code here
+}

+ 77 - 0
Gameserver/Amfphp/Model/User/UserGameHeroModel.php

@@ -0,0 +1,77 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * Description of UserGameHeroModel
+ * @version
+ *          1.0.0 Created at 2017-2-14. by --gwang
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-2-14, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+
+/**
+ * 玩家收集的英雄的卡牌集合
+ */
+class UserGameHeroModel extends Object_ext
+{
+
+    /**
+     * 当前展示的英雄的UID
+     * @var type string
+     */
+    public $displayHeroUID;
+
+    /**
+     * 好友支援的英雄的UID
+     * @var type string
+     */
+    public $firendSupportHeroUID;
+
+    /**
+     * 当前收集卡牌的数量上限(可扩容)
+     * @var type int
+     */
+    public $maxCollectCount;
+
+    /**
+     * 英雄集合
+     * @var {}
+     */
+    public $collectHeros;
+
+    /**
+     * 记录一下曾经的最大UID
+     * @var type int
+     */
+    public $recordMaxUID;
+
+    /**
+     *
+     * @param CRedisUtil $mem
+     */
+    public function InitializeHero()
+    {
+        $this->displayHeroUID = null;
+        $this->firendSupportHeroUID = null;
+        $this->maxCollectCount = glc()->Game_CollectHero_BasicMaxCount;
+        $this->recordMaxUID = 0;
+
+        $this->collectHeros = ObjectInit();
+        # 设置初始英雄
+        $hids = GameConfig::primordial_data()->User_Heros;
+        foreach ($hids as $heroModelId) {
+            //1.检查是否存在这个英雄的模板
+            $heroCfg = GameConfig::hero_getItem($heroModelId);
+            if ($heroCfg) {
+                $uid = HeroProc::CreateNewGameHeroUID($this->collectHeros, $this->recordMaxUID);
+                $this->recordMaxUID = $uid;
+                $hero = HeroProc::getGameHeroModelInstance($heroCfg, $heroModelId, $uid);
+                $this->collectHeros->$uid = $hero;
+                $this->displayHeroUID = $uid;
+                $this->firendSupportHeroUID = $uid;
+            }
+        }
+    }
+
+}

+ 421 - 0
Gameserver/Amfphp/Model/User/UserGameModel.php

@@ -0,0 +1,421 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * Description of UserGameModel
+ * 游戏数据
+ * @author gwang (mail@wanggangzero.cn)
+ */
+class UserGameModel extends Object_ext
+{
+
+    /**
+     * 第一次登录时间
+     * @var int
+     */
+    public $firstLogin;
+
+    /**
+     * 上次登录时间
+     * @var int
+     */
+    public $lastLogin;
+
+    /**
+     * 上次活动时间
+     * @var int
+     */
+    public $lastSaveTs;
+
+    /**
+     * @var int 当前等级
+     */
+    public $level;  //
+    /**
+     * @var string 昵称
+     */
+    public $name; // 昵称
+    /**
+     * @var string 头像
+     */
+    public $img;  // 头像
+    /**
+     * @var int 头像框Id
+     */
+    public $imgBorderId = 0;
+
+    /**
+     * @var int 金币
+     */
+    public $gold;  // 金币
+    /**
+     * 钻石
+     * @var int
+     */
+    public $cash; //
+    /**
+     * 分解后得倒的晶石
+     * @var int
+     */
+    public $spar;
+
+    /**
+     * 体力值
+     * @var int
+     */
+    public $tili = 120; //体力
+    /**
+     * 当前经验
+     */
+    public $xp = 0;
+
+    /**
+     * 升级经验
+     * @var type
+     */
+    public $maxXp = 0;
+
+    /**
+     * @var int 好友赠送友情点数
+     */
+    public $friendPoint = 0;
+    //
+    // <editor-fold defaultstate="collapsed" desc="   统计字段   ">
+    /**
+     * @var int 历史充值总金额(单位:分)
+     */
+    public $charge_amt = 0;  //
+    /**
+     * @var int 游戏内赠送游戏币总额
+     */
+    public $gift_cash = 0;  //
+    // </editor-fold>
+    //
+    // ------------字段声明-------------
+
+    /**
+     * 玩家仓库
+     * @var StoreModel
+     */
+    public $store;
+
+    /**
+     * 建筑
+     * @var {}
+     */
+    public $buildings;
+
+    /**
+     * 英雄
+     * @var UserGameHeroModel
+     */
+    public $heros;
+
+    /**
+     * 私有字段
+     * @var PrivateStateModel
+     */
+    public $privateState;
+
+    /**
+     * @var UserSecretShopModel 玩家神秘商城数据
+     */
+    public $userSecretshop;
+
+    /**
+     * 关卡
+     * @var UserGateDifficulty
+     */
+    public $gates;
+
+    /**
+     *
+     * @var UserPVPModel pvp信息
+     */
+    public $pvp;
+
+    /**
+     * 战斗队伍配置信息
+     * @var UserGateDifficulty
+     */
+    public $heroTeamConfig;
+
+    /**
+     * 神兽图鉴数据
+     * @var HeroManualModel
+     */
+    public $heroManual;
+
+    /**
+     * 新手引导
+     * @var object
+     */
+    public $NewbieGuide;
+
+    /**
+     * @var UserProfile 角色画像
+     */
+    public $profile;
+
+    /**
+     * 用于给各个字段赋默认初始值
+     * @return \UserGameModel
+     */
+    public function initialize()
+    {
+        if (!GameConfig::primordial_data()) {
+            throw new \Exception("常量错误!");
+        }
+        $this->gold = GameConfig::primordial_data()->User_Gold;
+        $this->cash = GameConfig::primordial_data()->User_Cash;
+        $this->xp = GameConfig::primordial_data()->User_XP;
+        $this->maxXp = 0;
+        $this->level = 1;
+        $this->name = '聂风';
+        $this->spar = 0;
+        $this->img = GameConfig::primordial_data()->User_img;
+        # 添加默认战队设置
+        $this->heroTeamConfig = JsonUtil::encode(GameConfig::primordial_data()->User_HeroTeamConfig);
+    }
+
+    /**
+     * 构造函数
+     * @param type $arg
+     */
+    public function __construct($arg = null)
+    {
+        if (null === $arg) {                               # 未传参数的情况下
+            $this->buildings = ObjectInit();               # 建筑数据
+            $this->heros = new UserGameHeroModel();        # 英雄数据
+            $this->heros->InitializeHero();                # 添加初始英雄
+            $this->store = new StoreModel();               # 背包数据
+            $this->store->initialize();                    # 添加默认物品
+            $this->privateState = new PrivateStateModel(); # 私有字段
+            $this->privateState->initialize();             # 初始化默认数据
+            $this->gates = new UserGateDifficulty();       # 初始化关卡默认数据
+            $this->heroManual = new HeroManualModel();     # 初始化图鉴数据结构
+            $this->NewbieGuide = ObjectInit();             # 初始化新手引导结构
+            $this->pvp = new UserPVPModel();               # 初始化pvp模块
+        } else {                                           # 实参
+            parent::__construct($arg);                     # 调用Object的构造函数
+        }
+        $this->profile = new UserProfile();                # 初始化用户画像模块
+    }
+
+    // <editor-fold defaultstate="collapsed" desc="   functions   ">
+    /**
+     * 设置钻石数
+     * @param UserGameModel $user
+     * @param int $amt 数量
+     */
+    static public function set_Cash($user, $amt)
+    {
+        if ($amt > 0 && isset($user) && isset($user->cash)) {
+            $user->cash = $amt;
+            return true;
+        }
+        return false;
+    }
+
+    /**
+     * 扣除玩家晶石
+     * @param UserGameModel $user
+     * @param int $amt
+     */
+    static public function Consume_Spar($user, $amt)
+    {
+        if ($amt > 0 && isset($user) && isset($user->spar)) {
+            if ($user->spar - $amt >= 0) {
+                $user->spar -= $amt;
+                return true;
+            }
+        }
+        return false;
+    }
+
+    /**
+     * 扣除玩家钻石
+     * @param UserGameModel $user
+     * @param int $amt
+     * @return bool 成功与否
+     */
+    static public function Consume_Cash($user, $amt)
+    {
+        if ($amt > 0 && isset($user) && isset($user->cash)) {
+            if ($user->cash - $amt >= 0) {
+                $user->cash -= $amt;
+                return true;
+            }
+        }
+        return false;
+    }
+
+    /**
+     * 扣除玩家金币
+     * @param UserGameModel $user
+     * @param int $amt
+     */
+    static public function Consume_Gold($user, $amt)
+    {
+        if ($amt > 0 && isset($user) && isset($user->gold)) {
+            if ($user->gold - $amt >= 0) {
+                $user->gold -= $amt;
+                return true;
+            }
+        }
+        return false;
+    }
+
+    /**
+     * 扣除玩家友情点
+     * @param UserGameModel $user
+     * @param int $amt
+     */
+    static public function Consume_FriendShipPoint($user, $amt)
+    {
+        if ($amt > 0 && isset($user) && isset($user->friendPoint)) {
+            if ($user->friendPoint - $amt >= 0) {
+                $user->friendPoint -= $amt;
+                return true;
+            }
+        }
+        return false;
+    }
+
+    /**
+     * 扣除玩家碎片
+     * @param UserGameModel $user
+     * @param int $segmentId 碎片ID
+     * @param int $amt  数量
+     * @return boolean true 成功, false 失败
+     */
+    static public function Consume_HeroSegment($user, $segmentId, $amt)
+    {
+        if ($amt > 0 && isset($user)) {
+            if (CommUtil::isPropertyExists($user->store->segement, $segmentId)) {
+                if ($user->store->segement->$segmentId - $amt >= 0) {
+                    $user->store->segement->$segmentId -= $amt;
+                    return true;
+                }
+            }
+        }
+        return false;
+    }
+
+    /**
+     * 增加用户钻石
+     * @param UserGameModel $user
+     * @param type $amt
+     * @return type
+     */
+    static function Add_Cash($user, $amt)
+    {
+        // 防御代码,异常情况记录日志后直接返回
+        if (!$user || $amt <= 0) {
+            CLog::err("增加用户钻石出现错误: $user, $amt", "UserGameModel");
+            return ErrCode::err_innerfault;
+        }
+        $user->cash += $amt;
+        return ErrCode::ok;
+    }
+
+    /**
+     * 增加用户友情点
+     * @param UserGameModel $user
+     * @param type $amt
+     * @return type
+     */
+    static function Add_FriendPoint($user, $amt)
+    {
+        // 防御代码,异常情况记录日志后直接返回
+        if (!$user || $amt <= 0) {
+            CLog::err("增加用户友情点出现错误: $user, $amt", "UserGameModel");
+            return ErrCode::err_innerfault;
+        }
+        $user->friendPoint += $amt;
+        return ErrCode::ok;
+    }
+
+    /**
+     * 用户获得经验值
+     * @param Req $req Description
+     * @param int $amt
+     */
+    static function Add_Exp($req, $amt)
+    {
+        $user = $req->userInfo->game;
+        if (!$user || $amt <= 0) {// 防御代码,异常情况记录日志后直接返回
+            CLog::err("增加用户经验出错: $user,$amt", "UserGameModel");
+            return;
+        }
+        $cfgLVs = GameConfig::playerlevel();
+        $user->xp += $amt;
+        $curLevel = $user->level;
+        $nextLevel = $curLevel + 1;
+        while ($user->xp >= $cfgLVs->$nextLevel->xp_required) { // 超过升级所需经验
+            if ($user->level < glc()->Game_MaxPlayerLevel) {// 如果未到达最大等级
+                $user->level++;
+                $curLevel = $user->level;
+                $nextLevel = $curLevel + 1;
+
+                if (!CommUtil::isPropertyExists($cfgLVs, $curLevel)) {
+                    throw new \Exception("取英雄升级常量数据失败." . $curLevel . "级");
+                }
+                //      $user->level = $nextLevel;
+                $user->maxXp = $cfgLVs->$nextLevel->xp_required;
+//                StatProc::UserLevel($nowlv); // 等级统计
+                // todo:: 发发宝箱奖励, 如果有的话
+                if (false !== strpos($cfgLVs->$nextLevel->boxReward, ',')) {
+                    $boxes = split(',', $cfgLVs->$nextLevel->boxReward);
+                    foreach ($boxes as $boxId) {
+                        StoreProc::putBoxexInStore($user->store, $boxId, 1);
+                    }
+                }
+            } else {// 如果已到达最大等级则仅补齐缺失的经验即可
+                $user->xp = $user->maxXp; # 经验不能超过最大值
+                break;
+            }
+        }
+        if ($user->level != $curLevel) {                # 插入玩家升级的系统消息
+            SystemProc::UserLevelUp($req->zoneid, $user, $user->level);
+        }
+    }
+
+    /**
+     * 用户获得金币
+     * @param UserGameModel $user 玩家数据
+     * @param int $amt
+     */
+    static function Add_Gold($mem, $user, $amt)
+    {
+        if (!$user || $amt <= 0) {// 防御代码,异常情况记录日志后直接返回
+            CLog::err("增加用户金币出错: $user , $amt", "UserGameModel");
+            return ErrCode::err_innerfault;
+        }
+        $user->gold += $amt;
+        return ErrCode::ok;
+    }
+
+    /**
+     * 给玩家增加体力
+     * @param UserGameModel $user
+     * @param int $amt
+     * @return type
+     */
+    static function Add_tili($req, $amt)
+    {
+        $user = $req->userInfo->game;
+        if (!$user || $amt <= 0) {// 防御代码,异常情况记录日志后直接返回
+            CLog::err("增加用户体力出错. : ($user,$amt)", "UserGameModel");
+            return ErrCode::err_innerfault;
+        }
+        ActiveProc::ChangeTili($amt, $req);
+        // $user->tili += $amt;
+        return ErrCode::ok;
+    }
+
+// </editor-fold>
+    // <editor-fold defaultstate="collapsed" desc="私有方法">
+// </editor-fold>
+}

+ 71 - 0
Gameserver/Amfphp/Model/User/UserGateDifficulty.php

@@ -0,0 +1,71 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 玩家关卡数据 extends Object
+ * @version
+ *          1.0.0 Created at 2017-2-14. by --gwang
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-2-14, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class UserGateDifficulty extends Object_ext
+{
+
+    ///目前是按关卡的难度来分的结果
+    /**
+     * 普通关卡
+     */
+    public $normal;
+
+    /**
+     * 困难关卡
+     */
+    public $hard;
+
+    /**
+     * 精英关卡
+     */
+    public $elite;
+
+    /**
+     * 战斗总次数
+     */
+    public $TotalNum;
+
+    /**
+     * 当天战斗的次数
+     */
+    public $Times;
+
+    /**
+     * 已经消灭的bossid集合
+     * @var array
+     */
+    public $killedBoss;
+
+    /**
+     * @var userCarbonModel 关卡副本数据
+     */
+    public $carbons;
+
+    function __construct($arg = null)
+    {
+        if (null === $arg) {
+            $this->TotalNum = 0;
+            $this->Times = 0;
+            $this->normal = new UserGatesModel();
+            $this->normal->initialize();
+            $this->hard = new UserGatesModel;
+            $this->hard->initialize();
+            $this->elite = new UserGatesModel;
+            $this->elite->initialize();
+            $this->killedBoss = ArrayInit();
+            $this->carbons = new UserCarbonModel;
+            $this->carbons->initialize();
+        } else {
+            parent::__construct($arg);
+        }
+    }
+
+}

+ 44 - 0
Gameserver/Amfphp/Model/User/UserGatesModel.php

@@ -0,0 +1,44 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 玩家关卡数据模型
+ * 当前进度,体力,积分等等...
+ * @author gwang
+ */
+class UserGatesModel
+{
+
+    /**
+     * 最后一次挑战的关卡ID
+     * @var int
+     */
+    public $latest = 1;
+
+    /**
+     * 已挑战的最高关卡Id
+     * @var int
+     */
+    public $highest = 502000;
+
+    /**
+     * 关卡具体数据
+     * @var assoc_array/stdclass
+     */
+    public $gates;
+
+    //put your code here
+
+    /**
+     * 初始化
+     * @return UserGatesModel
+     */
+    function initialize()
+    {
+        // 用于给各个字段赋默认初始值
+        $this->gates = ObjectInit();
+        return $this;
+    }
+
+}

+ 90 - 0
Gameserver/Amfphp/Model/User/UserGuildModel.php

@@ -0,0 +1,90 @@
+<?php
+
+namespace loyalsoft;
+
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+/**
+ * Description of UserGuildModel
+ *
+ * @author cyzhao
+ */
+class UserGuildModel
+{
+
+    //put your code here
+    public static function Clear()
+    {
+        $userGuildinfo = new UserGuildModel();
+        $userGuildinfo->ts = now();
+        $userGuildinfo->joints = now(); //玩家公会的创建时间
+        $userGuildinfo->guildId = 0;
+        //s$userGuildinfo->guildName;
+        $userGuildinfo->cupScore = 0;
+        $userGuildinfo->appliedguildlist = array();
+        $userGuildinfo->appliedguildRecord = ObjectInit();
+        $userGuildinfo->contribute = 0; //贡献度
+//        $userGuildinfo->level;
+//        $userGuildinfo->name;
+        //$userGuildinfo->fightPower;
+        $userGuildinfo->requestCardTs = 0;
+        $userGuildinfo->donateCount = ObjectInit();
+        $userGuildinfo->allDonateCount = 0;
+        //$userGuildinfo->position = 0; //职位
+
+        return $userGuildinfo;
+    }
+
+    /**
+     * 检查玩家每日需要清理的状态
+     * @param UserGuildModel $userGuildInfo
+     */
+    static function checkFirstlog($userGuildInfo)
+    {
+        #每天清理
+        if (TimeUtil::tsDay() > TimeUtil::tsDay($userGuildInfo->ts)) {
+            $userGuildInfo->allDonateCount = 0;
+        }
+        #清理过期捐献信息
+        $donateCount = $userGuildInfo->donateCount;
+        foreach ($donateCount as $key => $value) {
+            if (now() - $value->ts >= glc()->Guild_DonateCoolingTime) {//捐献冷却时间到了
+                unset($donateCount->$key);
+            }
+        }
+    }
+
+    /**
+     * 初始化个人公会信息
+     * @param type $userGuildInfo
+     * @param type $uid
+     * @param type $game
+     * @param type $mem
+     * @param type $guildId
+     * @param type $zoneid
+     */
+    static function userGuildInfoInit($userGuildInfo, $uid, $game, $mem, $zoneid)
+    {
+        #self::Clear();
+        $userGuildInfo->ts = now();
+//        if ($guildId != 0) {
+//            $guildInfo = GuildProc::getMemGuildInfo($mem, $guildId, $zoneid);
+//            $userGuildInfo->guildName = $guildInfo->name;
+//        }
+        $key_cur = MemKey_GameRun::Game_PVPScoreByZone_zset($zoneid);   # 总积分榜
+        $score = $mem->zscore($key_cur, $uid);
+        $cupScore = $score == null ? 0 : $score;
+        $userGuildInfo->cupScore = $cupScore;
+        $userGuildInfo->name = $game->name;
+        $userGuildInfo->level = $game->level;
+        //$userGuildInfo->fightPower = GuildProc::initFightTeamInfo($mem, $uid, $zoneid); #$game->heroTeamConfig;
+        $userGuildInfo->uid = $uid;
+        $userGuildInfo->img = $game->img;
+        $userGuildInfo->imgBorderId = $game->imgBorderId;
+    }
+
+}

+ 129 - 0
Gameserver/Amfphp/Model/User/UserHeroModel.php

@@ -0,0 +1,129 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 玩家的英雄的实体数据
+ */
+class UserHeroModel
+{
+
+    /**
+     * 唯一的英雄ID
+     * @var  string
+     */
+    public $uid;
+
+    /**
+     * 英雄的模板ID
+     * @var string
+     */
+    public $modelId;
+
+    /**
+     * 英雄的当前等级
+     * @var  int
+     */
+    public $level;
+
+    /**
+     * 英雄的收集的当前等级满级的累计经验值
+     * @var  int
+     */
+    public $maxXp;
+
+    /**
+     * 英雄的当前总经验值
+     * @var  int
+     */
+    public $xp;
+
+    /**
+     * 当前等阶 默认是0.
+     * 0= 绿 1=蓝  2= 红   3=  紫  4= 橙  5
+     * @var  int
+     */
+    public $strengthLevel;
+
+    /**
+     * 当前星级 默认是0星
+     * @var  int
+     */
+    public $curStar;
+
+    /**
+     * 当前神血的 血脉等级 默认是0
+     * @var  int
+     */
+    public $curBloodId;
+
+    /**
+     * 当前卡牌的锁定状态
+     * true = 锁定
+     * @var  bool
+     */
+    public $isLocked;
+
+    /**
+     *
+     * @var object
+     */
+    public $skills;
+
+    /**
+     *
+     * @var object
+     */
+    public $equip;
+
+    /**
+     * 当前主线的好感度进度
+     * @var object
+     */
+    public $curMainFavor;
+
+    /**
+     * 所有的已经拥有的好感度进度
+     * @var array
+     */
+    public $favors;
+
+    /**
+     *
+     * 构造函数
+     */
+    public function __construct()
+    {
+        $this->level = 1;
+        $this->xp = 0;
+        $this->maxXp = 0;
+        $this->strengthLevel = 0;
+        $this->curBloodId = 0;
+        $this->curStar = 0;
+        $this->isLocked = false;
+        $this->curMainFavor = 'E';
+        $this->favors = ArrayInit();
+        $this->favors[] = 'E';
+
+//-----------初始化技能的默认数据
+        $this->skills = ObjectInit();
+        $temp = ObjectInit();
+        $temp->normalSkill = JsonUtil::decode('{"level":1}');
+        $temp->manuSkill1 = JsonUtil::decode('{"level":1}');
+        $temp->manuSkill2 = JsonUtil::decode('{"level":1}');
+        $temp->manuSkill3 = JsonUtil::decode('{"level":1}');
+        $temp->passiveSkill = JsonUtil::decode('{"level":1}');
+        $temp->captainSkill = JsonUtil::decode('{"level":1}');
+        $this->skills = $temp;
+//----初始化装备的默认数据
+        $this->equip = ObjectInit();
+
+        $tempEq = ObjectInit();
+        $tempEq->weapon = JsonUtil::decode('{"itemuid":0}');
+        $tempEq->armor = JsonUtil::decode('{"itemuid":0}');
+        $tempEq->ring = JsonUtil::decode('{"itemuid":0}');
+
+        $this->equip = $tempEq;
+    }
+
+}

+ 55 - 0
Gameserver/Amfphp/Model/User/UserInfoMo.php

@@ -0,0 +1,55 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 玩家信息 for Each User in Memcache
+ * Ps.
+ * @author gwang
+ */
+class UserInfoMo
+{
+
+    /**
+     * 分区Id
+     * @var string
+     */
+    public $zoneid;
+
+    /**
+     * 玩家唯一id
+     * @var string
+     */
+    public $uid;
+
+    /**
+     * 玩家游戏数据
+     * @var UserGameModel
+     */
+    public $game;
+
+    /**
+     * 玩家交互体数据, 检查是否有新邮件...
+     * @var UserInteractModel
+     */
+    public $interact;
+
+    /**
+     * 获得用户的平台字符串
+     * @return string
+     */
+    function getPlatStr()
+    {
+        switch (PLAT) {
+            case 'web':                                                         # web版
+                return 'qzone';                                                 # only QQ空间
+            case 'ios':                                                         # ios版
+                return 'ios';                                                   # only ios
+            case 'and':                                                         # 安卓版/默认
+            default :
+                return substr($this->uid, 0, strrpos($this->uid, '-'));        # 提取平台字符串
+            //substr() 函数返回字符串的一部分 strrpos() 函数查找字符串在另一字符串中最后一次出现的位置。
+        }
+    }
+
+}

+ 178 - 0
Gameserver/Amfphp/Model/User/UserInteractModel.php

@@ -0,0 +1,178 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 用户交互信息数据模型
+ * 注:mem中是独立于userInfo的存在, 以减少交互操作的时候出现写入冲突产生覆盖的情况。
+ * attention: 读写数据的时候,利用redis的watch机制实现事务写入,加上自动重试机制. (Ps.这是目标,gwang.20170426153414)
+ *
+ * @version
+ *          1.0.0 Created at 2017-3-25. by --gwang
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-3-25, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class UserInteractModel extends Object_ext
+{
+
+    public $uid;
+    public $zoneid;
+    // ------------字段声明-------------
+
+    /**
+     * 邮件列表
+     * @var object
+     */
+    public $mailQueue;
+
+    /**
+     * 邮件序列id
+     * @var int
+     */
+    public $mailMaxId = 0;
+
+    /**
+     * 系统邮件记录[存在于系统公共缓冲区的邮件仅能接收一次]
+     * @var array
+     */
+    public $sysMailRecord;
+
+// ------------ 初始化 ------------------
+
+    /**
+     * 创建账号的时候执行初始化.
+     */
+    public function initialize()
+    {
+        $this->mailQueue = ObjectInit();
+        $this->mailMaxId = 10000;
+        $this->sysMailRecord = ArrayInit();
+    }
+
+// ----------- 方法 ---------------------
+    // <editor-fold defaultstate="collapsed" desc="     公开方法    ">
+
+    /**
+     * 新增系统邮件
+     * @param int  $sysId    邮件的id
+     * @param string $title  邮件标题
+     * @param type $content  邮件正文
+     * @param type $itemid   道具id (附加于tag字段)
+     * @param type $startts  生效时间
+     * @param type $endts    过期时间
+     * @param type $interact  目标交互体
+     */
+    static function insertSysMail($sysId, $title, $content, $itemid, $startts, $endts, &$interact)
+    {
+        self::insertMail("0", "系统邮件", "", "", 1, $title, $content, $itemid, $startts, $endts, $interact);
+        if ($sysId != 0) {
+            $sysMailRecord = $interact->sysMailRecord;
+            $sysMailRecord[] = $sysId;
+            $interact->sysMailRecord = $sysMailRecord;
+        }
+    }
+
+    /**
+     * 新增邮件
+     * @param string $fromoid 发送人的oid
+     * @param type $name      发送人的呢称
+     * @param type $pf        pf
+     * @param type $img       图像
+     * @param type $type      邮件类型
+     * @param string $title   邮件标题
+     * @param string $content 邮件正文
+     * @param type $tag   额外标签可以传递数据
+     * @param ts $startts 生效时间
+     * @param ts $endts   过期时间
+     * @param UserInteractModel $interact 目标交互体
+     * @return void
+     */
+    static function insertMail($fromoid, $name, $pf, $img, $type, $title, $content, $tag, $startts, $endts, &$interact)
+    {
+        if (CommUtil::tsCurrent() > $endts) {
+            return;
+        }
+        $interact->mailMaxId++;
+        $mailMaxId = $interact->mailMaxId;
+        $mail = new EmailModel;
+        $mail->fromoid = $fromoid;
+        $mail->name = $name;
+        $mail->pf = $pf;
+        $mail->img = $img;
+        $mail->type = $type;
+        $mail->title = $title;
+        $mail->content = $content;
+        $mail->tag = $tag;
+        $mail->startts = $startts;
+        $mail->endts = $endts;
+        $mail->ts = CommUtil::tsCurrent();
+        $interact->mailQueue->$mailMaxId = $mail;
+        # 记录日志
+        self::_insertMailRecord($interact->oid, $interact->zoneid, $mail, $mailMaxId);
+    }
+
+    /**
+     * 插入发送邮件的日志
+     * @param string uid
+     * @param int $zoneid
+     * @param EmailModel $mail
+     * @param int $mailId
+     */
+    static function _insertMailRecord($uid, $zoneid, $mail, $mailId)
+    {
+        $sql = <<<ins
+INSERT INTO `tab_mailrecord` (oid,`zoneid`,mailId, fromoid,`name`, pf,img,type,title,content,tag,startts,endts,insertts)
+    VALUES ('%s',%d,%d,'%s','%s','%s','%s',%d,'%s','%s','%s',%d,%d,now());
+ins;
+        $insertstr = sprintf($sql, $uid, $zoneid, $mailId, $mail->fromoid, $mail->name, #
+                $mail->pf, $mail->img, $mail->type, $mail->title, $mail->content, #
+                $mail->tag, $mail->startts, $mail->endts);
+        daoInst()->query($insertstr);
+    }
+
+    /**
+     * 获取邮件序列[自动过滤尚未到(生效)期的邮件,自动删除已过期的邮件]
+     * @param UserInteractModel $interact Description
+     */
+    static function getMailQueue($interact)
+    {
+        $mailList = ObjectInit();
+        $mailQueue = $interact->mailQueue;
+        foreach ($mailQueue as $mailId => $mail) {
+            $ts = CommUtil::tsCurrent();
+            if ($ts >= $mail->startts) {
+                if ($ts > $mail->endts) {
+                    self::deleteMail($mailId, $interact);
+                } else {
+                    $mailList->$mailId = $mail;
+                }
+            }
+        }
+        return $mailList;
+    }
+
+    /**
+     * 删除邮件[附件接收完毕之后]
+     * @param type $mailId
+     * @param UserInteractModel $interact Description
+     */
+    static function deleteMail($mailId, &$interact)
+    {
+        self::_drawMailRecord($mailId, $interact); # 领取记录
+        StlUtil::dictRemove($interact->mailQueue, $mailId);
+    }
+
+    /**
+     * 更新领取记录
+     * @param type $mailId
+     * @param UserInteractModel $interact
+     */
+    static function _drawMailRecord($mailId, $interact)
+    {
+        $sql = "update tab_mailrecord set drawedts=now() where mailId=%d and zoneid=%s and uid=%s;";
+        $updatestr = sprintf($sql, $mailId, $interact->zoneid, $interact->uid);
+        daoInst()->query($updatestr);
+    }
+
+// </editor-fold>
+}

+ 117 - 0
Gameserver/Amfphp/Model/User/UserLotteryModel.php

@@ -0,0 +1,117 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 抽奖卡槽
+ */
+class LotterySlotModel extends Object_ext
+{
+    /*
+     * 有4个卡槽, 按照等级解锁, 可花钻石提前解锁,
+     * 每个卡槽上可以托管一张抽奖后获得的英雄. 并开始冷却计时
+     * 冷却计时完成后, 可以收取对应的卡牌
+     * 涉及到的数据结构:
+     *       卡槽id,
+     *       解锁状态,
+     *       英雄modle_id,
+     *       英雄星级,
+     *       冷却时间,
+     */
+
+    /**
+     * @var int 卡槽id
+     */
+    public $id;
+
+    /**
+     * @var bool 解锁状态
+     */
+    public $locked = true;
+
+    /**
+     * @var int 英雄(原型)编号
+     */
+    public $herotype = 0;
+
+    /**
+     * @var int 英雄(实例)星级
+     */
+    public $herostar = 0;
+
+    /**
+     * @var ts 开放时间戳
+     */
+    public $opents = 0;
+
+    public function Clear()
+    {
+        $this->herostar = 0;
+        $this->herotype = 0;
+        $this->opents = 0;
+    }
+
+}
+
+/**
+ * 设计一些卡槽
+ * @version
+ *          1.0.0 Created at 2017-7-20. by --gwang
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-7-20, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class UserLotteryModel extends Object_ext
+{
+
+    /**
+     * @var {} 当天抽奖记录(类型=>次数)
+     */
+    public $todayLotterys;
+
+    /**
+     * @var {} 总的抽奖记录(类型=>次数)
+     */
+    public $totalLotterys;
+
+    /**
+     * @var {} 保底奖励计数器(类型=>次数)
+     */
+    public $baodiLotterys;
+
+    /**
+     * @var {} 保底奖励领取记录(类型=>次数)
+     */
+    public $baodiDrawed;
+
+    public function __construct($arg = null)
+    {
+        if (func_num_args() == 1 && !is_null($arg)) {
+            parent::__construct($arg);
+        }
+        if (!isset($this->slot0)) {
+            $this->slot0 = new LotterySlotModel(array('id' => 0, 'locked' => false));
+        }
+        if (!isset($this->slot1)) {
+            $this->slot1 = new LotterySlotModel(array('id' => 1));
+        }
+        if (!isset($this->slot2)) {
+            $this->slot2 = new LotterySlotModel(array('id' => 2));
+        }
+        if (!isset($this->slot3)) {
+            $this->slot3 = new LotterySlotModel(array('id' => 3));
+        }
+        if (!isset($this->todayLotterys)) {
+            $this->todayLotterys = ObjectInit();
+        }
+        if (!isset($this->totalLotterys)) {
+            $this->totalLotterys = ObjectInit();
+        }
+        if (!isset($this->baodiLotterys)) {
+            $this->baodiLotterys = ObjectInit();
+        }
+        if (!isset($this->baodiDrawed)) {
+            $this->baodiDrawed = ObjectInit();
+        }
+    }
+
+}

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.