diff --git a/frontend/controllers/PhoneController.php b/frontend/controllers/PhoneController.php index f49378f..ef60ca0 100644 --- a/frontend/controllers/PhoneController.php +++ b/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){