cyzhao 3 жил өмнө
parent
commit
46153a4a63

+ 4 - 5
Gameserver/Amfphp/process/StoreProc.php

@@ -120,8 +120,7 @@ class StoreProc {
 
         UserProc::updateUserInfo();
 
-        return Resp::ok(array(
-                    "ret" => 'ok',));
+        return Resp::ok(ctx()->store());
     }
 
     /**
@@ -168,10 +167,10 @@ class StoreProc {
 
         $store->weaponReward->$npcid->$type[] = $weaponId;
 
-//        ctx()->store = $store;
+        ctx()->store = $store;
 
         UserProc::updateUserInfo();
-        return Resp::ok();
+        return Resp::ok($store);
     }
 
     /*
@@ -199,7 +198,7 @@ class StoreProc {
                 $retArr = array_merge($retArr, $pArr);              
                 ctx()->store()->weaponPool->$npcid->$type = $retArr;
             }
-        } else {
+        } else if($npcid == null){
             //每日登录刷新,刷新的时候把已经购买过的武器去掉;                          
             $dic = ctx()->store()->weaponPool;
             foreach ($dic as $npcid => $val) {