diff --git a/frontend/controllers/CommonController.php b/frontend/controllers/CommonController.php index 533e403..9f28501 100644 --- a/frontend/controllers/CommonController.php +++ b/frontend/controllers/CommonController.php @@ -385,6 +385,9 @@ class CommonController extends \yii\web\Controller } public function actionCallPhone() { - return $this->render('call-phone'); + $user_info = $this->my; + return $this->render('call-phone',[ + 'user_info' => $user_info + ]); } } diff --git a/frontend/views/common/call-phone.php b/frontend/views/common/call-phone.php index f5b9827..2c3bf1c 100644 --- a/frontend/views/common/call-phone.php +++ b/frontend/views/common/call-phone.php @@ -55,6 +55,7 @@ use \common\libs\MyLib; $(".btn-stop").click(function(){ sendMsg('ATH'); }); + wsInit(); })