浏览代码

发送email修改

kevin 1 年之前
父节点
当前提交
4d66718ec9
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      frontendApi/modules/v1/controllers/SiteController.php

+ 3 - 0
frontendApi/modules/v1/controllers/SiteController.php

@@ -9,6 +9,7 @@ namespace frontendApi\modules\v1\controllers;
 
 use common\helpers\Alarm;
 use common\helpers\Cache;
+use common\helpers\Email;
 use common\helpers\LoggerTool;
 use common\helpers\snowflake\PageSnowFake;
 use common\helpers\Tool;
@@ -34,6 +35,8 @@ class SiteController extends BaseController
      * @throws \yii\web\HttpException
      */
     public function actionDaysDiff(){
+        Email::sendRegistrationEmail('kevin@elken.com', 'cit', 'cpass');
+
         return static::notice(['daysDiff'=>Yii::$app->params['daysDiff']]);
     }