Browse Source

月卡bug

cyzhao 1 year ago
parent
commit
f06832767c
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Gameserver/App/process/ShopProc.php

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

@@ -372,12 +372,11 @@ class ShopProc {
                 if($typeId == 1){
                     my_Assert($user->privateState->monthCardShop_ts == 0, ErrCode::err_const_no);
                     $user->privateState->monthCardShop_ts = now();
+                    StoreProc::AddMultiItemInStore($mo->buy_reward);
                 } else {
                     my_Assert($user->privateState->honourCardShop_ts == 0, ErrCode::err_const_no);
                     $user->privateState->honourCardShop_ts = now();
-                }
-                
-                StoreProc::AddMultiItemInStore($mo->buy_reward);
+                }                            
                 break;
             default:
                 break;