规范登录账号的格式,新增api请求接口操作日志。
This commit is contained in:
parent
33b581dcdc
commit
5a6650928a
39
config/captcha.php
Normal file
39
config/captcha.php
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<?php
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | Captcha配置文件
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
|
return [
|
||||||
|
//验证码位数
|
||||||
|
'length' => 5,
|
||||||
|
// 验证码字符集合
|
||||||
|
'codeSet' => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY',
|
||||||
|
// 验证码过期时间
|
||||||
|
'expire' => 1800,
|
||||||
|
// 是否使用中文验证码
|
||||||
|
'useZh' => false,
|
||||||
|
// 是否使用算术验证码
|
||||||
|
'math' => false,
|
||||||
|
// 是否使用背景图
|
||||||
|
'useImgBg' => false,
|
||||||
|
//验证码字符大小
|
||||||
|
'fontSize' => 25,
|
||||||
|
// 是否使用混淆曲线
|
||||||
|
'useCurve' => true,
|
||||||
|
//是否添加杂点
|
||||||
|
'useNoise' => true,
|
||||||
|
// 验证码字体 不设置则随机
|
||||||
|
'fontttf' => '',
|
||||||
|
//背景颜色
|
||||||
|
'bg' => [243, 251, 254],
|
||||||
|
// 验证码图片高度
|
||||||
|
'imageH' => 0,
|
||||||
|
// 验证码图片宽度
|
||||||
|
'imageW' => 0,
|
||||||
|
|
||||||
|
// 添加额外的验证码设置
|
||||||
|
// verify => [
|
||||||
|
// 'length'=>4,
|
||||||
|
// ...
|
||||||
|
//],
|
||||||
|
];
|
10
config/trace.php
Normal file
10
config/trace.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | Trace设置 开启调试模式后有效
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
return [
|
||||||
|
// 内置Html和Console两种方式 支持扩展
|
||||||
|
'type' => 'Html',
|
||||||
|
// 读取的日志通道名
|
||||||
|
'channel' => '',
|
||||||
|
];
|
Loading…
x
Reference in New Issue
Block a user