no message

This commit is contained in:
kuaifan
2025-05-14 15:16:35 +08:00
parent 9c29c1ca9b
commit bc264109f3
5 changed files with 27 additions and 7 deletions

View File

@@ -135,7 +135,7 @@ class Apps
// 执行docker-compose命令
$curlPath = "app/{$command}/{$appName}";
if ($command === 'up') {
$curlPath .= "?callback_url=" . urlencode("http://host.docker.internal:" . env("APP_PORT") . "/api/apps/install/callback?install_num=" . $updateConfig[$prefix . '_num']);
$curlPath .= "?callback_url=" . urlencode("http://nginx/api/apps/install/callback?install_num=" . $updateConfig[$prefix . '_num']);
}
$res = self::curl($curlPath);
if (Base::isError($res)) {
@@ -821,7 +821,7 @@ class Apps
*/
private static function curl($path): array
{
$url = "http://nginx/appstore/api/{$path}";
$url = "http://appstore/api/{$path}";
$extra = [
'Content-Type' => 'application/json',
'Authorization' => 'Bearer ' . md5(env('APP_KEY')),