完善到检接口

main
yanzai 1 year ago
parent 02ea930740
commit b8c4803fd6

@ -87,6 +87,7 @@ class OrderController extends Controller
if ($data['性别'] == '男') $sex = 1; if ($data['性别'] == '男') $sex = 1;
if ($data['性别'] == '女') $sex = 2; if ($data['性别'] == '女') $sex = 2;
$dataInfo = [ $dataInfo = [
'hospital_id'=>1,
'title' => $data['套餐名称'], 'title' => $data['套餐名称'],
'type' => $data['单位名称'] == '个人' ? 1 : 2, 'type' => $data['单位名称'] == '个人' ? 1 : 2,
'source' => '体检推送', 'source' => '体检推送',
@ -95,6 +96,8 @@ class OrderController extends Controller
'buy_info' => json_encode($buyInfo, JSON_UNESCAPED_UNICODE), 'buy_info' => json_encode($buyInfo, JSON_UNESCAPED_UNICODE),
'status' => 4, 'status' => 4,
'plan_number' => $data['分诊信息'], 'plan_number' => $data['分诊信息'],
'appointment_date' => explode('T', $data['登记时间'])[0],
'tj_number' => $exam_id,
'phone' => $data['电话号码'], 'phone' => $data['电话号码'],
'sex' => $sex, 'sex' => $sex,
'birthday' => explode('T', $data['出生日期'])[0], 'birthday' => explode('T', $data['出生日期'])[0],

Loading…
Cancel
Save