This commit is contained in:
parent
60e003ae2c
commit
43198f814f
@ -12,7 +12,7 @@ use App\Model\PharmacistAuditStatistic;
|
||||
use App\Model\User;
|
||||
use App\Model\UserDoctor as UserDoctorModel;
|
||||
use App\Model\UserPharmacist;
|
||||
use Hyperf\Utils\Parallel;
|
||||
use App\Model\SystemConfig;
|
||||
use Hyperf\Utils\WaitGroup;
|
||||
|
||||
/**
|
||||
@ -247,10 +247,20 @@ class IndexService extends BaseService
|
||||
$info['introduction_status'] = $doctor['introduction_status'];// 个人简介审核状态(0:未审核 1:审核通过 2:审核中 3:审核失败)
|
||||
$info['is_welfare_cooperation'] = $doctor['is_welfare_cooperation'];// 是否公益问诊合作医生(可把公益问诊设为0元)
|
||||
|
||||
// 获取系统配置
|
||||
$is_annual_review = 0;
|
||||
$params = array();
|
||||
$params['system_config_id'] = 1;
|
||||
$system_config = SystemConfig::getOne($params);
|
||||
if (!empty($system_config)){
|
||||
$is_annual_review = $system_config['is_annual_review'];
|
||||
}
|
||||
|
||||
$data = array();
|
||||
$data['banner'] = $banner ?? [];// banner
|
||||
$data['info'] = $info;// 医生数据
|
||||
$data['doctor_inquiry_config'] = $doctor_inquiry_config;// 医生问诊配置
|
||||
$data['is_annual_review'] = $is_annual_review;// 年审开关
|
||||
|
||||
return success($data);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user