Commit 44b3818e authored by wangzhengwen's avatar wangzhengwen

sms code

parent 5c5ad100
......@@ -24,9 +24,9 @@ class Sms extends BaseController
$data = $request->param();
$code = str_pad(random_int(0, 999999), 6, '0', STR_PAD_LEFT);
// $code = str_pad(random_int(0, 999999), 6, '0', STR_PAD_LEFT);
$code = random_int(100000, 999999);
// halt($code);
$SMS = new SendSms();
$res = $SMS->aliyun_send($data['mobile'], $code);
......
......@@ -42,17 +42,25 @@ return [
'payment_task' => [
'type' => 'file',
'path' => runtime_path('log') . 'payment_task/', // 独立目录
'single' => true, // 单个文件(否则按日期分割)
'single' => false, // 单个文件(否则按日期分割)
'file_name' => 'task.log', // 固定文件名
'level' => ['info', 'error'], // 只记录 info 和 error
// 日志输出格式化
'format' => '[%s][%s] %s',
// 是否实时写入
'realtime_write' => false,
],
//
'project_task' => [
'type' => 'file',
'path' => runtime_path('log') . 'project_task/', // 独立目录
'single' => true, // 单个文件(否则按日期分割)
'single' => false, // 单个文件(否则按日期分割)
'file_name' => 'task.log', // 固定文件名
'level' => ['info', 'error'], // 只记录 info 和 error
// 日志输出格式化
'format' => '[%s][%s] %s',
// 是否实时写入
'realtime_write' => false,
],
],
];
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment