first(); } /** * @param $id * @param $data * @return bool */ public static function updatePushTask($id, $data): bool { if (empty($id) || empty($data)) { return false; } return self::where('id', $id)->update($data); } /** * @return mixed */ public static function getValidTask() { return self::where('status', PushConst::PUSH_STATUS_TODO) ->where('select_user_status', PushConst::SELECT_USER_OK) ->orderBy('push_time', 'ASC') ->first(); } }