Pārlūkot izejas kodu

fixed: err msg丢失.

gwang 4 gadi atpakaļ
vecāks
revīzija
5ca434dafc

+ 0 - 1
Gameserver/Amfphp/Services/AppServer.php

@@ -86,7 +86,6 @@ class AppServer {
     private static function Route() {
         $proc = OpeCode::getProc(req()->ope);                                   # 映射处理模块.
         DebugHelper::print_stack_trace();
-        var_dump($proc);
         my_Assert($proc != "err", ErrCode::ope_err);                            # 未能找到对应的处理模块
         try {
             $resp = call_user_func(array($proc, 'procMain'), req());            # 调用对应的处理逻辑

+ 2 - 3
Gameserver/Amfphp/base/CmdCode.php

@@ -676,7 +676,7 @@ class CmdCode {
      * 获取神庙信息
      */
     const active_GetShenmiaoData = 6518;
-    
+
     /**
      * 
      */
@@ -1144,8 +1144,7 @@ class CmdCode {
     static function L() {
         $class = new \ReflectionClass(__CLASS__);                               # 建立这个类的反射对象
         $properties = $class->getProperties(\ReflectionProperty::IS_STATIC);    # 拉取所有静态属性
-        $fileName = __DIR__ . "/" . str_replace('\\', '.', __CLASS__) . ".txt"; # 输出文件名
-        \var_dump($fileName);
+        $fileName = __DIR__ . "/" . str_replace('\\', '.', __CLASS__) . ".txt"; # 输出文件名 
         $fd = fopen($fileName, "w");
         if (false === $fd) {                                                    # 打开文件失败
             throw new \Exception("打开$fileName 失败");

+ 3 - 2
Gameserver/Amfphp/index.php

@@ -131,13 +131,14 @@ class Index {
             Index::$debugMsg .= '<br/>内存分配:' . number_format(memory_get_peak_usage() / 1024) . 'kb,';
             Index::$debugMsg .= '内存占用:' . number_format(memory_get_usage() / 1024) . 'kb';  # 内存使用数量(kb) 
         }
-        var_dump($err);
         if (is_string($err)) {                                                      # 防御Err中直接输入字符串的货
             $msg = "发生错误($err)直接中断逻辑执行." . $msg;
             CLog::err($msg);
             $err = ErrCode::err_innerfault;
         }
-        exit(Index::OverPass(Resp::err($err, $msg)));                               # 直接返回错误信息  
+        $resp = Resp::err($err, $msg);
+        $resp->AfterProc();
+        exit(Index::OverPass($resp));                                           # 直接返回错误信息  
     }
 
 }

+ 0 - 1
Gameserver/Amfphp/main.php

@@ -123,7 +123,6 @@ function Err($err, $msg = "") {
  * @param int/str $err
  */
 function my_Assert($condition, $err) {
-    var_dump($err);
     DebugHelper::assert($condition, $err);
 }
 

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

@@ -112,8 +112,7 @@ class EmailProc {
         $zoneid = req()->zoneid;
         self::refreshSysMail($zoneid, $uid);                                    # 更新下系统邮件
         self::clearExpireMails($zoneid, $uid);                                  # 清理过期邮件, 以及超过容量的邮件
-        $mails = self::getMailQueue($zoneid, $uid);                             # 拉取邮件列表
-        var_dump($mails);
+        $mails = self::getMailQueue($zoneid, $uid);                             # 拉取邮件列表 
         return Resp::ok(array('mailQueue' => $mails));                          # 返回值
     }
 

+ 1 - 2
Gameserver/Amfphp/process/StoreProc.php

@@ -332,8 +332,7 @@ class StoreProc {
                     }
                     CornerSignEventProc::OnBag_new_Yanling();
                     break;
-                case 501:                                                       # 限购礼包
-                    var_dump("-== 礼包解包 nil ==-");
+                case 501:                                                       # 限购礼包 
                     $itemMO = GameConfig::item_package_getItem($itemId);
                     my_Assert(null != $itemMO, ErrCode::err_const_no);
                     $err = StoreProc::AddMultiItemInStore($itemMO->contents);         # 发放奖励

+ 0 - 2
Gameserver/Amfphp/service_call/pay/Mo/payRequest.php

@@ -154,8 +154,6 @@ class PayRequest extends loyalsoft\Object_ext {
                 $this->product_price = 0.01;
             } else  //
             if ($this->amount != loyalsoft\GameConfig::shop_getItem($this->product_id)->price) {
-                var_dump($this->product_id);
-                var_dump(loyalsoft\GameConfig::shop_getItem($this->product_id)->price);
                 \loyalsoft\CLog::pay('金额不符' . $this->amount . " ");
                 exit('{"err":1,"msg":"金额不符!"}');
             }

+ 0 - 1
Gameserver/Amfphp/util/TimeUtil.php

@@ -167,7 +167,6 @@ class TimeUtil {
      * @return type
      */
     public static function Hour($fmt = 'H') {
-        var_dump($fmt);
         my_Assert(strtolower($fmt) == 'h', '获取Hour的参数只接受: H/h');
         return date($fmt);
     }