1
This commit is contained in:
parent
0caa884a24
commit
eb36e33822
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user