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) {