新增了 修改医生问诊配置 接口,新增了公益问诊的配置
This commit is contained in:
@@ -520,6 +520,12 @@ class DoctorInquiryService extends BaseService
|
||||
|
||||
// 验证-问诊价格
|
||||
// 义诊时不判断,义诊为选择价格,价格后台可调节
|
||||
if ($inquiry_type == 3 && $inquiry_price == 0) {
|
||||
if ($doctor['is_welfare_cooperation'] != 1){
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "请联系客服开通权限~");
|
||||
}
|
||||
}
|
||||
|
||||
if ($inquiry_type != 3) {
|
||||
if (!empty($system_inquiry_config['min_inquiry_price']) && !empty($system_inquiry_config['max_inquiry_price'])) {
|
||||
if ($inquiry_price > $system_inquiry_config['max_inquiry_price'] || $inquiry_price < $system_inquiry_config['min_inquiry_price']) {
|
||||
|
||||
Reference in New Issue
Block a user