getModel(); $dataRes = $model::getDB() ->where('product_id', '=', $productId) ->where("`seckill_date` <= '" . date('Y-m-d H:i:s') . "'") ->where("status", '=', SeckillEnum::STATUS['Open']['code']) ->find(); if (!empty($dataRes)) { $data = $dataRes->toArray(); } } catch (\Exception $e) { } return SeckillEntity::newInstance($data); } }