no message

This commit is contained in:
kuaifan
2025-05-15 15:57:44 +08:00
parent dfbcb1f45c
commit 3bb1bf0967
2 changed files with 6 additions and 5 deletions

View File

@@ -1,12 +1,10 @@
<?php
namespace App\Module\Apps;
namespace App\Module;
use App\Module\Base;
use App\Module\Ihttp;
use Cache;
use Symfony\Component\Yaml\Yaml;
use Symfony\Component\Yaml\Exception\ParseException;
use Symfony\Component\Yaml\Yaml;
class Apps
{
@@ -835,6 +833,9 @@ class Apps
// 处理应用名称
$appName = Base::camel2snake(Base::cn2pinyin($configData['name'], '_'));
if (in_array($appName, self::$protectedServiceNames)) {
return Base::retError('服务名称 "' . $name . '" 被保护,不能使用');
}
$targetDir = base_path('docker/appstore/apps/' . $appName);
$targetConfigFile = $targetDir . '/config.json';