diff --git a/platform/Vercel.php b/platform/Vercel.php index b7e339c..c6f7b59 100644 --- a/platform/Vercel.php +++ b/platform/Vercel.php @@ -436,6 +436,11 @@ function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = //error_log1($outPath); if ($outPath=='') return '{"error":{"message":"no outpath"}}'; + // put in config + $coderoot = __DIR__; + $coderoot = splitlast($coderoot, '/')[0] . '/'; + copy($coderoot . '.data/config.php', $outPath . '/api/.data/config.php'); + return VercelUpdate(getConfig('HerokuappId'), getConfig('APIKey'), $outPath); }