* [misc] adjust call method params for cne.

This commit is contained in:
caoyanyi
2025-01-13 11:19:06 +08:00
committed by 李阳
parent ee52fe9ddc
commit ff78caf26e
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -1106,6 +1106,8 @@ class cneModel extends model
'channel' => getenv('CLOUD_DEFAULT_CHANNEL') ?: 'stable',
'version' => getenv('APP_VERSION')
);
$ztVersion = $this->loadModel('upgrade')->getOpenVersion(str_replace('.', '_', $this->config->version));
$currentRelease['zentao_version'] = str_replace('_', '.', $ztVersion);
$query = http_build_query($currentRelease);
$response = common::http($cloudApiHost . '/api/market/app/version/latest?' . $query);
+2
View File
@@ -442,6 +442,8 @@ class systemModel extends model
'channel' => getenv('CLOUD_DEFAULT_CHANNEL') ?: 'stable',
'version' => getenv('APP_VERSION')
);
$ztVersion = $this->loadModel('upgrade')->getOpenVersion(str_replace('.', '_', $this->config->version));
$currentRelease['zentao_version'] = str_replace('_', '.', $ztVersion);
$query = http_build_query($currentRelease);
$response = common::http($cloudApiHost . '/api/market/app/version/latest?' . $query);