1
This commit is contained in:
@@ -8,6 +8,7 @@ use App\Model\OrderPrescription;
|
||||
use App\Model\OrderPrescriptionProduct;
|
||||
use App\Model\User;
|
||||
use App\Model\UserDoctor;
|
||||
use App\Model\UserDoctorInfo;
|
||||
use App\Model\UserPharmacist;
|
||||
use App\Model\UserPharmacistInfo;
|
||||
use Hyperf\DbConnection\Db;
|
||||
@@ -106,6 +107,15 @@ class UserPharmacistService extends BaseService
|
||||
|
||||
$order_prescription['prescription_img'] = addAliyunOssWebsite($order_prescription['prescription_img']);
|
||||
|
||||
// 获取处方中医生签名
|
||||
$params = array();
|
||||
$params['doctor_id'] = $order_prescription['doctor_id'];
|
||||
$user_doctor_info = UserDoctorInfo::getOne($params);
|
||||
if (empty($user_doctor_info)){
|
||||
return fail(HttpEnumCode::SERVER_ERROR);
|
||||
}
|
||||
$order_prescription['doctor_sign_image'] = addAliyunOssWebsite($user_doctor_info['sign_image']);
|
||||
|
||||
return success($order_prescription->toArray());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user