This commit is contained in:
aozhiwei 2024-10-10 19:32:25 +08:00
parent 0caa884a24
commit eb36e33822

View File

@ -21,9 +21,23 @@ class HashRateShopController extends BaseAuthedController {
);
}
public function testBuyGoods()
{
if (SERVER_ENV != _ONLINE) {
$this->internalBuyGoods();
}
}
public function buyGoodsS()
{
myself()->_verifySwitch('hashrate.shop.buy');
$this->internalBuyGoods();
}
public function internalBuyGoods()
{
if (SERVER_ENV == _ONLINE) {
myself()->_verifySwitch('hashrate.shop.buy');
}
$goodsId = getReqVal('goods_id', 0);
$goodsNum = intval(getReqVal('goods_num', 0));