cyzhao před 4 roky
rodič
revize
f4f2e35ec4

+ 1 - 1
Gameserver/Amfphp/model/User/Info_ShenMiao.php

@@ -70,7 +70,7 @@ class Info_ShenMiao extends Object_ext {
                             foreach ($list as $val) {                 
                                 if($val->startTs <=$nowTs && $nowTs<= $val->endTs){
                                     $item = new Ins_active();
-                                    $item->id = $item->id;         
+                                    $item->id = $val->id;         
                                     $this->activeDic->$type = $item;
                                 }                
                             }

+ 2 - 2
Gameserver/Amfphp/process/ActiveProc.php

@@ -63,9 +63,9 @@ class ActiveProc {
      */
     static function GetShenmiaoData() {
         $req = req();          
-        //$shenmiaoInfo = $req->userInfo->game->shenmiao;
+        $shenmiaoInfo = $req->userInfo->game->shenmiao;
         
-        $shenmiaoInfo = new Info_ShenMiao();
+        //$shenmiaoInfo = new Info_ShenMiao();
         $shenmiaoInfo->initActiveItem();
         $req->userInfo->game->shenmiao = $shenmiaoInfo;