cyzhao пре 1 година
родитељ
комит
3edd14d6da
1 измењених фајлова са 3 додато и 4 уклоњено
  1. 3 4
      Gameserver/App/process/ShopProc.php

+ 3 - 4
Gameserver/App/process/ShopProc.php

@@ -169,7 +169,7 @@ class ShopProc {
                             
                             
                             $n = rand(0, count($gemList)-1);                  
                             $n = rand(0, count($gemList)-1);                  
                             $gem = StoreProc::initGem($gateGift[$n]->typeId);
                             $gem = StoreProc::initGem($gateGift[$n]->typeId);
-                            $resultArr[] = $gem;
+                            $resultArr[] = $gem->uid;
                             StoreProc::PutGemInStore2($gem);
                             StoreProc::PutGemInStore2($gem);
                     }                                                                                       
                     }                                                                                       
                 }
                 }
@@ -296,9 +296,8 @@ class ShopProc {
         ctx($user);
         ctx($user);
         UserProc::updateUserInfo();
         UserProc::updateUserInfo();
         return Resp::ok(array(         
         return Resp::ok(array(         
-                    'resultArr' => $resultArr,
-                    'gateGift'=>$gateGift,
-                    'equip'=>$equip,
+                    'gemBox' => $resultArr,
+                    'gateGift'=>$gateGift,                 
                     'cash'=>$user->baseInfo->cash,
                     'cash'=>$user->baseInfo->cash,
                     'gold'=>$user->baseInfo->gold,
                     'gold'=>$user->baseInfo->gold,
                     'privateState' => $user->privateState,                   
                     'privateState' => $user->privateState,