From edf9fd795253d3e53b9b8cddefa6b7df3c0aad98 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Fri, 18 Oct 2019 03:04:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=B5=E8=AF=9D=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/PhoneController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/controllers/PhoneController.php b/frontend/controllers/PhoneController.php index 4c3ea26..e98dbba 100644 --- a/frontend/controllers/PhoneController.php +++ b/frontend/controllers/PhoneController.php @@ -278,7 +278,7 @@ class PhoneController extends \yii\web\Controller //$b = new GiftCreateImageErrorT(); - $network_phone = NetworkPhoneT::findOne(['recorder_id'=>$recorder_id]); + $network_phone = NetworkPhoneT::findOne(['recorder_id'=>$recorder_id,'caller'=>$caller,'called'=>$called,'caller_show'=>$caller_show]); if(!$network_phone){ $network_phone = new NetworkPhoneT(); @@ -295,6 +295,8 @@ class PhoneController extends \yii\web\Controller if($assign1){ $user_id = $assign1->user_id; $is_called = 1; + } else { + return json_encode(['code' => 0,'message' => "成功"]); } } $network_phone->user_id=$user_id;