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,
$itemUniId,
$itemId,
1,
1
);
myself()->_rspData(array(

View File

@ -65,7 +65,7 @@ class Transaction extends BaseModel {
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(
myself()->_getSelfMysql(),
@ -79,6 +79,7 @@ class Transaction extends BaseModel {
'token_type' => $tokenType,
'item_uniid' => $itemUniId,
'item_id' => $itemId,
'item_num' => $itemNum,
'result' => $result,
'status' => self::CREATED_STATUS,
'createtime' => myself()->_getNowTime(),

View File

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