Ver Fonte

补充文档.

gwang há 4 anos atrás
pai
commit
3a85b8ebaf

+ 1 - 1
Gameserver/Amfphp/config.php

@@ -52,7 +52,7 @@ abstract class config {
      * 初始化内网paydb的设置
      */
     private function _InitIntranetPaydb() {
-        $this->paydb->host = '192.168.10.16';
+        $this->paydb->host = '192.168.10.86';
         $this->paydb->port = '3306';
         $this->paydb->name = 'ylsj2019_pay';
         $this->paydb->user = 'gwang';

+ 1 - 1
Gameserver/Amfphp/util/SelfChecker.php

@@ -91,7 +91,7 @@ class SelfChecker {
         echo("Profile Insert: ");
         RenderTime::Test(function()use($tableName) {
             daoInst()->insert("`$tableName`")->data(array('msg' => 'Hello world!'))->exec();
-        }, 10);
+        }, 100);
         $sql = "Drop Table `$tableName`;";
         daoInst()->exec($sql);
         echoLine("delete table $tableName " . (daoInst()->tableExist($tableName) ? "failed!" : "success!"));

+ 12 - 0
Gameserver/Docs/改进记录.md

@@ -1,5 +1,17 @@
 ## 改进记录
 
+## 2020年11月24日 这次改动值得记录一下.
+> author: gwang
+> digets: 渐进迭代.
+  1. 代码整理精简. 普及Err()以及my_assert()的应用,替换掉旧的写法.
+    1.1 删除了MySQL/MySQLi连接代码.
+    1.2 删除了memcache/memcached的连接代码.
+  2. 完善了PHP自检能力,在原来检查PHP版本以及模块的基础上, 增加了环境配置检查.
+    2.1 增加MySQL配置检查, 读写能力, 以及插入操作性能检测.
+    2.2 增加NoSQL(Redis)配置检查,读写能力以及性能检测.
+  3. 补充增加了一个身份证号码检查功能.
+
+
 ## 2019年10月开启言灵世界重制项目
 > author: gwang
 > digets: 代码重整, 应用近两年来的改进

+ 9 - 7
Gameserver/nbproject/private/private.xml

@@ -12,15 +12,17 @@
     </editor-bookmarks>
     <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
         <group>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/util/CMemdUtil.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/util/CRedisUtil.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/util/CommUtil.php</file>
             <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/util/DebugHelper.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/test.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/config.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/configs/config_and.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/util/CRedisUtil.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/Services/TestServer.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/util/SelfChecker.php</file>
             <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/UserProc.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/util/dao.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/main.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/Services/AppServer.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/configs/GameConfig.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/config.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/test.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/util/TimeUtil.php</file>
         </group>
     </open-files>
 </project-private>