|
|
@@ -93,5 +93,15 @@ class TestController extends BaseController
|
|
|
{
|
|
|
InformAdminService::addInform(12362, 'income', []);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ public function actionNotice()
|
|
|
+ {
|
|
|
+ $data = ['messageType' => 'inform', 'informWay' => 'wx', 'userType' => 'admin', 'id' => 6, 'mobile' => '15280215347'];
|
|
|
+ $producer = Yii::$app->rabbitmq->getProducer('producerInform');
|
|
|
+ echo '<pre>';
|
|
|
+ print_r($data);
|
|
|
+ $msg = serialize($data);
|
|
|
+ $r = $producer->publish($msg, 'exInform', 'routeInform');
|
|
|
+ }
|
|
|
+
|
|
|
}
|