소스 검색

神庙bug

cyzhao 4 년 전
부모
커밋
6a8d339d73
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      Gameserver/Amfphp/process/ActiveProc.php

+ 9 - 1
Gameserver/Amfphp/process/ActiveProc.php

@@ -90,7 +90,15 @@ class ActiveProc {
         $costNum = $dic->price * $num;
         my_Assert($baseInfo->cash >= $costNum, ErrCode::notenough_cash_msg);
                       
-        req()->userInfo->game->base()->Consume_Cash($costNum);           
+        req()->userInfo->game->base()->Consume_Cash($costNum); 
+        if ($costId == 801022)
+        {
+            $costId = 3320001;
+        }
+        else
+        {
+            $costId = 3330001;
+        }           
         StoreProc::AddMultiItemInStore($costId.','.$num);       
         UserProc::updateUserInfo();
         return Resp::ok(array(#                                                 # 返回值