Browse Source

解决警告问题

cyzhao 3 năm trước cách đây
mục cha
commit
560fbd3fe7
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  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;
         $pri = ctx()->privateData();
         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;
             if ($curId > 0) {                                                   # 存在任务卡