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;