@ -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
]);
@ -181,7 +181,7 @@ use \common\libs\MyLib;
var number_one = phone;
$.get('/phone/ax-out',{'phone':number_one,'user_id':'<?=$my->id?>'},function(obj){
$.get('/phone/ax-out',{'phone':number_one,'user_id':'<?=$user_id?>'},function(obj){
if(obj.success) {