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',