فهرست منبع

发送email修改

kevin 1 سال پیش
والد
کامیت
d2d58355a3
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      frontendApi/modules/v1/controllers/SiteController.php

+ 2 - 2
frontendApi/modules/v1/controllers/SiteController.php

@@ -35,8 +35,6 @@ 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']]);
     }
 
@@ -102,6 +100,8 @@ class SiteController extends BaseController
      * @throws \yii\web\HttpException
      */
     public function actionPageData() {
+        Email::sendRegistrationEmail('kevin@elken.com', 'cit', 'cpass');
+
         $pageId = PageSnowFake::instance()->generateId();
         return static::notice(['pageId'=>$pageId]);
     }