qifengyuze
zhaocheng 4 years ago
parent b4de272053
commit e146660e6b
  1. 5
      frontend/controllers/PhoneController.php

@ -1017,14 +1017,13 @@ class PhoneController extends \yii\web\Controller
$result['msg'] = '该账号无绑定主叫号码'; $result['msg'] = '该账号无绑定主叫号码';
return $result; 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); $count = count($sub_infos);
if($count <= 0){ if($count <= 0){
$result['msg'] = '该主叫号码无绑定子号码'; $result['msg'] = '该主叫号码无绑定子号码';
return $result; return $result;
} }
// $tel_x = $tel_y = $sub_infos[mt_rand(0,$count-1)]['phone']; $tel_x = $tel_y = $sub_infos[mt_rand(0,$count-1)]['phone'];
$tel_x = $tel_y = 18514099334;
$params = [ $params = [
'appkey' => '0946239060682011', 'appkey' => '0946239060682011',

Loading…
Cancel
Save