Files
CompanyProject/滴滴淘/diditao/config/app_setting.php
2024-09-27 01:32:49 +08:00

57 lines
1.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
return [
'app_name'=>'滴滴淘',
'platform_id'=>1,
'sms'=>[
'sign'=>'滴滴淘',
//单个场景的每日限制
'day_limit'=>10,
//单个场景的三分钟限制
'three_minutes_limit'=>3,
'template'=>[
1=>'您的短信验证码为:{code},有效期15分钟',//注册
2=>'您的短信验证码为:{code},您正在进行密码重置操作验证码有效期15分钟',//重置密码
3=>'您的短信验证码为:{code},您正在进行登录操作有效期15分钟',//验证码登录
],
'scene'=>[
'reg'=>1,//注册
'resetPassword'=>2,//重置密码
'codeLogin'=>3//验证码登录
]
],
'token'=>[
//token名称 string
'token_name'=>'authorization',
//token secret token私钥,
'token_secret'=>'liuqian.dev',
//token 前缀 ,
'token_prefix'=>'token_',
//token加密方式
'token_alg'=>'HS256',
//token发布者一般填写网站域名
'token_iss'=>'liuqian.dev',
//token默认有效期默认为8*60*60
'token_lifetime'=>28800,
],
'public_path'=>[
'Test/index',
'Login/index',
'Login/reg',
'Login/forget',
'Api/getSmsCode'
],
'image_host'=>'https://diditao-1253647822.cos.ap-beijing.myqcloud.com',
'cors'=>[
'optionOrigin'=>[ //允许来路
'*', //允许域名来路
// 'www.baidu.com'
],
'optionMethods'=>[ //请求方式
'*', //允许所有请求方式
// 'GET'
],
'optionHeader'=>[ //允许请求中携带的header的nametoken_name自动允许
'agentid'
]
]
];