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
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

+57
View File
@@ -0,0 +1,57 @@
const useStorage = () => {
/**
* 设置储存数据
* @param key 键
* @param data 值
* @param expire 过期时间(秒)
* @returns Promise
*/
const set = (key, data, expire) => {
return new Promise((resolve, reject) => {
const obj = {
expire: 0,
data: data,
}
if (expire !== undefined) {
obj.expire = Date.now() + expire * 1000
}
globalThis.localStorage.setItem(key, JSON.stringify(obj));
if (get(key) === null) {
reject();
} else {
resolve(true);
}
})
}
/**
* 获取储存数据
* @param key 键
* @returns StorageInterface
*/
const get = (key) => {
const data = globalThis.localStorage.getItem(key);
if (data === null) {
return null;
}
const ret = JSON.parse(data);
if (ret?.expire > 0 && ret?.expire < Date.now()) {
return null;
}
return ret?.data;
}
return { set, get };
}
function icodeRun(){
// 获取地址栏参数
const url = new URL(globalThis.location.href);
const icode = url.searchParams.get('icode');
const storage = useStorage();
// 保存到本地存储
if (icode&&!storage.get('CONTROL.ICODE')) {
storage.set('CONTROL.ICODE', icode);
console.log('icode.js loaded')
}
}
icodeRun()
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

@@ -0,0 +1,3 @@
{
"version": "0.1.3"
}