统一图片全路径返回
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Services;
|
||||
use App\Model\BasicBank;
|
||||
use App\Model\Hospital;
|
||||
use App\Model\HospitalDepartmentCustom;
|
||||
use App\Model\OperationManual;
|
||||
|
||||
/**
|
||||
* 基础数据服务类
|
||||
@@ -88,4 +89,21 @@ class BasicDataService extends BaseService
|
||||
|
||||
return success($basic_bank->toArray());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取操作手册列表
|
||||
* @return array
|
||||
*/
|
||||
public function getOperationManual(): array
|
||||
{
|
||||
$params = array();
|
||||
$params['status'] = 1;
|
||||
|
||||
$operation_manual = OperationManual::getList($params);
|
||||
if (empty($operation_manual)){
|
||||
return success();
|
||||
}
|
||||
|
||||
return success($operation_manual->toArray());
|
||||
}
|
||||
}
|
||||
@@ -245,7 +245,10 @@ class DoctorAccountService extends BaseService
|
||||
return success($order_inquiry);
|
||||
}
|
||||
|
||||
// 获取医生提现记录列表
|
||||
/**
|
||||
* 获取医生提现记录列表
|
||||
* @return array
|
||||
*/
|
||||
public function getDoctorWithdrawalRecordList(): array
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
@@ -98,7 +98,7 @@ class IndexService extends BaseService
|
||||
$info['iden_auth_status'] = $doctor['iden_auth_status'];// 身份认证状态(0:未认证 1:认证通过 2:审核中 3:认证失败)
|
||||
$info['multi_point_status'] = $doctor['multi_point_status'];// 医生多点执业认证状态(0:未认证 1:认证通过 2:审核中 3:认证失败)
|
||||
$info['is_bind_bank'] = $doctor['is_bind_bank'];// 是否已绑定结算银行卡(0:否 1:是)
|
||||
$info['avatar'] = $doctor['avatar'];
|
||||
$info['avatar'] = addAliyunOssWebsite($doctor['avatar']);
|
||||
$info['is_img_expert_reception'] = $doctor['is_img_expert_reception'];// 是否参加专家图文接诊(0:否 1:是)
|
||||
$info['is_img_welfare_reception'] = $doctor['is_img_welfare_reception'];// 是否参加公益图文问诊(0:否 1:是)
|
||||
$info['praise_rate'] = $doctor['praise_rate'];// 好评率(百分制。回复质量占4、服务态度占3、回复速度占3。每周计算一次)
|
||||
@@ -131,6 +131,11 @@ class IndexService extends BaseService
|
||||
$params["banner_place"] = 1;
|
||||
$params["banner_status"] = 1;
|
||||
$banner = BannerModel::getList($params);
|
||||
if (!empty($banner)){
|
||||
foreach ($banner as &$item){
|
||||
$item['banner_path'] = addAliyunOssWebsite($item['banner_path']);
|
||||
}
|
||||
}
|
||||
|
||||
// 获取模块
|
||||
$params = array();
|
||||
@@ -192,6 +197,8 @@ class IndexService extends BaseService
|
||||
return fail(HttpEnumCode::USER_STATUS_ERROR);
|
||||
}
|
||||
|
||||
$user_pharmacist['avatar'] = addAliyunOssWebsite($user_pharmacist['avatar']);
|
||||
|
||||
// 获取药师审方数量
|
||||
$params = array();
|
||||
$params['pharmacist_id'] = $user_pharmacist['pharmacist_id'];
|
||||
@@ -236,7 +243,7 @@ class IndexService extends BaseService
|
||||
$data = array();
|
||||
$data['doctor_id'] = $patient_history_doctor['userDoctor']['doctor_id'];
|
||||
$data['user_name'] = $patient_history_doctor['userDoctor']['user_name'];
|
||||
$data['avatar'] = $patient_history_doctor['userDoctor']['avatar'];
|
||||
$data['avatar'] = addAliyunOssWebsite($patient_history_doctor['userDoctor']['avatar']);
|
||||
$data['hospital_name'] = "";
|
||||
if (!empty($patient_history_doctor['userDoctor']['Hospital'])) {
|
||||
$data['hospital_name'] = $patient_history_doctor['userDoctor']['Hospital']['hospital_name'];
|
||||
@@ -294,7 +301,7 @@ class IndexService extends BaseService
|
||||
$data['user_name'] = $recommend_doctor['user_name'];
|
||||
$data['status'] = $recommend_doctor['status'];
|
||||
$data['multi_point_status'] = $recommend_doctor['multi_point_status']; // 医生多点执业认证状态(0:未认证 1:认证通过 2:审核中 3:认证失败)
|
||||
$data['avatar'] = $recommend_doctor['avatar'];
|
||||
$data['avatar'] = addAliyunOssWebsite($recommend_doctor['avatar']);
|
||||
$data['doctor_title'] = empty($recommend_doctor['doctor_title']) ? "" : DoctorTitleCode::getMessage($recommend_doctor['doctor_title']);
|
||||
$data['department_custom_name'] = $recommend_doctor['department_custom_name'];
|
||||
$data['is_online'] = $recommend_doctor['is_online'];
|
||||
|
||||
Reference in New Issue
Block a user