1
This commit is contained in:
parent
2e2898d2f3
commit
c105d7bcf8
@ -254,6 +254,7 @@ class BlockChainController extends BaseAuthedController {
|
||||
$tokenType,
|
||||
$itemUniId,
|
||||
$itemId,
|
||||
1,
|
||||
1
|
||||
);
|
||||
myself()->_rspData(array(
|
||||
|
@ -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(),
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user