修改电话回调接口

dev
曾超新 5 years ago
parent f5d385b65b
commit edf9fd7952
  1. 4
      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;

Loading…
Cancel
Save