From 8537ab56772fc4cf5c5809ee7b1b8d95707801e9 Mon Sep 17 00:00:00 2001 From: gaoyi Date: Sat, 24 Jun 2017 17:35:21 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E9=94=99=E5=88=AB=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/backend/general/configvalue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/assets/js/backend/general/configvalue.js b/public/assets/js/backend/general/configvalue.js index 00d36445b..960a487dd 100755 --- a/public/assets/js/backend/general/configvalue.js +++ b/public/assets/js/backend/general/configvalue.js @@ -35,7 +35,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin // 为表格绑定事件 Table.api.bindevent(table); - // 清楚缓存 + // 清除缓存 $(document).on("click", ".btn-clear-cache", function (e) { Backend.api.layer.confirm(__("Are you sure you want to clear cache?"), function () { Backend.api.ajax({ -- Gitee From 6295adf693119b524228de3205a46cba30fc8b8c Mon Sep 17 00:00:00 2001 From: gaoyi Date: Sat, 24 Jun 2017 17:37:45 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E8=84=9A?= =?UTF-8?q?=E5=A4=87=E6=A1=88=E4=B8=BA=E7=B3=BB=E7=BB=9F=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/view/layout/bootstrap.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/index/view/layout/bootstrap.html b/application/index/view/layout/bootstrap.html index 71509bb0a..977f65157 100644 --- a/application/index/view/layout/bootstrap.html +++ b/application/index/view/layout/bootstrap.html @@ -94,7 +94,7 @@

- 粤ICP备15054802号-4 + {$site.beian}{$site.mail_smtp_host}

-- Gitee From 13a2500b0509c5319030ee91da722f1153f7f2ef Mon Sep 17 00:00:00 2001 From: gaoyi Date: Sat, 24 Jun 2017 17:42:15 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E9=80=81?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/command/Install/fastadmin.sql | 2 +- .../admin/controller/general/Config.php | 16 ++++ application/common/controller/Email.php | 88 +++++++++++++++++++ application/extra/site.php | 9 +- composer.json | 3 +- public/assets/js/backend/general/config.js | 13 +++ 6 files changed, 128 insertions(+), 3 deletions(-) create mode 100644 application/common/controller/Email.php diff --git a/application/admin/command/Install/fastadmin.sql b/application/admin/command/Install/fastadmin.sql index 8678d5710..1e8471ca8 100755 --- a/application/admin/command/Install/fastadmin.sql +++ b/application/admin/command/Install/fastadmin.sql @@ -227,7 +227,7 @@ CREATE TABLE `fa_config` ( -- Records of `fa_config` -- ---------------------------- BEGIN; -INSERT INTO `fa_config` VALUES ('1', 'name', 'basic', '站点名称', '请填写站点名称', 'string', 'FastAdmin', '', 'required', ''), ('2', 'beian', 'basic', '备案号', '', 'string', '', '', '', ''), ('3', 'cdnurl', 'basic', 'CDN地址', '如果使用CDN云储存请配置该值', 'string', '', '', '', ''), ('4', 'version', 'basic', '版本号', '如果静态资源有变动请重新配置该值', 'string', '1.0.1', '', 'required', ''), ('5', 'timezone', 'basic', '时区', '', 'string', 'Asia/Shanghai', '', 'required', ''), ('6', 'forbiddenip', 'basic', '禁止访问IP', '一行一条记录', 'text', '', '', '', ''), ('7', 'languages', 'basic', '模块语言', '', 'array', '{\"backend\":\"zh-cn\",\"frontend\":\"zh-cn\"}', '', 'required', ''), ('8', 'fixedpage', 'basic', '后台默认页', '请尽量输入左侧菜单栏存在的链接', 'string', 'dashboard', '', 'required', ''), ('9', 'categorytype', 'dictionary', '分类类型', '', 'array', '{\"default\":\"默认\",\"page\":\"单页\",\"article\":\"文章\",\"test\":\"测试\"}', '', '', ''), ('10', 'configgroup', 'dictionary', '配置分组', '', 'array', '{\"basic\":\"基础配置\",\"email\":\"邮件配置\",\"dictionary\":\"字典配置\",\"user\":\"会员配置\",\"example\":\"示例分组\"}', '', '', ''); +INSERT INTO `fa_config` VALUES ('1', 'name', 'basic', '站点名称', '请填写站点名称', 'string', 'FastAdmin', '', 'required', ''), ('2', 'beian', 'basic', '备案号', '', 'string', '', '', '', ''), ('3', 'cdnurl', 'basic', 'CDN地址', '如果使用CDN云储存请配置该值', 'string', '', '', '', ''), ('4', 'version', 'basic', '版本号', '如果静态资源有变动请重新配置该值', 'string', '1.0.1', '', 'required', ''), ('5', 'timezone', 'basic', '时区', '', 'string', 'Asia/Shanghai', '', 'required', ''), ('6', 'forbiddenip', 'basic', '禁止访问IP', '一行一条记录', 'text', '', '', '', ''), ('7', 'languages', 'basic', '模块语言', '', 'array', '{\"backend\":\"zh-cn\",\"frontend\":\"zh-cn\"}', '', 'required', ''), ('8', 'fixedpage', 'basic', '后台默认页', '请尽量输入左侧菜单栏存在的链接', 'string', 'dashboard', '', 'required', ''), ('9', 'categorytype', 'dictionary', '分类类型', '', 'array', '{\"default\":\"默认\",\"page\":\"单页\",\"article\":\"文章\",\"test\":\"测试\"}', '', '', ''), ('10', 'configgroup', 'dictionary', '配置分组', '', 'array', '{\"basic\":\"基础配置\",\"email\":\"邮件配置\",\"dictionary\":\"字典配置\",\"user\":\"会员配置\",\"example\":\"示例分组\"}', '', '', ''),('11','mail_type','email','邮件发送方式','选择邮件发送方式','select','1','[\"请选择\",\"SMTP\",\"mail()函数\"]','',''),('12','mail_smtp_host','email','SMTP[服务器]','错误的配置发送邮件会导致服务器超时','string','smtp.qq.com','','',''),('13','mail_smtp_port','email','SMTP[端口]','(不加密默认25,SSL默认465,TLS默认587)','string','465','','',''),('14','mail_smtp_user','email','SMTP[用户名]','(填写完整用户名)','string','10000','','',''),('15','mail_smtp_pass','email','SMTP[密码]','(填写您的密码)','string','password','','',''),('16','mail_verify_type','email','SMTP验证方式','(SMTP验证方式[推荐SSL])','select','2','[\"无\",\"TLS\",\"SSL\"]','',''),('17','mail_from','email','发件人邮箱','','string','10000@qq.com','','',''); COMMIT; -- ---------------------------- diff --git a/application/admin/controller/general/Config.php b/application/admin/controller/general/Config.php index 7cd41cbb1..8c76335bb 100644 --- a/application/admin/controller/general/Config.php +++ b/application/admin/controller/general/Config.php @@ -3,6 +3,7 @@ namespace app\admin\controller\general; use app\common\controller\Backend; +use app\common\controller\Email; /** * 系统配置 @@ -233,4 +234,19 @@ class Config extends Backend } } + + public function emailtest() + { + $content = '
这是一封测试邮件,用于测试邮件配置是否正常!
'; + + $email = new Email; + $mailArr = Array(); + $mailArr['mTo'] = '168128864@qq.com'; //收件人 + $mailArr['subject'] = '这是一封测试邮件'; //邮件主题 + $mailArr['content'] = $content; //邮件内容(html) + $mailArr['fromNic'] = 'Fastadmin系统邮件'; //发件人昵称[可省略] + $mailArr['toNic'] = '亲爱的用户'; //收件人昵称[可省略] + $data = $email->sendMail($mailArr['mTo'],$mailArr['subject'],$mailArr['content'],$mailArr['fromNic'],$mailArr['toNic']); + return json(['data'=>$data,'code'=>200,'message'=>'操作完成']); + } } diff --git a/application/common/controller/Email.php b/application/common/controller/Email.php new file mode 100644 index 000000000..d12cf413b --- /dev/null +++ b/application/common/controller/Email.php @@ -0,0 +1,88 @@ +SMTPDebug = 3; // Enable verbose debug output + $mail->isSMTP(); //smtp需要鉴权 这个必须是true + $mail->Host = $site['mail_smtp_host']; //SMTP服务器地址 + $mail->SMTPAuth = true; // Enable SMTP authentication + $mail->Username = $site['mail_smtp_user']; // SMTP 用戶名 + $mail->Password = $site['mail_smtp_pass']; // SMTP 密碼 + switch ($site['mail_verify_type']) // Enable TLS encryption, `ssl` also accepted + { + case 1: + $mail->SMTPSecure = 'tls'; + break; + case 2: + $mail->SMTPSecure = 'ssl'; + break; + default: + $mail->SMTPSecure = ''; + } + $mail->Port = $site['mail_smtp_port']; // 设置ssl连接smtp服务器的远程服务器端口号 + $mail->setFrom($site['mail_from'], $fromNic); // [发件人],[昵称(可选)] + $mail->addAddress($mTo, $toNic); // [收件人],[昵称(可选)] + //$mail->addReplyTo('xxxxxx@qq.com', 'Information'); // 回复地址(可选) + //$mail->addCC('xxxxxx@qq.com'); //好像是密送 + //$mail->addBCC('xxxxxx@qq.com'); //好像是密送B + // $mail->addAttachment('/var/tmp/file.tar.gz'); // 添加附件 + // $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // 附件名选项 + $mail->isHTML(true); //邮件正文是否为html编码 + $mail->Subject = $subject; //添加邮件主题 + $mail->Body = $content; //邮件正文 + //$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';//附加信息,可以省略 + + switch ($site['mail_type']) + { + case 1: + if(!$mail->send()) {//这里如果提交错误的smpt配置PHPmailer会卡住暂时不清楚为什么 + $sendResult['text'] = $mail->ErrorInfo; + $sendResult['data'] = false; + return $sendResult; + } else { + $sendResult['text'] ='smtp发送成功'; + $sendResult['data'] = true; + return $sendResult; + } + break; + case 2://使用mail方法发送邮件 + $headers = 'MIME-Version: 1.0' . "\r\n"; + $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; + $headers .= 'To: '.$toNic.' <'.$mTo.'>' . "\r\n";//收件人 + $headers .= 'From: '.$fromNic.' <'.$site['mail_from'].'>' . "\r\n";//发件人 + $sendResult['data'] = mail($mTo, $subject, $content, $headers); + if ($sendResult['data']) { + $sendResult['text'] ='mail函数发送成功'; + }else{ + $sendResult['text'] ='mail函数发送失败'; + } + return $sendResult; + break; + default: + $sendResult['data'] = false; + $sendResult['text'] ='已关闭邮件发送'; + return $sendResult; + } + } +} diff --git a/application/extra/site.php b/application/extra/site.php index 1f44948c3..26b56c058 100644 --- a/application/extra/site.php +++ b/application/extra/site.php @@ -2,7 +2,7 @@ return array ( 'name' => 'FastAdmin', - 'beian' => '', + 'beian' => '粤ICP备15054802号-4', 'cdnurl' => '', 'version' => '1.0.1', 'timezone' => 'Asia/Shanghai', @@ -28,4 +28,11 @@ return array ( 'user' => '会员配置', 'example' => '示例分组', ), + 'mail_type' => '1', + 'mail_smtp_host' => 'smtp.qq.com', + 'mail_smtp_port' => '465', + 'mail_smtp_user' => '10000', + 'mail_smtp_pass' => 'password', + 'mail_verify_type' => '2', + 'mail_from' => '10000@qq.com', ); \ No newline at end of file diff --git a/composer.json b/composer.json index ce9927573..68d66cbe0 100755 --- a/composer.json +++ b/composer.json @@ -20,7 +20,8 @@ "overtrue/wechat": "~3.1", "endroid/qrcode": "^1.9", "topthink/think-captcha": "^1.0", - "mtdowling/cron-expression": "^1.2" + "mtdowling/cron-expression": "^1.2", + "phpmailer/phpmailer": "^5.2" }, "config": { "preferred-install": "dist" diff --git a/public/assets/js/backend/general/config.js b/public/assets/js/backend/general/config.js index ed9197822..4b893811e 100644 --- a/public/assets/js/backend/general/config.js +++ b/public/assets/js/backend/general/config.js @@ -76,6 +76,19 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin $(document).on("change", "form#add-form select[name='row[type]']", function (e) { $("#add-content-container").toggleClass("hide", ['select', 'selects', 'checkbox', 'radio'].indexOf($(this).val()) > -1 ? false : true); }); + + //添加向发件人发送测试邮件按钮和方法 + testMail = '向发件人发送测试邮件' + $('input[name="row[mail_from]"]').parent().next().append(testMail); + $(document).on("click", ".testmail",function(){ + $.get("/admin/general.config/emailtest", function(result){ + if (result.data.data) { + Toastr.success(result.data.text) + }else{ + Toastr.warning(result.data.text) + } + }); + }) }, add: function () { Controller.api.bindevent(); -- Gitee From f24f1d8f434fa375a51256cfc64b6d73b4c35e18 Mon Sep 17 00:00:00 2001 From: gaoyi Date: Sat, 24 Jun 2017 18:17:14 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E8=84=9A?= =?UTF-8?q?=E5=A4=87=E6=A1=88=E4=B8=BA=E7=B3=BB=E7=BB=9F=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/view/layout/bootstrap.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/index/view/layout/bootstrap.html b/application/index/view/layout/bootstrap.html index 977f65157..f56dbb6c4 100644 --- a/application/index/view/layout/bootstrap.html +++ b/application/index/view/layout/bootstrap.html @@ -94,7 +94,7 @@

- {$site.beian}{$site.mail_smtp_host} + {$site.beian}

-- Gitee From 320e8e82eb0434d6d56b30b0ab3768ea15b795fe Mon Sep 17 00:00:00 2001 From: gaoyi Date: Sat, 24 Jun 2017 22:18:18 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=82=AE=E4=BB=B6=E5=8F=91=E9=80=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/general/Config.php | 10 ++++++---- application/common/{controller => library}/Email.php | 6 ++---- application/extra/site.php | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) rename application/common/{controller => library}/Email.php (97%) diff --git a/application/admin/controller/general/Config.php b/application/admin/controller/general/Config.php index 8c76335bb..618bb3a64 100644 --- a/application/admin/controller/general/Config.php +++ b/application/admin/controller/general/Config.php @@ -1,9 +1,10 @@ 这是一封测试邮件,用于测试邮件配置是否正常!'; + $site = tpConfig::get("site"); $email = new Email; $mailArr = Array(); - $mailArr['mTo'] = '168128864@qq.com'; //收件人 + $mailArr['mTo'] = $site['mail_from']; //收件人 $mailArr['subject'] = '这是一封测试邮件'; //邮件主题 $mailArr['content'] = $content; //邮件内容(html) $mailArr['fromNic'] = 'Fastadmin系统邮件'; //发件人昵称[可省略] - $mailArr['toNic'] = '亲爱的用户'; //收件人昵称[可省略] + $mailArr['toNic'] = '亲爱的用户'; //收件人昵称[可省略]貌似无效 $data = $email->sendMail($mailArr['mTo'],$mailArr['subject'],$mailArr['content'],$mailArr['fromNic'],$mailArr['toNic']); return json(['data'=>$data,'code'=>200,'message'=>'操作完成']); } diff --git a/application/common/controller/Email.php b/application/common/library/Email.php similarity index 97% rename from application/common/controller/Email.php rename to application/common/library/Email.php index d12cf413b..e60ddaddd 100644 --- a/application/common/controller/Email.php +++ b/application/common/library/Email.php @@ -1,12 +1,10 @@ 'FastAdmin', - 'beian' => '粤ICP备15054802号-4', + 'beian' => '', 'cdnurl' => '', 'version' => '1.0.1', 'timezone' => 'Asia/Shanghai', @@ -31,8 +31,8 @@ return array ( 'mail_type' => '1', 'mail_smtp_host' => 'smtp.qq.com', 'mail_smtp_port' => '465', - 'mail_smtp_user' => '10000', - 'mail_smtp_pass' => 'password', + 'mail_smtp_user' => '168128864', + 'mail_smtp_pass' => 'pzufyihnzrrjbhfb', 'mail_verify_type' => '2', - 'mail_from' => '10000@qq.com', + 'mail_from' => '168128864@qq.com', ); \ No newline at end of file -- Gitee From ffd780cfb3f1ddd946d2450617c671bfbdfc551d Mon Sep 17 00:00:00 2001 From: gaoyi Date: Sat, 24 Jun 2017 22:23:55 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=82=AE=E4=BB=B6=E5=8F=91=E9=80=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/command/Install/fastadmin.sql | 2 +- application/extra/site.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/admin/command/Install/fastadmin.sql b/application/admin/command/Install/fastadmin.sql index 1e8471ca8..12469c959 100755 --- a/application/admin/command/Install/fastadmin.sql +++ b/application/admin/command/Install/fastadmin.sql @@ -227,7 +227,7 @@ CREATE TABLE `fa_config` ( -- Records of `fa_config` -- ---------------------------- BEGIN; -INSERT INTO `fa_config` VALUES ('1', 'name', 'basic', '站点名称', '请填写站点名称', 'string', 'FastAdmin', '', 'required', ''), ('2', 'beian', 'basic', '备案号', '', 'string', '', '', '', ''), ('3', 'cdnurl', 'basic', 'CDN地址', '如果使用CDN云储存请配置该值', 'string', '', '', '', ''), ('4', 'version', 'basic', '版本号', '如果静态资源有变动请重新配置该值', 'string', '1.0.1', '', 'required', ''), ('5', 'timezone', 'basic', '时区', '', 'string', 'Asia/Shanghai', '', 'required', ''), ('6', 'forbiddenip', 'basic', '禁止访问IP', '一行一条记录', 'text', '', '', '', ''), ('7', 'languages', 'basic', '模块语言', '', 'array', '{\"backend\":\"zh-cn\",\"frontend\":\"zh-cn\"}', '', 'required', ''), ('8', 'fixedpage', 'basic', '后台默认页', '请尽量输入左侧菜单栏存在的链接', 'string', 'dashboard', '', 'required', ''), ('9', 'categorytype', 'dictionary', '分类类型', '', 'array', '{\"default\":\"默认\",\"page\":\"单页\",\"article\":\"文章\",\"test\":\"测试\"}', '', '', ''), ('10', 'configgroup', 'dictionary', '配置分组', '', 'array', '{\"basic\":\"基础配置\",\"email\":\"邮件配置\",\"dictionary\":\"字典配置\",\"user\":\"会员配置\",\"example\":\"示例分组\"}', '', '', ''),('11','mail_type','email','邮件发送方式','选择邮件发送方式','select','1','[\"请选择\",\"SMTP\",\"mail()函数\"]','',''),('12','mail_smtp_host','email','SMTP[服务器]','错误的配置发送邮件会导致服务器超时','string','smtp.qq.com','','',''),('13','mail_smtp_port','email','SMTP[端口]','(不加密默认25,SSL默认465,TLS默认587)','string','465','','',''),('14','mail_smtp_user','email','SMTP[用户名]','(填写完整用户名)','string','10000','','',''),('15','mail_smtp_pass','email','SMTP[密码]','(填写您的密码)','string','password','','',''),('16','mail_verify_type','email','SMTP验证方式','(SMTP验证方式[推荐SSL])','select','2','[\"无\",\"TLS\",\"SSL\"]','',''),('17','mail_from','email','发件人邮箱','','string','10000@qq.com','','',''); +INSERT INTO `fa_config` VALUES ('1', 'name', 'basic', '站点名称', '请填写站点名称', 'string', 'FastAdmin', '', 'required', ''), ('2', 'beian', 'basic', '备案号', '粤ICP备15054802号-4', 'string', '', '', '', ''), ('3', 'cdnurl', 'basic', 'CDN地址', '如果使用CDN云储存请配置该值', 'string', '', '', '', ''), ('4', 'version', 'basic', '版本号', '如果静态资源有变动请重新配置该值', 'string', '1.0.1', '', 'required', ''), ('5', 'timezone', 'basic', '时区', '', 'string', 'Asia/Shanghai', '', 'required', ''), ('6', 'forbiddenip', 'basic', '禁止访问IP', '一行一条记录', 'text', '', '', '', ''), ('7', 'languages', 'basic', '模块语言', '', 'array', '{\"backend\":\"zh-cn\",\"frontend\":\"zh-cn\"}', '', 'required', ''), ('8', 'fixedpage', 'basic', '后台默认页', '请尽量输入左侧菜单栏存在的链接', 'string', 'dashboard', '', 'required', ''), ('9', 'categorytype', 'dictionary', '分类类型', '', 'array', '{\"default\":\"默认\",\"page\":\"单页\",\"article\":\"文章\",\"test\":\"测试\"}', '', '', ''), ('10', 'configgroup', 'dictionary', '配置分组', '', 'array', '{\"basic\":\"基础配置\",\"email\":\"邮件配置\",\"dictionary\":\"字典配置\",\"user\":\"会员配置\",\"example\":\"示例分组\"}', '', '', ''),('11','mail_type','email','邮件发送方式','选择邮件发送方式','select','1','[\"请选择\",\"SMTP\",\"mail()函数\"]','',''),('12','mail_smtp_host','email','SMTP[服务器]','错误的配置发送邮件会导致服务器超时','string','smtp.qq.com','','',''),('13','mail_smtp_port','email','SMTP[端口]','(不加密默认25,SSL默认465,TLS默认587)','string','465','','',''),('14','mail_smtp_user','email','SMTP[用户名]','(填写完整用户名)','string','10000','','',''),('15','mail_smtp_pass','email','SMTP[密码]','(填写您的密码)','string','password','','',''),('16','mail_verify_type','email','SMTP验证方式','(SMTP验证方式[推荐SSL])','select','2','[\"无\",\"TLS\",\"SSL\"]','',''),('17','mail_from','email','发件人邮箱','','string','10000@qq.com','','',''); COMMIT; -- ---------------------------- diff --git a/application/extra/site.php b/application/extra/site.php index ec3a2748c..26b56c058 100644 --- a/application/extra/site.php +++ b/application/extra/site.php @@ -2,7 +2,7 @@ return array ( 'name' => 'FastAdmin', - 'beian' => '', + 'beian' => '粤ICP备15054802号-4', 'cdnurl' => '', 'version' => '1.0.1', 'timezone' => 'Asia/Shanghai', @@ -31,8 +31,8 @@ return array ( 'mail_type' => '1', 'mail_smtp_host' => 'smtp.qq.com', 'mail_smtp_port' => '465', - 'mail_smtp_user' => '168128864', - 'mail_smtp_pass' => 'pzufyihnzrrjbhfb', + 'mail_smtp_user' => '10000', + 'mail_smtp_pass' => 'password', 'mail_verify_type' => '2', - 'mail_from' => '168128864@qq.com', + 'mail_from' => '10000@qq.com', ); \ No newline at end of file -- Gitee