diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 71f8ab77..44206537 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -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, - ) - ); - } - } }