表单转发有奖

This commit is contained in:
mzl
2025-11-12 18:08:47 +08:00
parent 83749ff3fc
commit 774b8368ed
10 changed files with 5000 additions and 31 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
use support\Request;
return [
'debug' => true,
'debug' => getenv('DEBUG'),
'error_reporting' => E_ALL,
'default_timezone' => 'Asia/Shanghai',
'request_class' => Request::class,
+29
View File
@@ -0,0 +1,29 @@
<?php
return [
'default' => 'mysql',
'connections' => [
'mysql' => [
'driver' => 'mysql',
'host' => '127.0.0.1',
'port' => '3306',
'database' => 'your_database',
'username' => 'your_username',
'password' => 'your_password',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
'options' => [
PDO::ATTR_EMULATE_PREPARES => false, // Must be false for Swoole and Swow drivers.
],
'pool' => [
'max_connections' => 5,
'min_connections' => 1,
'wait_timeout' => 3,
'idle_timeout' => 60,
'heartbeat_interval' => 50,
],
],
],
];
+34
View File
@@ -0,0 +1,34 @@
<?php
// config/imap.php
return [
// IMAP 服务器连接字符串,包含端口、协议、SSL
'mailbox' => '{imap.feishu.cn:993/imap/ssl}INBOX',
'username' => 'info@borderlesscar.com',
'password' => 'ErkhUA629aocm7Bc',
// 最多拉取多少封邮件
'limit' => 5,
'per_page' => 20,
'batch_size'=> 100, // 可选:CLI 不传 -p 时使用
// stmp
'smtp' => [
'host' => 'smtp.feishu.cn',
'port' => 465,
'username' => 'info@magicbridgeauto.com',
'password' => 'ErkhUA629aocm7Bc',
'encryption' => 'ssl',
'from_address' => '',
'from_name' => ''
],
'smtp_xyh' => [
'host' => 'smtp.feishu.cn',
'port' => 465,
'username' => 'app@hnxinyouhe.com',
'password' => 'akyIUFJ6ihGGjI5h',
'encryption' => 'ssl',
'from_address' => 'app@hnxinyouhe.com',
'from_name' => '【XYH】'
],
];
+2 -2
View File
@@ -21,8 +21,8 @@ global $argv;
return [
'webman' => [
'handler' => Http::class,
'listen' => 'http://0.0.0.0:8787',
'count' => cpu_count() * 4,
'listen' => 'http://0.0.0.0:'.getenv('PROCESS_LISTEN'),
'count' => getenv('PROCESS_COUNT'),
'user' => '',
'group' => '',
'reusePort' => false,
+1 -1
View File
@@ -16,6 +16,6 @@ use Webman\Route;
Route::any('/form/{id}', [app\controller\IndexController::class, 'form']);