From 96238e8ecc1f5606425b9bd0e6cd50b53d1731c5 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Mon, 14 Oct 2019 16:46:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG?= 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 eac2db9..5004b5a 100644 --- a/frontend/controllers/CommonController.php +++ b/frontend/controllers/CommonController.php @@ -383,6 +383,9 @@ class CommonController extends \yii\web\Controller } public function actionCallPhone() { - return $this->render('call-phone'); + $user_id = $this->my->id; + return $this->render('call-phone',[ + 'user_id' => $user_id + ]); } } diff --git a/frontend/views/common/call-phone.php b/frontend/views/common/call-phone.php index c1f50fc..8a3c661 100644 --- a/frontend/views/common/call-phone.php +++ b/frontend/views/common/call-phone.php @@ -181,7 +181,7 @@ use \common\libs\MyLib; var number_one = phone; - $.get('/phone/ax-out',{'phone':number_one,'user_id':'id?>'},function(obj){ + $.get('/phone/ax-out',{'phone':number_one,'user_id':''},function(obj){ if(obj.success) {