|
|
|
@ -893,16 +893,18 @@ class OrderController extends Controller
|
|
|
|
"电话号码" => null,
|
|
|
|
"电话号码" => null,
|
|
|
|
"预约Id" => $create_appointment['data'][0][0],
|
|
|
|
"预约Id" => $create_appointment['data'][0][0],
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|
|
|
|
$haoyuan="66";//默认传个66,66没啥用,不能为空而已
|
|
|
|
$erxianinfo=false;
|
|
|
|
$erxianinfo=false;
|
|
|
|
if(json_decode($order_info->erxian_appointment_info,true) != null){ //给体检发送二线信息
|
|
|
|
if(json_decode($order_info->erxian_appointment_info,true) != null){ //给体检发送二线信息
|
|
|
|
$erxianinfo = json_decode($order_info->erxian_appointment_info,true);
|
|
|
|
$erxianinfo = json_decode($order_info->erxian_appointment_info,true);
|
|
|
|
if(count($erxianinfo) != 0){
|
|
|
|
if(count($erxianinfo) != 0){
|
|
|
|
$haoyuan=str_replace(":", "", $erxianinfo[0]['time']).'|'.$erxianinfo[0]['date'];
|
|
|
|
$haoyuan=str_replace(":", "", $erxianinfo[0]['time']).'|'.$erxianinfo[0]['date'];
|
|
|
|
$peis = new PEISApiController();
|
|
|
|
}
|
|
|
|
$data = "appointmentId=" . $create_appointment['data'][0][0] . "&appGroupId=".$haoyuan."&appPlanId=" . $order_info->plan_id . "&appPlanNumber=" . $order_info->plan_number . "&date=" . urlencode($order_info->appointment_date . ' ' . $order_info->appointment_time);
|
|
|
|
|
|
|
|
$ch = $peis::Post2('修改用户预约时间', $peis::Api('修改用户预约时间', $data), $order_info->hospital_id, []);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//调用此接口目的:修改思信体检库里 预约时间,不然他那边预约时间为空,需要再次调用一下这个接口。如果有二线则同时给思信体检传二线号源信息。
|
|
|
|
|
|
|
|
$peis = new PEISApiController();
|
|
|
|
|
|
|
|
$data = "appointmentId=" . $create_appointment['data'][0][0] . "&appGroupId=".$haoyuan."&appPlanId=" . $order_info->plan_id . "&appPlanNumber=" . $order_info->plan_number . "&date=" . urlencode($order_info->appointment_date . ' ' . $order_info->appointment_time);
|
|
|
|
|
|
|
|
$ch = $peis::Post2('修改用户预约时间', $peis::Api('修改用户预约时间', $data), $order_info->hospital_id, []);
|
|
|
|
|
|
|
|
|
|
|
|
//如果是医生web端预约,则调用预约时段修改接口,传入医生名称
|
|
|
|
//如果是医生web端预约,则调用预约时段修改接口,传入医生名称
|
|
|
|
if ($order_info->source == 'web') {
|
|
|
|
if ($order_info->source == 'web') {
|
|
|
|
|