Переглянути джерело

代码整理, 路径整理.(参考高健的文件组织结构)

gwang 5 роки тому
батько
коміт
34106c4614
100 змінених файлів з 135 додано та 143 видалено
  1. 14 14
      Gameserver/Amfphp/AutoLoad.php
  2. 0 92
      Gameserver/Amfphp/Configs/GameConstants.php
  3. 1 0
      Gameserver/Amfphp/base/CmdCode.php
  4. 2 1
      Gameserver/Amfphp/base/ErrCode.php
  5. 0 0
      Gameserver/Amfphp/base/Include.php
  6. 0 0
      Gameserver/Amfphp/base/MemKey_GameRun.php
  7. 0 0
      Gameserver/Amfphp/base/MemKey_Guild.php
  8. 0 0
      Gameserver/Amfphp/base/MemKey_User.php
  9. 0 1
      Gameserver/Amfphp/base/Object_ext.php
  10. 3 5
      Gameserver/Amfphp/base/OpeCode.php
  11. 0 0
      Gameserver/Amfphp/base/Req.php
  12. 0 0
      Gameserver/Amfphp/base/Resp.php
  13. 0 0
      Gameserver/Amfphp/configs/GameConfig.php
  14. 92 0
      Gameserver/Amfphp/configs/GameConstants.php
  15. 3 3
      Gameserver/Amfphp/configs/config_and.php
  16. 10 13
      Gameserver/Amfphp/configs/config_ios.php
  17. 8 13
      Gameserver/Amfphp/configs/config_web.php
  18. 0 0
      Gameserver/Amfphp/configs/defines/const_and.php
  19. 0 0
      Gameserver/Amfphp/configs/defines/const_ios.php
  20. 0 0
      Gameserver/Amfphp/configs/defines/const_web.php
  21. 2 1
      Gameserver/Amfphp/main.php
  22. 0 0
      Gameserver/Amfphp/model/Const/GM_uids.php
  23. 0 0
      Gameserver/Amfphp/model/Const/GoodsItemModel.php
  24. 0 0
      Gameserver/Amfphp/model/Const/globalsettings.php
  25. 0 0
      Gameserver/Amfphp/model/Const/primordial_data.php
  26. 0 0
      Gameserver/Amfphp/model/Const/sm_activity.php
  27. 0 0
      Gameserver/Amfphp/model/Const/sm_activity_onlinegift.php
  28. 0 0
      Gameserver/Amfphp/model/Const/sm_activity_reggift.php
  29. 0 0
      Gameserver/Amfphp/model/Const/sm_announcement.php
  30. 0 0
      Gameserver/Amfphp/model/Const/sm_audio.php
  31. 0 0
      Gameserver/Amfphp/model/Const/sm_box.php
  32. 0 0
      Gameserver/Amfphp/model/Const/sm_boxJingYanCards.php
  33. 0 0
      Gameserver/Amfphp/model/Const/sm_boxpool.php
  34. 0 0
      Gameserver/Amfphp/model/Const/sm_buff.php
  35. 0 0
      Gameserver/Amfphp/model/Const/sm_buffeffect.php
  36. 0 0
      Gameserver/Amfphp/model/Const/sm_bullet.php
  37. 0 0
      Gameserver/Amfphp/model/Const/sm_choujiang.php
  38. 0 0
      Gameserver/Amfphp/model/Const/sm_choujiang_baodi.php
  39. 0 0
      Gameserver/Amfphp/model/Const/sm_choujiang_settings.php
  40. 0 0
      Gameserver/Amfphp/model/Const/sm_clientVersionHistory.php
  41. 0 0
      Gameserver/Amfphp/model/Const/sm_day7.php
  42. 0 0
      Gameserver/Amfphp/model/Const/sm_dragonbone_paras.php
  43. 0 0
      Gameserver/Amfphp/model/Const/sm_gate.php
  44. 0 0
      Gameserver/Amfphp/model/Const/sm_gate_carbon.php
  45. 0 0
      Gameserver/Amfphp/model/Const/sm_gate_carbon_content.php
  46. 0 0
      Gameserver/Amfphp/model/Const/sm_gate_city.php
  47. 0 0
      Gameserver/Amfphp/model/Const/sm_gate_combat.php
  48. 0 0
      Gameserver/Amfphp/model/Const/sm_gate_forever.php
  49. 0 0
      Gameserver/Amfphp/model/Const/sm_gate_starreward.php
  50. 0 0
      Gameserver/Amfphp/model/Const/sm_gate_story.php
  51. 0 0
      Gameserver/Amfphp/model/Const/sm_gate_world.php
  52. 0 0
      Gameserver/Amfphp/model/Const/sm_gatelevel.php
  53. 0 0
      Gameserver/Amfphp/model/Const/sm_guide_step.php
  54. 0 0
      Gameserver/Amfphp/model/Const/sm_guide_trigger.php
  55. 0 0
      Gameserver/Amfphp/model/Const/sm_guilddonatereward.php
  56. 0 0
      Gameserver/Amfphp/model/Const/sm_guildlevel.php
  57. 0 0
      Gameserver/Amfphp/model/Const/sm_guildlibao.php
  58. 0 0
      Gameserver/Amfphp/model/Const/sm_hero.php
  59. 0 0
      Gameserver/Amfphp/model/Const/sm_hero_levelexp.php
  60. 0 0
      Gameserver/Amfphp/model/Const/sm_hero_levelexp_costitem.php
  61. 0 0
      Gameserver/Amfphp/model/Const/sm_hero_skin.php
  62. 0 0
      Gameserver/Amfphp/model/Const/sm_heroextra_dengjie.php
  63. 0 0
      Gameserver/Amfphp/model/Const/sm_heroextra_favor.php
  64. 0 0
      Gameserver/Amfphp/model/Const/sm_heroextra_godblood.php
  65. 0 0
      Gameserver/Amfphp/model/Const/sm_heroextra_level.php
  66. 0 0
      Gameserver/Amfphp/model/Const/sm_heroextra_skill_lv_limit.php
  67. 0 0
      Gameserver/Amfphp/model/Const/sm_heroextra_star.php
  68. 0 0
      Gameserver/Amfphp/model/Const/sm_item.php
  69. 0 0
      Gameserver/Amfphp/model/Const/sm_item_base.php
  70. 0 0
      Gameserver/Amfphp/model/Const/sm_item_box.php
  71. 0 0
      Gameserver/Amfphp/model/Const/sm_item_buffcard.php
  72. 0 0
      Gameserver/Amfphp/model/Const/sm_item_package.php
  73. 0 0
      Gameserver/Amfphp/model/Const/sm_item_pills.php
  74. 0 0
      Gameserver/Amfphp/model/Const/sm_item_segment.php
  75. 0 0
      Gameserver/Amfphp/model/Const/sm_item_stones.php
  76. 0 0
      Gameserver/Amfphp/model/Const/sm_item_weapon.php
  77. 0 0
      Gameserver/Amfphp/model/Const/sm_itemlevel.php
  78. 0 0
      Gameserver/Amfphp/model/Const/sm_localtexts.php
  79. 0 0
      Gameserver/Amfphp/model/Const/sm_playerlevel.php
  80. 0 0
      Gameserver/Amfphp/model/Const/sm_plot.php
  81. 0 0
      Gameserver/Amfphp/model/Const/sm_pvp_activityreward.php
  82. 0 0
      Gameserver/Amfphp/model/Const/sm_pvp_leaguereward.php
  83. 0 0
      Gameserver/Amfphp/model/Const/sm_pvp_leaguescore.php
  84. 0 0
      Gameserver/Amfphp/model/Const/sm_pvp_rankreward.php
  85. 0 0
      Gameserver/Amfphp/model/Const/sm_secretshop_goodsType.php
  86. 0 0
      Gameserver/Amfphp/model/Const/sm_secretshop_refresh.php
  87. 0 0
      Gameserver/Amfphp/model/Const/sm_secretshop_typeId.php
  88. 0 0
      Gameserver/Amfphp/model/Const/sm_segment.php
  89. 0 0
      Gameserver/Amfphp/model/Const/sm_segment_byPinzhi.php
  90. 0 0
      Gameserver/Amfphp/model/Const/sm_segment_ronghe.php
  91. 0 0
      Gameserver/Amfphp/model/Const/sm_service_schedule.php
  92. 0 0
      Gameserver/Amfphp/model/Const/sm_shop.php
  93. 0 0
      Gameserver/Amfphp/model/Const/sm_skill.php
  94. 0 0
      Gameserver/Amfphp/model/Const/sm_skill_proty.php
  95. 0 0
      Gameserver/Amfphp/model/Const/sm_skill_shengji.php
  96. 0 0
      Gameserver/Amfphp/model/Const/sm_skill_upgrade_cost.php
  97. 0 0
      Gameserver/Amfphp/model/Const/sm_smelting.php
  98. 0 0
      Gameserver/Amfphp/model/Const/sm_subSkill.php
  99. 0 0
      Gameserver/Amfphp/model/Const/sm_sysmail.php
  100. 0 0
      Gameserver/Amfphp/model/Const/sm_task.php

+ 14 - 14
Gameserver/Amfphp/AutoLoad.php

@@ -18,9 +18,9 @@ class AutoLoad {
         static $a = true;                                                       # 利用静态变量, 避免重复执行
         if ($a) {
             static $incs = array(#                                              # 指定框架查找路径
-                ROOTDIR . '/Util/', #                                           # 常用辅助代码
-                ROOTDIR . '/Process/', #                                        # 逻辑处理代码
-                ROOTDIR . '/Model/User/', #                                     # 数据结构定义
+                ROOTDIR . '/util/', #                                           # 常用辅助代码
+                ROOTDIR . '/process/', #                                        # 逻辑处理代码
+                ROOTDIR . '/model/User/', #                                     # 数据结构定义
             );
             $incPath = get_include_path() . PATH_SEPARATOR . join(PATH_SEPARATOR, $incs);
             set_include_path($incPath);
@@ -39,17 +39,17 @@ class AutoLoad {
 
 # 预加载一部分常用的代码.
 require_once ROOTDIR . '/../globals.php';                                       # 导入全局配置
-require_once ROOTDIR . '/Configs/GameConstants.php';                            # 导入游戏基础常量定义
-require_once ROOTDIR . '/Configs/GameConfig.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';
+require_once ROOTDIR . '/util/UtilInclude.php';                                 # 一部分Utils直接预加载
+require_once ROOTDIR . '/base/Include.php';                                     # 导入框架基础对象
+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();                                                              // 直接执行初始化

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

@@ -1,92 +0,0 @@
-<?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');                  # 密钥
-}

+ 1 - 0
Gameserver/Amfphp/Process/vo/CmdCode.php → Gameserver/Amfphp/base/CmdCode.php

@@ -852,6 +852,7 @@ class CmdCode {
      * 用法: 先在本文件中用ctrl + H 全部替换掉 'c onst ' -> 's tatic $'
      *       然后再调用本方法,即可在同目录下生成ErrCode.txt, 里面包含了所需信息.
      * @throws \Exception
+     * @author gwang
      */
     static function L() {
         $class = new \ReflectionClass(__CLASS__);                                # 建立这个类的反射对象

+ 2 - 1
Gameserver/Amfphp/Process/vo/ErrCode.php → Gameserver/Amfphp/base/ErrCode.php

@@ -1283,9 +1283,10 @@ class ErrCode {
      * 用法: 先在本文件中用ctrl + H 全部替换掉 'c onst ' -> 's tatic $'
      *       然后再调用本方法,即可在同目录下生成ErrCode.txt, 里面包含了所需信息.
      * @throws \Exception
+     * @author gwang
      */
     static function L() {
-        $class = new \ReflectionClass(__CLASS__);                                # 建立这个类的反射对象
+        $class = new \ReflectionClass(__CLASS__);                               # 建立这个类的反射对象
         $properties = $class->getProperties(ReflectionProperty::IS_STATIC);     # 拉取所有静态属性
         $fileName = __DIR__ . "/ErrCode.txt";                                   # 输出文件名
         $fd = fopen($fileName, "w");

+ 0 - 0
Gameserver/Amfphp/Process/vo/Include.php → Gameserver/Amfphp/base/Include.php


+ 0 - 0
Gameserver/Amfphp/Process/vo/MemKey_GameRun.php → Gameserver/Amfphp/base/MemKey_GameRun.php


+ 0 - 0
Gameserver/Amfphp/Process/vo/MemKey_Guild.php → Gameserver/Amfphp/base/MemKey_Guild.php


+ 0 - 0
Gameserver/Amfphp/Process/vo/MemKey_User.php → Gameserver/Amfphp/base/MemKey_User.php


+ 0 - 1
Gameserver/Amfphp/Process/vo/Object_ext.php → Gameserver/Amfphp/base/Object_ext.php

@@ -32,7 +32,6 @@ class Object_ext {
     }
 
     public function toString() {
-//        var_dump(JsonUtil::encode($this));
         $str = JsonUtil::encode($this);
         return $str;
     }

+ 3 - 5
Gameserver/Amfphp/Process/vo/OpeCode.php → Gameserver/Amfphp/base/OpeCode.php

@@ -6,8 +6,7 @@ namespace loyalsoft;
  * 功能码常量定义, 要求: 常量名称和对应的功能处理模块的名称相一致(无需Proc后缀).
  * @author gwang
  */
-class OpeCode
-{
+class OpeCode {
 
     /**
      * 支付功能
@@ -63,16 +62,15 @@ class OpeCode
 //
 //
     // <editor-fold defaultstate="collapsed" desc="反射方法">
-
     //
 
     /**
      * 依据opecode=> Proc模块名称
      * @param type $ope
      * @return string
+     * @author gwang
      */
-    public static function getProc($ope)
-    {
+    public static function getProc($ope) {
         $r = new \ReflectionClass(__CLASS__);                                   # 新建反射对象
         $procs = array_flip($r->getConstants());                                # 提取操作码到数组中
         if (!isset($procs[$ope])) {                                             # 找不到

+ 0 - 0
Gameserver/Amfphp/Process/vo/Req.php → Gameserver/Amfphp/base/Req.php


+ 0 - 0
Gameserver/Amfphp/Process/vo/Resp.php → Gameserver/Amfphp/base/Resp.php


+ 0 - 0
Gameserver/Amfphp/Configs/GameConfig.php → Gameserver/Amfphp/configs/GameConfig.php


+ 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');                                          # 密钥
+}

+ 3 - 3
Gameserver/Amfphp/Configs/config_and.php → Gameserver/Amfphp/configs/config_and.php

@@ -40,9 +40,9 @@ class config_and extends config {
      * 外网nosql
      */
     protected function _InitOuterNetNosql() {
-        $this->nosql->host = "127.0.0.1";               # host/ip
-        $this->nosql->port = 6379;                          # 端口
-        $this->nosql->pwd = 'wanggang1985';        # 密钥
+        $this->nosql->host = "127.0.0.1";                                       # host/ip
+        $this->nosql->port = 6379;                                              # 端口
+        $this->nosql->pwd = 'wanggang1985';                                     # 密钥
     }
 
 }

+ 10 - 13
Gameserver/Amfphp/Configs/config_ios.php → Gameserver/Amfphp/configs/config_ios.php

@@ -8,23 +8,20 @@ namespace loyalsoft;
  * @author gwang email:mail@wanggangzero.cn
  * @copyright © 2015-2-3, SJZ LoyalSoft Corporation & gwang. All rights reserved.
  */
-class config_ios extends config
-{
+class config_ios extends config {
 
-    function _InitTester()
-    {
+    function _InitTester() {
         $this->testerArr = array();
     }
 
-    function _InitBaneder()
-    {
+    function _InitBaneder() {
         $this->banedArr = array();
     }
+
     /**
      * 外网paydb
      */
-    protected function _InitOuterNetPaydb()
-    {
+    protected function _InitOuterNetPaydb() {
         $this->paydb->host = '127.0.0.1';
         $this->paydb->port = '3306';
         $this->paydb->name = 'ylsj2019_pay';
@@ -35,12 +32,12 @@ class config_ios extends config
     /**
      * 外网nosql
      */
-    protected function _InitOuterNetNosql()
-    {
-        $this->nosql->host = "127.0.0.1";               # host/ip
-        $this->nosql->port = 6379;                          # 端口
-        $this->nosql->pwd = 'wanggang1985';        # 密钥
+    protected function _InitOuterNetNosql() {
+        $this->nosql->host = "127.0.0.1";                                       # host/ip
+        $this->nosql->port = 6379;                                              # 端口
+        $this->nosql->pwd = 'wanggang1985';                                     # 密钥
     }
+
 }
 
 return new config_ios();

+ 8 - 13
Gameserver/Amfphp/Configs/config_web.php → Gameserver/Amfphp/configs/config_web.php

@@ -8,26 +8,22 @@ namespace loyalsoft;
  * @author gwang email:mail@wanggangzero.cn
  * @copyright © 2015-2-3, SJZ LoyalSoft Corporation & gwang. All rights reserved.
  */
-class config_web extends config
-{
+class config_web extends config {
 
-    function _InitTester()
-    {
+    function _InitTester() {
         $this->testerArr = array(
             'FA29D1152CF72523563BCB5A0C28744B'
         );
     }
 
-    function _InitBaneder()
-    {
+    function _InitBaneder() {
         $this->banedArr = array();
     }
 
     /**
      * 外网paydb
      */
-    protected function _InitOuterNetPaydb()
-    {
+    protected function _InitOuterNetPaydb() {
 //        $this->paydb->host = '10.66.108.49';
 //        $this->paydb->port = '3306';
 //        $this->paydb->name = 'dhdpay';
@@ -35,11 +31,10 @@ class config_web extends config
 //        $this->paydb->password = 'wanggang1985';
     }
 
-    protected function _InitOuterNetNosql()
-    {
-//        $this->nosql->host = '192.168.10.16';                # host/ip
-//        $this->nosql->port = 6002;                           # 端口
-//        $this->nosql->pwd = 'wanggang1985';                  # 密钥
+    protected function _InitOuterNetNosql() {
+//        $this->nosql->host = '192.168.10.16';                                   # host/ip
+//        $this->nosql->port = 6002;                                              # 端口
+//        $this->nosql->pwd = 'wanggang1985';                                     # 密钥
     }
 
 }

+ 0 - 0
Gameserver/Amfphp/Configs/defines/const_and.php → Gameserver/Amfphp/configs/defines/const_and.php


+ 0 - 0
Gameserver/Amfphp/Configs/defines/const_ios.php → Gameserver/Amfphp/configs/defines/const_ios.php


+ 0 - 0
Gameserver/Amfphp/Configs/defines/const_web.php → Gameserver/Amfphp/configs/defines/const_web.php


+ 2 - 1
Gameserver/Amfphp/main.php

@@ -31,6 +31,7 @@ DebugHelper::checkModules();
 /**
  * ★★★初始化支付数据工具★★★
  * @return \CDbUtil
+ * @deprecated since version 0
  */
 function CPayInit() {
     $cpay = new CDbUtil();
@@ -47,7 +48,7 @@ function CPayInit() {
 
 /**
  * get dao instance,
- * @version 2019年12月23日 经过梦幻星工场2一年左右的使用, 未发现特别明显的bug. 决定侧重使用. -- 王刚
+ * @version 2019年12月23日 经过梦幻星工场2一年的使用, 未发现特别明显的bug. 决定侧重使用. -- 王刚
  * @staticvar type $a
  * @return \dao  注意: dao并非什么好东西,只是一些改进尝试, 稳定性, 性能, 效率尚未得到证明.-gwang 2017.06.23
  */

+ 0 - 0
Gameserver/Amfphp/Model/Const/GM_uids.php → Gameserver/Amfphp/model/Const/GM_uids.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/GoodsItemModel.php → Gameserver/Amfphp/model/Const/GoodsItemModel.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/globalsettings.php → Gameserver/Amfphp/model/Const/globalsettings.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/primordial_data.php → Gameserver/Amfphp/model/Const/primordial_data.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_activity.php → Gameserver/Amfphp/model/Const/sm_activity.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_activity_onlinegift.php → Gameserver/Amfphp/model/Const/sm_activity_onlinegift.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_activity_reggift.php → Gameserver/Amfphp/model/Const/sm_activity_reggift.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_announcement.php → Gameserver/Amfphp/model/Const/sm_announcement.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_audio.php → Gameserver/Amfphp/model/Const/sm_audio.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_box.php → Gameserver/Amfphp/model/Const/sm_box.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_boxJingYanCards.php → Gameserver/Amfphp/model/Const/sm_boxJingYanCards.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_boxpool.php → Gameserver/Amfphp/model/Const/sm_boxpool.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_buff.php → Gameserver/Amfphp/model/Const/sm_buff.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_buffeffect.php → Gameserver/Amfphp/model/Const/sm_buffeffect.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_bullet.php → Gameserver/Amfphp/model/Const/sm_bullet.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_choujiang.php → Gameserver/Amfphp/model/Const/sm_choujiang.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_choujiang_baodi.php → Gameserver/Amfphp/model/Const/sm_choujiang_baodi.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_choujiang_settings.php → Gameserver/Amfphp/model/Const/sm_choujiang_settings.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_clientVersionHistory.php → Gameserver/Amfphp/model/Const/sm_clientVersionHistory.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_day7.php → Gameserver/Amfphp/model/Const/sm_day7.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_dragonbone_paras.php → Gameserver/Amfphp/model/Const/sm_dragonbone_paras.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_gate.php → Gameserver/Amfphp/model/Const/sm_gate.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_gate_carbon.php → Gameserver/Amfphp/model/Const/sm_gate_carbon.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_gate_carbon_content.php → Gameserver/Amfphp/model/Const/sm_gate_carbon_content.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_gate_city.php → Gameserver/Amfphp/model/Const/sm_gate_city.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_gate_combat.php → Gameserver/Amfphp/model/Const/sm_gate_combat.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_gate_forever.php → Gameserver/Amfphp/model/Const/sm_gate_forever.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_gate_starreward.php → Gameserver/Amfphp/model/Const/sm_gate_starreward.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_gate_story.php → Gameserver/Amfphp/model/Const/sm_gate_story.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_gate_world.php → Gameserver/Amfphp/model/Const/sm_gate_world.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_gatelevel.php → Gameserver/Amfphp/model/Const/sm_gatelevel.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_guide_step.php → Gameserver/Amfphp/model/Const/sm_guide_step.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_guide_trigger.php → Gameserver/Amfphp/model/Const/sm_guide_trigger.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_guilddonatereward.php → Gameserver/Amfphp/model/Const/sm_guilddonatereward.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_guildlevel.php → Gameserver/Amfphp/model/Const/sm_guildlevel.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_guildlibao.php → Gameserver/Amfphp/model/Const/sm_guildlibao.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_hero.php → Gameserver/Amfphp/model/Const/sm_hero.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_hero_levelexp.php → Gameserver/Amfphp/model/Const/sm_hero_levelexp.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_hero_levelexp_costitem.php → Gameserver/Amfphp/model/Const/sm_hero_levelexp_costitem.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_hero_skin.php → Gameserver/Amfphp/model/Const/sm_hero_skin.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_heroextra_dengjie.php → Gameserver/Amfphp/model/Const/sm_heroextra_dengjie.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_heroextra_favor.php → Gameserver/Amfphp/model/Const/sm_heroextra_favor.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_heroextra_godblood.php → Gameserver/Amfphp/model/Const/sm_heroextra_godblood.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_heroextra_level.php → Gameserver/Amfphp/model/Const/sm_heroextra_level.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_heroextra_skill_lv_limit.php → Gameserver/Amfphp/model/Const/sm_heroextra_skill_lv_limit.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_heroextra_star.php → Gameserver/Amfphp/model/Const/sm_heroextra_star.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_item.php → Gameserver/Amfphp/model/Const/sm_item.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_item_base.php → Gameserver/Amfphp/model/Const/sm_item_base.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_item_box.php → Gameserver/Amfphp/model/Const/sm_item_box.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_item_buffcard.php → Gameserver/Amfphp/model/Const/sm_item_buffcard.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_item_package.php → Gameserver/Amfphp/model/Const/sm_item_package.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_item_pills.php → Gameserver/Amfphp/model/Const/sm_item_pills.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_item_segment.php → Gameserver/Amfphp/model/Const/sm_item_segment.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_item_stones.php → Gameserver/Amfphp/model/Const/sm_item_stones.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_item_weapon.php → Gameserver/Amfphp/model/Const/sm_item_weapon.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_itemlevel.php → Gameserver/Amfphp/model/Const/sm_itemlevel.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_localtexts.php → Gameserver/Amfphp/model/Const/sm_localtexts.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_playerlevel.php → Gameserver/Amfphp/model/Const/sm_playerlevel.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_plot.php → Gameserver/Amfphp/model/Const/sm_plot.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_pvp_activityreward.php → Gameserver/Amfphp/model/Const/sm_pvp_activityreward.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_pvp_leaguereward.php → Gameserver/Amfphp/model/Const/sm_pvp_leaguereward.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_pvp_leaguescore.php → Gameserver/Amfphp/model/Const/sm_pvp_leaguescore.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_pvp_rankreward.php → Gameserver/Amfphp/model/Const/sm_pvp_rankreward.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_secretshop_goodsType.php → Gameserver/Amfphp/model/Const/sm_secretshop_goodsType.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_secretshop_refresh.php → Gameserver/Amfphp/model/Const/sm_secretshop_refresh.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_secretshop_typeId.php → Gameserver/Amfphp/model/Const/sm_secretshop_typeId.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_segment.php → Gameserver/Amfphp/model/Const/sm_segment.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_segment_byPinzhi.php → Gameserver/Amfphp/model/Const/sm_segment_byPinzhi.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_segment_ronghe.php → Gameserver/Amfphp/model/Const/sm_segment_ronghe.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_service_schedule.php → Gameserver/Amfphp/model/Const/sm_service_schedule.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_shop.php → Gameserver/Amfphp/model/Const/sm_shop.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_skill.php → Gameserver/Amfphp/model/Const/sm_skill.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_skill_proty.php → Gameserver/Amfphp/model/Const/sm_skill_proty.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_skill_shengji.php → Gameserver/Amfphp/model/Const/sm_skill_shengji.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_skill_upgrade_cost.php → Gameserver/Amfphp/model/Const/sm_skill_upgrade_cost.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_smelting.php → Gameserver/Amfphp/model/Const/sm_smelting.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_subSkill.php → Gameserver/Amfphp/model/Const/sm_subSkill.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_sysmail.php → Gameserver/Amfphp/model/Const/sm_sysmail.php


+ 0 - 0
Gameserver/Amfphp/Model/Const/sm_task.php → Gameserver/Amfphp/model/Const/sm_task.php


Деякі файли не було показано, через те що забагато файлів було змінено