cyzhao преди 8 месеца
родител
ревизия
9860ead144
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Gameserver/App/process/ActiveProc.php

+ 1 - 1
Gameserver/App/process/ActiveProc.php

@@ -143,7 +143,7 @@ class ActiveProc {
         if(StlUtil::dictHasProperty($item, $costId)){
             $selfNum = $item->$costId;
         }
-        my_Assert($selfNum >= $costNum,ErrCode::active_lottery_unwantedExchange);
+        my_Assert($selfNum < $costNum,ErrCode::active_lottery_unwantedExchange);
         
         $costNum -= $selfNum;
         $cash = glc()->activity_lottery_oneCost_cash * $costNum;