过滤主叫号码

dev
曾超新 5 years ago
parent f7d9b14cf4
commit 42ee5be039
  1. 12
      frontend/controllers/PhoneController.php

@ -276,17 +276,11 @@ class PhoneController extends \yii\web\Controller
$called_area=$request->post('called_area');
$extend=$request->post('extend');
$main_phones = [
'18513850391',
'18519337729',
'18612268781',
'18510510793',
'18612263823'
];
if(!in_array($caller,$main_phones)) {
$item = NetworkPhoneAssignT::findOne(['phone'=>$caller]);
if(!$item) {
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();
$network_phone = NetworkPhoneT::findOne(['recorder_id'=>$recorder_id,'caller'=>$caller,'called'=>$called,'caller_show'=>$caller_show]);
if(!$network_phone){

Loading…
Cancel
Save