* [task#127411,doing,0.2h] adjust app search data for store.
This commit is contained in:
@@ -685,7 +685,7 @@ class instanceModel extends model
|
||||
$instanceData->logo = $app->logo;
|
||||
$instanceData->desc = $app->desc;
|
||||
$instanceData->introduction = isset($app->introduction) ? $app->introduction : $app->desc;
|
||||
$instanceData->source = 'cloud';
|
||||
$instanceData->source = $this->app->rawModule == 'instance' ? 'cloud' : 'system';
|
||||
$instanceData->channel = $channel;
|
||||
$instanceData->chart = $app->chart;
|
||||
$instanceData->appVersion = $app->app_version;
|
||||
|
||||
@@ -95,9 +95,9 @@ class storeModel extends model
|
||||
* @access public
|
||||
* @return object|null
|
||||
*/
|
||||
public function getAppInfo(int $appID, bool $analysis = false, string $name = '', string $version ='', string $channel = ''): object|null
|
||||
public function getAppInfo(int $appID = 0, bool $analysis = false, string $name = '', string $version = '', string $channel = ''): object|null
|
||||
{
|
||||
if(empty($appID)) return null;
|
||||
if(empty($appID) && (empty($name) || empty($channel))) return null;
|
||||
$apiParams = array();
|
||||
$apiParams['analysis'] = $analysis ? 'true' : 'false' ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user