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,15 @@
<?php
namespace plugin\user\api;
use plugin\control\expose\api\Control as ApiControl;
class Control
{
use ApiControl;
public function __construct()
{
$this->path = __DIR__;
$this->plugin = 'user';
}
}
@@ -0,0 +1,15 @@
<?php
namespace plugin\user\api;
use app\expose\api\Install as ApiInstall;
class Install
{
use ApiInstall;
public function __construct()
{
$this->plugin='user';
$this->path = __DIR__;
}
}
@@ -0,0 +1,32 @@
<?php
namespace plugin\user\api\admin;
use app\expose\build\builder\DataboardBuilder;
use app\expose\build\builder\databoardBuilder\component\Statistic;
use plugin\user\app\model\PluginUser;
class IndexController
{
public function control(DataboardBuilder $builder)
{
$today = PluginUser::whereDay('create_time')->count();
$yesterday = PluginUser::whereDay('create_time', 'yesterday')->count();
$statistic = new Statistic;
$statistic->setLabel('今日新注册用户')
->setUnit('人')
->setData([
'today' => $today,
'yesterday' => $yesterday,
'growth_rate' => $yesterday ? round(($today - $yesterday) / $yesterday * 100, 2) : 0
])
->setClass('p-6');
$builder->add($statistic, [
'xs' => 24,
'sm' => 12,
'md' => 6,
'lg' => 4,
'class' => 'bg-white p-4 rounded-4 shadow-lighter'
]);
}
}