瀏覽代碼

解决警告问题

cyzhao 3 年之前
父節點
當前提交
560fbd3fe7
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      Gameserver/Amfphp/process/TaskProc.php

+ 7 - 1
Gameserver/Amfphp/process/TaskProc.php

@@ -1038,7 +1038,13 @@ class TaskProc {
         $tasks = ctx()->store->taskcards;
         $tasks = ctx()->store->taskcards;
         $pri = ctx()->privateData();
         $pri = ctx()->privateData();
         for ($tp = 1; $tp < 5; $tp++) {
         for ($tp = 1; $tp < 5; $tp++) {
-            $curId = my_null_default($pri->taskCardTracing->$tp, 0);            # 当前追踪中的任务卡id
+            if(StlUtil::dictHasProperty($pri->taskCardTracing, $tp)){
+                $curId = $pri->taskCardTracing->$tp;
+            } else {
+                $curId = 0;
+            }
+            
+            //$curId = my_null_default($pri->taskCardTracing->$tp, 0);            # 当前追踪中的任务卡id
 
 
             $needRefresh = false;
             $needRefresh = false;
             if ($curId > 0) {                                                   # 存在任务卡
             if ($curId > 0) {                                                   # 存在任务卡