where([ ['platform', '=', $data['platform'] ], ['version_code', '>', $data['version_code'] ], ['status', '=', AppDict::STATUS_PUBLISHED], ])->order("version_code desc")->findOrEmpty()->toArray(); return empty($version) ? null : $version; } }