gwang před 4 roky
rodič
revize
f4ca735cac

+ 1 - 1
Gameserver/Amfphp/config.php

@@ -30,7 +30,7 @@ abstract class config {
 
 
     /**
     /**
      * 封号
      * 封号
-     * @param type $uid
+     * @param string $uid
      */
      */
     function isBaned($uid) {
     function isBaned($uid) {
         return in_array($uid, $this->banedArr);
         return in_array($uid, $this->banedArr);

+ 2 - 2
Gameserver/Amfphp/index.php

@@ -119,8 +119,8 @@ class Index {
 
 
     /**
     /**
      * 直接返回错误resp并结束运行
      * 直接返回错误resp并结束运行
-     * @param type $err
-     * @param type $msg
+     * @param int $err
+     * @param string $msg
      */
      */
     static function Err($err, $msg = "") {
     static function Err($err, $msg = "") {
         if (ErrCode::ok === $err) {
         if (ErrCode::ok === $err) {

+ 8 - 8
Gameserver/Amfphp/main.php

@@ -40,7 +40,7 @@ require_once ROOTDIR . '/AutoLoad.php';
  * @version 2019年12月23日 经过梦幻星工场2一年多的使用, 未发现特别明显的bug. 决定侧重使用. -- 王刚
  * @version 2019年12月23日 经过梦幻星工场2一年多的使用, 未发现特别明显的bug. 决定侧重使用. -- 王刚
  *           2017.06.23     第一版 学习自禅道的开源框架.    -- 王刚
  *           2017.06.23     第一版 学习自禅道的开源框架.    -- 王刚
  * @staticvar type $a
  * @staticvar type $a
- * @return \dao  注意: dao并非什么好东西,只是一些改进尝试, 稳定性, 性能, 效率尚未得到证明.-gwang 2017.06.23
+ * @return \loyalsoft\dao  注意: dao并非什么好东西,只是一些改进尝试, 稳定性, 性能, 效率尚未得到证明.-gwang 2017.06.23
  */
  */
 function daoInst() {
 function daoInst() {
     static $a = null;
     static $a = null;
@@ -52,7 +52,7 @@ function daoInst() {
 }
 }
 
 
 /**
 /**
- * @return CRedisUtil 获取全局MEM单例
+ * @return \loyalsoft\CRedisUtil 获取全局MEM单例
  */
  */
 function gMem() {
 function gMem() {
     static $cmem = null;
     static $cmem = null;
@@ -73,21 +73,21 @@ function gMem() {
 
 
 /**
 /**
  * 简化提取全局变量的写法
  * 简化提取全局变量的写法
- * @return globalsettings
+ * @return \globalsettings
  */
  */
 function glc() {
 function glc() {
     return GameConfig::globalsettings();
     return GameConfig::globalsettings();
 }
 }
 
 
 /**
 /**
- * @return Req 全局访问
+ * @return \loyalsoft\Req 全局访问
  */
  */
 function req() {
 function req() {
     return Req::Ins();
     return Req::Ins();
 }
 }
 
 
 /**
 /**
- * @return Data_UserGame 玩家数据
+ * @return \loyalsoft\Data_UserGame 玩家数据
  */
  */
 function ctx() {
 function ctx() {
     return req()->userInfo->game;
     return req()->userInfo->game;
@@ -99,7 +99,7 @@ $zoneid = "1";
 
 
 /**
 /**
  * 从QueryString初始化分区Id
  * 从QueryString初始化分区Id
- * @global type $zoneid
+ * @global int $zoneid
  */
  */
 function InitZoneId() {
 function InitZoneId() {
     global $zoneid;
     global $zoneid;
@@ -110,8 +110,8 @@ function InitZoneId() {
 
 
 /**
 /**
  * 直接返回错误resp并结束运行
  * 直接返回错误resp并结束运行
- * @param type $err
- * @param type $msg
+ * @param int $err
+ * @param string $msg
  */
  */
 function Err($err, $msg = "") {
 function Err($err, $msg = "") {
     Index::Err($err, $msg);
     Index::Err($err, $msg);

+ 0 - 1
Gameserver/Amfphp/process/EmailProc.php

@@ -157,7 +157,6 @@ class EmailProc {
         }
         }
         self::logMailDrawed(array($mailId), $uid, $zoneid);                     # 更新数据库中邮件的领取记录 
         self::logMailDrawed(array($mailId), $uid, $zoneid);                     # 更新数据库中邮件的领取记录 
         UserProc::updateUserInfo();
         UserProc::updateUserInfo();
-        $base = ctx()->base();
         return Resp::ok(array(#                                                 # 同步数据   
         return Resp::ok(array(#                                                 # 同步数据   
                     'store' => ctx()->store,
                     'store' => ctx()->store,
                     'hero' => ctx()->heros,
                     'hero' => ctx()->heros,

+ 1 - 0
Gameserver/Amfphp/test.php

@@ -13,3 +13,4 @@ echoLine("phpver: " . PHP_VERSION . PHP_EOL);
 var_dump(TimeUtil::Hour());
 var_dump(TimeUtil::Hour());
 
 
 var_dump(date('YmdH'));
 var_dump(date('YmdH'));
+

+ 6 - 6
Gameserver/Amfphp/util/DebugHelper.php

@@ -21,7 +21,7 @@ class DebugHelper {
 
 
     /**
     /**
      * 尝试从array中取出一个命名变量, Ps.可以取消5.3中的Notice
      * 尝试从array中取出一个命名变量, Ps.可以取消5.3中的Notice
-     * @param arry $arr
+     * @param array $arr
      * @param string $strFieldName
      * @param string $strFieldName
      * @return mixed
      * @return mixed
      */
      */
@@ -37,7 +37,7 @@ class DebugHelper {
 
 
     /**
     /**
      * 逻辑断言,不受系统断言状态影响,可以用于生产环境的简单判断,比如:参数非法,参数缺失等
      * 逻辑断言,不受系统断言状态影响,可以用于生产环境的简单判断,比如:参数非法,参数缺失等
-     * @param type $condition
+     * @param bool $condition
      * @param int/string $err 如果是int值,则当作Errcode处理,否则当作字符串处理
      * @param int/string $err 如果是int值,则当作Errcode处理,否则当作字符串处理
      */
      */
     static function assert($condition, $err) {
     static function assert($condition, $err) {
@@ -71,10 +71,10 @@ class DebugHelper {
 
 
     /**
     /**
      *  断言处理函数
      *  断言处理函数
-     * @param type $file
-     * @param type $line
-     * @param type $code
-     * @param type $desc
+     * @param string $file
+     * @param int $line
+     * @param string $code
+     * @param string $desc
      */
      */
     private static function my_assert_handler($file, $line, $code, $desc) {
     private static function my_assert_handler($file, $line, $code, $desc) {
         $msg = "<hr>Assertion Failed:
         $msg = "<hr>Assertion Failed:

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

@@ -1,4 +1,5 @@
 <?php
 <?php
+namespace loyalsoft;
 
 
 /**
 /**
  * mysql dao 工具类: 目的是提高写sql语句的效率,但是应该是涉及到sql开发的地方不会太多...
  * mysql dao 工具类: 目的是提高写sql语句的效率,但是应该是涉及到sql开发的地方不会太多...
@@ -55,7 +56,6 @@
  *  May you share freely, never taking more than you give.
  *  May you share freely, never taking more than you give.
  */
  */
 
 
-namespace loyalsoft;
 
 
 use \PDO;
 use \PDO;
 
 

+ 4 - 1
Gameserver/nbproject/project.properties

@@ -1,8 +1,11 @@
 auxiliary.org-netbeans-modules-php-smarty.smarty-framework=true
 auxiliary.org-netbeans-modules-php-smarty.smarty-framework=true
+auxiliary.org-netbeans-modules-web-clientproject-api.js_2e_libs_2e_folder=js/libs
+browser.reload.on.save=true
 include.path=${php.global.include.path}
 include.path=${php.global.include.path}
-php.version=PHP_80
+php.version=PHP_74
 source.encoding=UTF-8
 source.encoding=UTF-8
 src.dir=.
 src.dir=.
 tags.asp=false
 tags.asp=false
 tags.short=false
 tags.short=false
+testing.providers=
 web.root=.
 web.root=.

+ 1 - 0
Gameserver/nbproject/project.xml

@@ -5,5 +5,6 @@
         <data xmlns="http://www.netbeans.org/ns/php-project/1">
         <data xmlns="http://www.netbeans.org/ns/php-project/1">
             <name>ylsj2019</name>
             <name>ylsj2019</name>
         </data>
         </data>
+        <libraries xmlns="http://www.netbeans.org/ns/cdnjs-libraries/1"/>
     </configuration>
     </configuration>
 </project>
 </project>