|
|
@ -276,17 +276,11 @@ 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 = [ |
|
|
|
$item = NetworkPhoneAssignT::findOne(['phone'=>$caller]); |
|
|
|
'18513850391', |
|
|
|
if(!$item) { |
|
|
|
'18519337729', |
|
|
|
|
|
|
|
'18612268781', |
|
|
|
|
|
|
|
'18510510793', |
|
|
|
|
|
|
|
'18612263823' |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
if(!in_array($caller,$main_phones)) { |
|
|
|
|
|
|
|
return json_encode(['code' => 400,'message' => "失败"]);; |
|
|
|
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]); |
|
|
|
if(!$network_phone){ |
|
|
|
if(!$network_phone){ |
|
|
|