FastMovieAI 二开基线 v1.0 (完整源码)

This commit is contained in:
李建琦
2026-08-26 18:41:02 +08:00
parent fad7690c0c
commit d54584f70d
888 changed files with 105571 additions and 1 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/user/app/functions.php',
]
];
@@ -0,0 +1,2 @@
<?php
return new Webman\Container;
@@ -0,0 +1,16 @@
<?php
use app\expose\enum\EventName;
return [
EventName::WECHAT_OFFICIAL_ACCOUNT_SUBSCRLBE['value'] => [
[\plugin\user\event\WECHAT_OFFICIAL_ACCOUNT::class, 'subscribe']
],
EventName::WECHAT_OFFICIAL_ACCOUNT_UNSUBSCRLBE['value'] => [
[\plugin\user\event\WECHAT_OFFICIAL_ACCOUNT::class, 'unsubscribe']
],
EventName::USER_REGISTER['value'] => [
[\plugin\user\event\User::class, 'code'],
[\plugin\user\event\User::class, 'points'],
],
];
@@ -0,0 +1,5 @@
<?php
return [
'' => app\exception\Handler::class,
];
@@ -0,0 +1,20 @@
<?php
return [
'default' => [
'handlers' => [
[
'class' => Monolog\Handler\RotatingFileHandler::class,
'constructor' => [
runtime_path() . '/logs/user.log',
7,
\Monolog\Level::Debug,
],
'formatter' => [
'class' => Monolog\Formatter\LineFormatter::class,
'constructor' => [null, 'Y-m-d H:i:s', true],
],
]
],
],
];
@@ -0,0 +1,18 @@
<?php
return [
'' => [
app\expose\middleware\Platform::class
],
'admin' => [
app\expose\middleware\AdminAuth::class
],
'control' => [
plugin\control\expose\middleware\ControlAuth::class
],
'api' => [
plugin\control\expose\middleware\DomainMapping::class,
plugin\user\expose\middleware\UserAuth::class,
plugin\user\expose\middleware\Twofa::class,
]
];
@@ -0,0 +1,2 @@
<?php
return [];
@@ -0,0 +1,30 @@
<?php
use app\expose\build\builder\ComponentBuilder;
$Component = new ComponentBuilder;
return [
[
'title' => '变更站点付费比例',
'field' => 'site_change_fee_ratio',
'value' => 50,
'component' => 'input-number',
#配置项额外属性
'extra' => [
#是否必填
'required' => true,
#提示
'prompt' => [
$Component->add('text', ['default' => '当用户变更站点授权域名和IP时,编辑次数不足,需要支付的站点费用比例,范围0-100,默认50'], ['type' => 'info', 'size' => 'small'])
->builder()
],
'props' => [
'min' => 0,
'max' => 100,
'step' => 1,
'precision' => 0,
'controls' => false
]
]
]
];
@@ -0,0 +1,52 @@
<?php
use app\expose\build\builder\ComponentBuilder;
$Component = new ComponentBuilder;
return [
[
'title' => '注册邀请码数量',
'field' => 'register_invitation_code_num',
'value' => 4,
'component' => 'input-number',
'extra' => [
'required' => true,
'props' => [
'min' => 0,
'step' => 1,
'precision' => 0,
'controls' => false
]
]
],
[
'title' => '注册赠送积分',
'field' => 'register_give_points',
'value' => 100,
'component' => 'input-number',
'extra' => [
'required' => true,
'props' => [
'min' => 0,
'step' => 1,
'precision' => 0,
'controls' => false
]
]
],
[
'title' => '邀请奖励积分',
'field' => 'invite_reward_points',
'value' => 100,
'component' => 'input-number',
'extra' => [
'required' => true,
'props' => [
'min' => 0,
'step' => 1,
'precision' => 0,
'controls' => false
]
]
]
];
@@ -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/user/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,
];