FastMovieAI AI短剧创作平台 二开基线

- 源码: xhadmincn/FastMovieAI (Apache 2.0)
- 二开: Docker部署, Swoole改Select, route.php修复, 补update/VERSION
- vendor/示例资源已gitignore
This commit is contained in:
李建琦
2026-08-26 18:37:36 +08:00
commit eae151fd57
888 changed files with 105571 additions and 0 deletions
@@ -0,0 +1,9 @@
<?php
use support\Request;
return [
'debug' => true,
'controller_suffix' => 'Controller',
'controller_reuse' => false
];
@@ -0,0 +1,6 @@
<?php
return [
'files' => [
base_path() . '/plugin/model/app/functions.php',
]
];
@@ -0,0 +1,2 @@
<?php
return new Webman\Container;
@@ -0,0 +1,5 @@
<?php
return [
'' => app\exception\Handler::class,
];
@@ -0,0 +1,19 @@
<?php
return [
'' => [
app\middleware\Template::class,
app\middleware\Platform::class
],
'control' => [
plugin\control\expose\middleware\ControlAuth::class
],
'admin' => [
app\expose\middleware\AdminAuth::class
],
'api' => [
plugin\control\expose\middleware\DomainMapping::class,
plugin\user\expose\middleware\UserAuth::class,
plugin\user\expose\middleware\Twofa::class,
]
];
@@ -0,0 +1,30 @@
<?php
use plugin\model\process\audio\AudioTransfer;
use plugin\model\process\chat\Submit;
use plugin\model\process\draw\ImageTransfer;
use plugin\model\process\video\VideoTransfer;
use Workerman\Events\Select;
return [
'ChatSubmit' => [
'eventLoop' => Select::class,
'handler' => Submit::class,
'count' => 5
],
'ImageTransfer' => [
'eventLoop' => Select::class,
'handler' => ImageTransfer::class,
'count' => 5
],
'VideoTransfer' => [
'eventLoop' => Select::class,
'handler' => VideoTransfer::class,
'count' => 5
],
'AudioTransfer' => [
'eventLoop' => Select::class,
'handler' => AudioTransfer::class,
'count' => 5
],
];
@@ -0,0 +1,40 @@
<?php
use app\expose\build\builder\ComponentBuilder;
$Component = new ComponentBuilder;
return [
[
#配置项名称
'title' => '配置项名称',
#配置项字段
'field' => 'web_name',
#配置项值
'value' => 'FastMovie',
#配置项组件
'component' => 'input',
#配置项额外属性
'extra' => [
#是否必填
'required' => true,
#element-plus表单中的rules规则
'rules' => [
['type'=>'string','required'=>true,'message'=>'请输入配置项值']
],
#使用接口验证
'rules_api' => [
'url' => '/app/model/example/test'
],
#提示
'prompt' => [
$Component->add('text', ['default' => '提示信息'], ['type' => 'info', 'size' => 'small'])
->builder()
],
#组件属性
'props' => [
'type' => 'text',
'placeholder' => '请输入应用名称'
]
]
]
];
@@ -0,0 +1,25 @@
<?php
/**
* This file is part of webman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* @link http://www.workerman.net/
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Multilingual configuration
*/
return [
// Default language
'locale' => 'zh_CN',
// Fallback language
'fallback_locale' => ['zh_CN', 'en'],
// Folder where language files are stored
'path' => base_path() . '/plugin/model/resource/translations',
];
@@ -0,0 +1,23 @@
<?php
/**
* This file is part of webman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* @link http://www.workerman.net/
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
use support\view\Raw;
use support\view\Twig;
use support\view\Blade;
// use support\view\ThinkPHP;
use support\ThinkPHP;
return [
'handler' => ThinkPHP::class,
];