From 7f15ed0c00bfe90256a6935658f30f47ca008ebe Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Wed, 6 Nov 2019 15:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AEBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/CommonController.php | 5 ++++- frontend/views/common/call-phone.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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) {