Browse Source

兑换bug修复

cyzhao 8 months ago
parent
commit
3a942a7c47
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Gameserver/App/process/ActiveProc.php

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

@@ -57,7 +57,7 @@ class ActiveProc {
         if(StlUtil::dictHasProperty(ctx()->store->items, $id)){
             $itemNum = ctx()->store->items->$id;
         }
-        $cost = explode(',', $cost);
+        $cost = explode(',',$mo->cost);
         my_Assert($itemNum >= $cost[1],ErrCode::notenough_item);
         ctx()->store->removeItem($cost[0], $cost[1]);