Forráskód Böngészése

发送email修改

kevin 1 éve
szülő
commit
4d66718ec9
1 módosított fájl, 3 hozzáadás és 0 törlés
  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']]);
     }