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 fd7ae17..312b2ef 100644 --- a/frontend/views/common/call-phone.php +++ b/frontend/views/common/call-phone.php @@ -182,7 +182,7 @@ use \common\libs\MyLib; var number_one = phone; - $.get('/phone/ax-out',{'phone':number_one,'user_id':'1'},function(obj){ + $.get('/phone/ax-out',{'phone':number_one,'user_id':'id?>'},function(obj){ if(obj.success) {