1
This commit is contained in:
parent
c105d7bcf8
commit
5a8b2a6d75
@ -4,6 +4,12 @@ namespace services;
|
|||||||
|
|
||||||
class BlockChainService {
|
class BlockChainService {
|
||||||
|
|
||||||
|
/*
|
||||||
|
注意!!!:
|
||||||
|
调用方调用前需要校验actionType和myself()->_getAddress,
|
||||||
|
非法的参数,或者签名服挂了,该函数直接中断请求,不会运行到调用方后续逻辑
|
||||||
|
*/
|
||||||
|
|
||||||
public static function gameItemMallBuy($actionType, $price, $itemId, $itemNum)
|
public static function gameItemMallBuy($actionType, $price, $itemId, $itemNum)
|
||||||
{
|
{
|
||||||
if (!($actionType > Transaction::BUY_BEGIN_ACTION_TYPE &&
|
if (!($actionType > Transaction::BUY_BEGIN_ACTION_TYPE &&
|
||||||
@ -14,6 +20,12 @@ class BlockChainService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$account = myself()->_getAddress();
|
$account = myself()->_getAddress();
|
||||||
|
if (empty($account)) {
|
||||||
|
error_log('gameItemMallBuy address is emtpy:' . myself()->_getAccountId());
|
||||||
|
myself()->_rspErr(500, 'server internal error');
|
||||||
|
die();
|
||||||
|
return;
|
||||||
|
}
|
||||||
$params = array(
|
$params = array(
|
||||||
'c' => 'GameItemMall',
|
'c' => 'GameItemMall',
|
||||||
'a' => 'buy',
|
'a' => 'buy',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user