* [task#127411,doing,0.2h] adjust app search data for store.

This commit is contained in:
caoyanyi
2024-09-04 16:48:29 +08:00
committed by 田淑杰
parent d20291dd0a
commit a093fff1af
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;
+2 -2
View File
@@ -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' ;