|
|
|
|
@ -1052,6 +1052,38 @@ class OrderController extends Controller
|
|
|
|
|
$dnet->WeiXinSend($data);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//如果是婚检发送给his
|
|
|
|
|
if($order_info->checkup_type_id==4 and isset($create_appointment['data'][0][0]) and $order_info->status==2){
|
|
|
|
|
$sex='';
|
|
|
|
|
if($order_info->sex=='1') $sex='男';
|
|
|
|
|
if($order_info->sex=='2') $sex='女';
|
|
|
|
|
$data_array = [
|
|
|
|
|
"action" => "1",
|
|
|
|
|
"ghzid" => $person->ghzid,
|
|
|
|
|
"yyid" => $yyid,
|
|
|
|
|
"YYDH" => $order_info->phone,
|
|
|
|
|
"YYXM" => $order_info->name,
|
|
|
|
|
"YYXB" => $sex,
|
|
|
|
|
"YYSR" => $order_info->birthday,
|
|
|
|
|
"YYNL" => Tools::GetAge($order_info->birthday),
|
|
|
|
|
"YYZJ" =>$order_info->id_number,
|
|
|
|
|
"YYRQ" => $order_info->appointment_date,
|
|
|
|
|
"YYSJ" => substr($order_info->appointment_time, 0, 5),
|
|
|
|
|
"YYSJ_B" => $order_info->appointment_time,
|
|
|
|
|
"YYSJ_E" => $order_info->appointment_time,
|
|
|
|
|
"YYSJ_BE" =>substr($order_info->appointment_time, 0, 5).'-'.substr($order_info->appointment_time, 0, 5),
|
|
|
|
|
];
|
|
|
|
|
$aspnet=new AspNetZhuanController();
|
|
|
|
|
$res = $aspnet->HunjianHis($data_array);
|
|
|
|
|
if ($res['code'] == "200") {
|
|
|
|
|
$his_info=[
|
|
|
|
|
"hunjian_yuyue_gid"=>$res['gid'],
|
|
|
|
|
];
|
|
|
|
|
$u = DB::table('orders')->where(['id' => $order_info->id])->update([
|
|
|
|
|
'his_info'=>json_encode($his_info, JSON_UNESCAPED_UNICODE)
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return ['status' => true, 'msg' => "完成"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|