Browse Source

fixed: 添加道具到包裹的方法中对于武器和言灵漏处理数量了.

gwang 4 years ago
parent
commit
7c61fb029c
1 changed files with 6 additions and 2 deletions
  1. 6 2
      Gameserver/Amfphp/process/StoreProc.php

+ 6 - 2
Gameserver/Amfphp/process/StoreProc.php

@@ -322,11 +322,15 @@ class StoreProc {
 //                    $user->task->dailyActivePoint += $num;                      # 每日任务活跃点
                     break;
                 case 101:                                                       # 武器 
-                    StoreProc::PutEquipInStore($itemId, $req);
+                    for ($n = 0; $n < $num; $n++) {
+                        StoreProc::PutEquipInStore($itemId, $req);
+                    }
                     CornerSignEventProc::OnBag_new_Weapon($req);
                     break;
                 case 401:                                                       # 言灵
-                    StoreProc::PutYanLingInStore($itemId, $req);
+                    for ($n = 0; $n < $num; $n++) {
+                        StoreProc::PutYanLingInStore($itemId, $req);
+                    }
                     CornerSignEventProc::OnBag_new_Yanling($req);
                     break;
                 case 501:                                                       # 限购礼包