cyzhao пре 1 година
родитељ
комит
30a032128a
2 измењених фајлова са 22 додато и 23 уклоњено
  1. 21 21
      Gameserver/App/process/StoreProc.php
  2. 1 2
      Gameserver/App/process/UserProc.php

+ 21 - 21
Gameserver/App/process/StoreProc.php

@@ -804,26 +804,26 @@ class StoreProc {
         return $tag == true?0:1;
         return $tag == true?0:1;
     }
     }
     //临时代码
     //临时代码
-    public static function InitGemInfo() {
-        if(count((array)ctx()->store->gemStore) > 0){
-            return;
-        }
-        
-        $index = 0;
-        $gem = GameConfig::gem();
-             
-        for ($i = 1; $i <=21; $i++) {
-            foreach ($gem as $key => $value) {  
-                if($value->id == $i){
-                    self::PutGemInStore($value->typeId);   
-                }
-                             
-            }
-        }
-        
-        
-        
-        
-    }
+//    public static function InitGemInfo() {
+//        if(count((array)ctx()->store->gemStore) > 0){
+//            return;
+//        }
+//        
+//        $index = 0;
+//        $gem = GameConfig::gem();
+//             
+//        for ($i = 1; $i <=21; $i++) {
+//            foreach ($gem as $key => $value) {  
+//                if($value->id == $i){
+//                    self::PutGemInStore($value->typeId);   
+//                }
+//                             
+//            }
+//        }
+//        
+//        
+//        
+//        
+//    }
     
     
 }
 }

+ 1 - 2
Gameserver/App/process/UserProc.php

@@ -267,8 +267,7 @@ class UserProc {
         ShopProc::DailyShopItemRand();
         ShopProc::DailyShopItemRand();
         ShopProc::ShopDailyClear();
         ShopProc::ShopDailyClear();
         //FightProc::FightDailyClear();
         //FightProc::FightDailyClear();
-        TaskProc::initAchieveData();
-        StoreProc::InitGemInfo();
+        TaskProc::initAchieveData();       
     }
     }
 
 
 // <editor-fold defaultstate="collapsed" desc="创建新用户">
 // <editor-fold defaultstate="collapsed" desc="创建新用户">