...
This commit is contained in:
parent
dd8668a471
commit
05f28d5f65
@ -230,8 +230,6 @@ class MarketController extends BaseAuthedController
|
||||
|
||||
public function listSellNfts()
|
||||
{
|
||||
$this->autoRestoreBuyingOrders();
|
||||
|
||||
$account = strtolower(getReqVal('account', ''));
|
||||
$token = getReqVal('token', '');
|
||||
$start = getReqVal('start', 0);
|
||||
@ -930,30 +928,4 @@ class MarketController extends BaseAuthedController
|
||||
return true;
|
||||
}
|
||||
|
||||
private function autoRestoreBuyingOrders()
|
||||
{
|
||||
$conn = myself()->_getSelfMysql();
|
||||
|
||||
$rows = $conn->execQuery(
|
||||
'SELECT * FROM t_market_store ' .
|
||||
'WHERE status=3 AND buytime<:buytime',
|
||||
array(
|
||||
':buytime' => myself()->_getNowTime() - 3600 * 24 * 1,
|
||||
)
|
||||
);
|
||||
|
||||
foreach ($rows as $row) {
|
||||
$r = SqlHelper::update(
|
||||
myself()->_getSelfMysql(),
|
||||
't_market_store',
|
||||
array(
|
||||
'idx' => $row['idx'],
|
||||
),
|
||||
array(
|
||||
'status' => 0,
|
||||
'buytime' => 0,
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user