This commit is contained in:
aozhiwei 2023-06-19 13:57:22 +08:00
parent 2e2898d2f3
commit c105d7bcf8
3 changed files with 6 additions and 2 deletions

View File

@ -254,6 +254,7 @@ class BlockChainController extends BaseAuthedController {
$tokenType, $tokenType,
$itemUniId, $itemUniId,
$itemId, $itemId,
1,
1 1
); );
myself()->_rspData(array( myself()->_rspData(array(

View File

@ -65,7 +65,7 @@ class Transaction extends BaseModel {
return $row; return $row;
} }
public static function add($transId, $action, $tokenId, $tokenType, $itemUniId, $itemId, $result) public static function add($transId, $action, $tokenId, $tokenType, $itemUniId, $itemId, $itemNum, $result)
{ {
SqlHelper::insert( SqlHelper::insert(
myself()->_getSelfMysql(), myself()->_getSelfMysql(),
@ -79,6 +79,7 @@ class Transaction extends BaseModel {
'token_type' => $tokenType, 'token_type' => $tokenType,
'item_uniid' => $itemUniId, 'item_uniid' => $itemUniId,
'item_id' => $itemId, 'item_id' => $itemId,
'item_num' => $itemNum,
'result' => $result, 'result' => $result,
'status' => self::CREATED_STATUS, 'status' => self::CREATED_STATUS,
'createtime' => myself()->_getNowTime(), 'createtime' => myself()->_getNowTime(),

View File

@ -13,6 +13,7 @@ class BlockChainService {
die(); die();
return; return;
} }
$account = myself()->_getAddress();
$params = array( $params = array(
'c' => 'GameItemMall', 'c' => 'GameItemMall',
'a' => 'buy', 'a' => 'buy',
@ -40,7 +41,8 @@ class BlockChainService {
'', //$tokenId, '', //$tokenId,
'', //$tokenType, '', //$tokenType,
0, //$itemUniId, 0, //$itemUniId,
0, //$itemId, $itemId, //$itemId,
$itemNum,
1 1
); );
return array( return array(