|
|
@@ -7,6 +7,7 @@
|
|
|
*/
|
|
|
namespace frontendApi\modules\v1\controllers;
|
|
|
|
|
|
+use common\helpers\Alarm;
|
|
|
use common\helpers\Cache;
|
|
|
use common\helpers\snowflake\PageSnowFake;
|
|
|
use common\models\Ad;
|
|
|
@@ -18,6 +19,7 @@ use Yii;
|
|
|
use frontendApi\modules\v1\models\User;
|
|
|
|
|
|
use common\helpers\parsedown\Parsedown;
|
|
|
+use yii\web\HttpException;
|
|
|
|
|
|
class SiteController extends BaseController
|
|
|
{
|
|
|
@@ -286,4 +288,19 @@ class SiteController extends BaseController
|
|
|
|
|
|
return static::notice(['data' => $data['bug监控正常运行,没有发现异常,奥利给!']]);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @throws HttpException
|
|
|
+ * @throws \Exception
|
|
|
+ */
|
|
|
+ public function actionSendNotify()
|
|
|
+ {
|
|
|
+ Alarm::reportAlarm([
|
|
|
+ 'stance' => 1,
|
|
|
+ 'brand' => 'OTA',
|
|
|
+ 'message' => '预警信息测试',
|
|
|
+ ]);
|
|
|
+
|
|
|
+ return static::notice('成功', 0);
|
|
|
+ }
|
|
|
}
|