浏览代码

商城返回值改变

cyzhao 9 月之前
父节点
当前提交
a58ca379f0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Gameserver/App/process/ShopProc.php

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

@@ -460,7 +460,7 @@ class ShopProc {
 
             //收费买
             if ($typeId == 1 && ctx()->privateState->goldShop_GuangGaoNum < $mo->guanggaoNum) {
-                $user->privateState->goldShop_GuangGaoNum += 1;
+                ctx()->privateState->goldShop_GuangGaoNum += 1;
             } else {
                 my_Assert(ctx()->baseInfo->cash >= $mo->price, ErrCode::notenough_cash_msg);
                 ctx()->baseInfo->Consume_Cash($mo->price);