From e146660e6bb6fc663cd02f3d8e327d87ee0fa715 Mon Sep 17 00:00:00 2001 From: zhaocheng <578322713@qq.com> Date: Sat, 18 Apr 2020 15:10:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/PhoneController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/controllers/PhoneController.php b/frontend/controllers/PhoneController.php index f6a05a8..932c2f1 100644 --- a/frontend/controllers/PhoneController.php +++ b/frontend/controllers/PhoneController.php @@ -1017,14 +1017,13 @@ class PhoneController extends \yii\web\Controller $result['msg'] = '该账号无绑定主叫号码'; return $result; } - $sub_infos = NetworkPhoneSubT::find()->where('assign_id='.$assign->id)->indexBy('id')->asArray()->all();; + $sub_infos = NetworkPhoneSubT::find()->where('assign_id='.$assign->id)->asArray()->all();; $count = count($sub_infos); if($count <= 0){ $result['msg'] = '该主叫号码无绑定子号码'; return $result; } -// $tel_x = $tel_y = $sub_infos[mt_rand(0,$count-1)]['phone']; - $tel_x = $tel_y = 18514099334; + $tel_x = $tel_y = $sub_infos[mt_rand(0,$count-1)]['phone']; $params = [ 'appkey' => '0946239060682011',