26 lines
500 B
PHP
26 lines
500 B
PHP
<?php
|
|
|
|
namespace models;
|
|
|
|
use mt;
|
|
use phpcommon\SqlHelper;
|
|
|
|
class BoxOrder extends BaseModel {
|
|
|
|
public function getSoldNum($batchId)
|
|
{
|
|
$row = myself()->_getMarketMysql()->execQueryOne
|
|
('SELECT COUNT(*) AS sold_num FROM t_box_order',
|
|
array(
|
|
':batch_id' => $batchId
|
|
));
|
|
return $row && $row['sold_num'] ? $row['sold_num'] : 0;
|
|
}
|
|
|
|
public function isBuyed($buyerAddress, $batchId)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
}
|