فهرست منبع

feat: NG-28: 会员注册成功后,自动发送邮件给会员

kevin 1 سال پیش
والد
کامیت
5971d9c862

+ 1 - 1
common/messages/zh-CN/app.php

@@ -322,7 +322,7 @@ return [
         使用下面提供的链接登录您的后台办公室<br /><br />
         https://ngds.elken.com/#/login?redirect=%2Fdashboard%2Findex#<br /><br />
         <span style='font-weight: bold;'>用户名</span> = {userName}<br /><br />
-        密 码 = {passWord}<br /><br />
+        <span style='font-weight: bold;'>密 码</span> = {passWord}<br /><br />
         我们建议您将密码更改为您容易记住的密码。<br /><br />
         如需进一步查询,请随时联系 +23480 3413 0554<br /><br />
         我们致力于确保您成功。<br /><br />

+ 4 - 0
common/models/forms/ApproachDeclarationForm.php

@@ -4,6 +4,7 @@ namespace common\models\forms;
 use common\components\Model;
 use common\helpers\Cache;
 use common\helpers\Date;
+use common\helpers\Email;
 use common\helpers\Form;
 use common\helpers\LoggerTool;
 use common\helpers\user\Cash;
@@ -800,6 +801,9 @@ class ApproachDeclarationForm extends Model
             return false;
         }
         if($result = $userForm->add()){
+            // 发送邮件
+            Email::sendRegistrationEmail($this->email, $this->insertUserName, $this->password);
+
             return $result;
         } else {
             return false;

+ 0 - 2
frontendApi/modules/v1/controllers/DashboardController.php

@@ -120,8 +120,6 @@ class DashboardController extends BaseController
         $activeEndStr = $activeEndStr. " + $remainMonth months";
         $activeEnd = date("Y-m-d H:i:s", strtotime($activeEndStr));
 
-        Email::sendRegistrationEmail('kevin@elken.com', 'cit', 'cpass');
-
         return static::notice([
             'nowTime' => $nowTime,
             'empLv'=>$empLv,