30 lines
920 B
PHP
30 lines
920 B
PHP
<?php
|
|
|
|
|
|
namespace models;
|
|
|
|
use mt;
|
|
use phpcommon\SqlHelper;
|
|
class TransactionPrefee extends BaseModel
|
|
{
|
|
public static function add($transId,$param)
|
|
{
|
|
SqlHelper::insert(
|
|
myself()->_getSelfMysql(),
|
|
't_transaction_prefee',
|
|
array(
|
|
'account_id' => myself()->_getAccountId(),
|
|
'trans_id' => $transId,
|
|
'target_token_id' => isset($param['token_id']) ? $param['token_id']:0,
|
|
'target_token_type' => isset($param['token_type']) ? $param['token_type']:0,
|
|
'item_uniid' => isset($param['item_uniid']) ? $param['item_uniid'] : 0,
|
|
'item_id' => $param['item_id'],
|
|
'item_num' => $param['item_num'],
|
|
'done' => 0,
|
|
'createtime' => myself()->_getNowTime(),
|
|
'modifytime' => myself()->_getNowTime(),
|
|
)
|
|
);
|
|
}
|
|
}
|