|
|
|
@ -832,6 +832,26 @@ class OrderController extends Controller
|
|
|
|
$asp = new AspNetZhuanController();
|
|
|
|
$asp = new AspNetZhuanController();
|
|
|
|
$asp::SendMsg($orderInfo->hospital_id, $orderInfo->phone, $orderInfo->name, $planInfo->date . ' ' . substr($planInfo->time, 0, 5),$orderInfo->sex);
|
|
|
|
$asp::SendMsg($orderInfo->hospital_id, $orderInfo->phone, $orderInfo->name, $planInfo->date . ' ' . substr($planInfo->time, 0, 5),$orderInfo->sex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if($orderInfo->checkup_type_id==4){ //如果是婚检调用his取消
|
|
|
|
|
|
|
|
$his_info=json_decode($orderInfo->his_info,true);
|
|
|
|
|
|
|
|
if(!!$his_info and isset($his_info['hunjian_yuyue_gid']) and !empty($his_info['hunjian_yuyue_gid'])){
|
|
|
|
|
|
|
|
$his_data=[
|
|
|
|
|
|
|
|
"action" => "2",
|
|
|
|
|
|
|
|
"yyid" => $yyid,
|
|
|
|
|
|
|
|
"ghzid" => $person->ghzid,
|
|
|
|
|
|
|
|
"ID"=>$his_info['hunjian_yuyue_gid']
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
$res=$AspNet::HunjianHis($his_data);
|
|
|
|
|
|
|
|
if ($res['code'] == "200") {
|
|
|
|
|
|
|
|
$his_info['hunjian_yuyue_gid']=null;
|
|
|
|
|
|
|
|
$u = DB::table('orders')->where(['id' => $orderInfo->id])->update([
|
|
|
|
|
|
|
|
'his_info'=>json_encode($his_info, JSON_UNESCAPED_UNICODE)
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$orderInfo = DB::table('orders')->where(['id' => $orderid, 'status' => 2])->first();
|
|
|
|
|
|
|
|
$this->HisInsertHunjian($orderInfo,$yyid,$person);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return \Yz::Return(true, "操作完成", []);
|
|
|
|
return \Yz::Return(true, "操作完成", []);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1066,12 +1086,17 @@ class OrderController extends Controller
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//如果是婚检发送给his
|
|
|
|
//如果是婚检发送给his
|
|
|
|
if($order_info->checkup_type_id==4 and isset($create_appointment['data'][0][0]) and $order_info->status==2){
|
|
|
|
if($order_info->checkup_type_id==4 and isset($create_appointment['data'][0][0]) and $order_info->status==2){
|
|
|
|
$sex='';
|
|
|
|
$this->HisInsertHunjian($order_info,$yyid,$person);
|
|
|
|
if($order_info->sex=='1') $sex='男';
|
|
|
|
}
|
|
|
|
if($order_info->sex=='2') $sex='女';
|
|
|
|
return ['status' => true, 'msg' => "完成"];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function HisInsertHunjian($order_info,$yyid,$person){
|
|
|
|
$loginfo=DB::table('questions_log')->where(['personid' => $order_info->person_id])->orderBy('id','desc')->first();
|
|
|
|
$loginfo=DB::table('questions_log')->where(['personid' => $order_info->person_id])->orderBy('id','desc')->first();
|
|
|
|
if(!$loginfo) return ['status' => false,'msg' => "未找到婚检问题记录"];
|
|
|
|
if(!$loginfo) return ['status' => false,'msg' => "未找到婚检问题记录"];
|
|
|
|
$loginfo=json_decode($loginfo->content,true);
|
|
|
|
$loginfo=json_decode($loginfo->content,true);
|
|
|
|
|
|
|
|
$sex='';
|
|
|
|
|
|
|
|
if($order_info->sex=='1') $sex='男';
|
|
|
|
|
|
|
|
if($order_info->sex=='2') $sex='女';
|
|
|
|
$data_array = [
|
|
|
|
$data_array = [
|
|
|
|
"action" => "1",
|
|
|
|
"action" => "1",
|
|
|
|
"ghzid" => $person->ghzid,
|
|
|
|
"ghzid" => $person->ghzid,
|
|
|
|
@ -1115,8 +1140,6 @@ class OrderController extends Controller
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ['status' => true, 'msg' => "完成"];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//未支付取消订单
|
|
|
|
//未支付取消订单
|
|
|
|
|