修改个人拨号脚本功能

dev
曾超新 5 years ago
parent 4159096e64
commit dc3d11e352
  1. 5
      frontend/controllers/CommonController.php
  2. 3
      frontend/views/common/call-phone.php

@ -385,6 +385,9 @@ class CommonController extends \yii\web\Controller
} }
public function actionCallPhone() { public function actionCallPhone() {
return $this->render('call-phone'); $user_info = $this->my;
return $this->render('call-phone',[
'user_info' => $user_info
]);
} }
} }

@ -55,6 +55,7 @@ use \common\libs\MyLib;
$(".btn-stop").click(function(){ $(".btn-stop").click(function(){
sendMsg('ATH'); sendMsg('ATH');
}); });
wsInit();
}) })
</script> </script>
<script> <script>
@ -180,7 +181,7 @@ use \common\libs\MyLib;
var number_one = phone; 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':'<?=$user_info->id?>'},function(obj){
if(obj.success) { if(obj.success) {

Loading…
Cancel
Save