更新 分诊,未签到状态订单 对接字段修改

main
鹿和sa0ChunLuyu 1 year ago
parent 0278d1273d
commit e400885288

@ -49,13 +49,15 @@ class FenzhenController extends Controller
$time_line = $res['data']['time_line'];
$clinic_map = [];
foreach ($time_line as $key => $item) {
$clinic_map[] = $item['name'];
if (isset($item['his_number'])) {
$clinic_map[] = $item['his_number'];
}
}
$last_time = strtotime('2024-10-10 ' . $time_line[count($time_line) - 1]['time'] . ':00');
if (!$res['data']['queue']) {
$push_end = false;
foreach ($clinics as $item) {
if (!in_array($item['name'], $clinic_map)) {
if (!in_array($item['keshi_id'], $clinic_map)) {
$push_end = true;
$item_count = $item['count'];
$in_time = date('H:i', $last_time);
@ -125,6 +127,17 @@ class FenzhenController extends Controller
"yyid" => "6",
"action" => "1"
]);
switch ($res['code']) {
case '200':
$check_report_status = $res['data']['yyrq'];
break;
case 1:
$check_report_status = false;
break;
default:
$check_report_status = false;
break;
}
\Yz::debug(['a' => $res]);

Loading…
Cancel
Save