仅购买时 不判断性别

main
yanzai 9 months ago
parent b4d15e91fe
commit 684726c7bd

@ -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;
//构建多选一数据

@ -1,7 +1,7 @@
const app_type = 'gzh'
//const base_url = "https://api.hainan2024.sa0.online" //开发环境
//const base_url="https://tj-h5.hnxdfe.com" //正式环境
const base_url="http://124.225.137.54:39081" //测试环境
const base_url="https://tj-h5.hnxdfe.com" //正式环境
//const base_url="http://124.225.137.54:39081" //测试环境
const config = {
api_map_url: base_url + '/api/ApiMap/h5',
base_assets_url: base_url,

@ -124,6 +124,7 @@
group_id: groupId.value,
combo_id: comboId.value,
wj: wj.value,
duo_xuan_yi: $store.getDuoXuanYi(),
};
if (comboId.value) {
obj.combo_id = comboId.value;

Loading…
Cancel
Save