|
|
|
|
@ -99,9 +99,9 @@ class OrderNewController extends Controller
|
|
|
|
|
$combo_info = DB::table('combos')->where(['combo_id' => $combo_id, 'status' => 1])->first();
|
|
|
|
|
if (!$combo_info) return \Yz::echoError1("套餐不存在");
|
|
|
|
|
if (!isset($combo_info->checkup_type_id)) return \Yz::echoError1("套餐未关联体检类型");
|
|
|
|
|
if($combo_info->sex<>0 and $combo_info->sex<>$person->sex) {
|
|
|
|
|
return \Yz::echoError1("套餐性别与体检人性别不匹配");
|
|
|
|
|
}
|
|
|
|
|
// if($combo_info->sex<>0 and $combo_info->sex<>$person->sex) { //医院要求购买套餐时,不限制性别,预约和转赠时再限制,所以这段注释掉了
|
|
|
|
|
// return \Yz::echoError1("套餐性别与体检人性别不匹配");
|
|
|
|
|
// }
|
|
|
|
|
$checkup_type_id = $combo_info->checkup_type_id;
|
|
|
|
|
|
|
|
|
|
//构建多选一数据
|
|
|
|
|
|