|
|
@ -276,6 +276,16 @@ class PhoneController extends \yii\web\Controller |
|
|
|
$called_area=$request->post('called_area'); |
|
|
|
$called_area=$request->post('called_area'); |
|
|
|
$extend=$request->post('extend'); |
|
|
|
$extend=$request->post('extend'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$main_phones = [ |
|
|
|
|
|
|
|
'18513850391', |
|
|
|
|
|
|
|
'18519337729', |
|
|
|
|
|
|
|
'18612268781', |
|
|
|
|
|
|
|
'18510510793', |
|
|
|
|
|
|
|
'18612263823' |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
if(!in_array($called,$main_phones)) { |
|
|
|
|
|
|
|
return json_encode(['code' => 400,'message' => "失败"]);; |
|
|
|
|
|
|
|
} |
|
|
|
file_put_contents('/tmp/'.time().rand(100,999).'.log', print_r($request->post(), true)); |
|
|
|
file_put_contents('/tmp/'.time().rand(100,999).'.log', print_r($request->post(), true)); |
|
|
|
//$b = new GiftCreateImageErrorT(); |
|
|
|
//$b = new GiftCreateImageErrorT(); |
|
|
|
$network_phone = NetworkPhoneT::findOne(['recorder_id'=>$recorder_id,'caller'=>$caller,'called'=>$called,'caller_show'=>$caller_show]); |
|
|
|
$network_phone = NetworkPhoneT::findOne(['recorder_id'=>$recorder_id,'caller'=>$caller,'called'=>$called,'caller_show'=>$caller_show]); |
|
|
|