mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix error when autoinstall module can't download package data from server
https://xetown.com/questions/1505137
This commit is contained in:
parent
c8c23e8afe
commit
2717f420e0
1 changed files with 13 additions and 8 deletions
|
|
@ -79,14 +79,19 @@ class autoinstallAdminController extends autoinstall
|
|||
$config = $oAdminModel->getAutoInstallAdminModuleConfig();
|
||||
|
||||
$buff = FileHandler::getRemoteResource($config->download_server, $body, 3, "POST", "application/xml", array(), array(), array(), $request_config);
|
||||
$xml = new XeXmlParser();
|
||||
$xmlDoc = $xml->parse($buff);
|
||||
$this->updateCategory($xmlDoc);
|
||||
$this->updatePackages($xmlDoc);
|
||||
$this->checkInstalled();
|
||||
|
||||
$oAdminController = getAdminController('admin');
|
||||
$oAdminController->cleanFavorite();
|
||||
if ($buff)
|
||||
{
|
||||
$xml = new XeXmlParser();
|
||||
$xmlDoc = $xml->parse($buff);
|
||||
if ($xmlDoc)
|
||||
{
|
||||
$this->updateCategory($xmlDoc);
|
||||
$this->updatePackages($xmlDoc);
|
||||
$this->checkInstalled();
|
||||
}
|
||||
$oAdminController = getAdminController('admin');
|
||||
$oAdminController->cleanFavorite();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue