修改问诊
This commit is contained in:
@@ -130,15 +130,17 @@ class AssignDoctorConsumer extends ConsumerMessage
|
||||
// 分配医生
|
||||
$UserDoctorService = new UserDoctorService();
|
||||
$doctor_id = $UserDoctorService->getInquiryAssignDoctor($order_inquiry['inquiry_type'],$order_inquiry['patient_id']);
|
||||
if (!empty($doctor_id)){
|
||||
if (empty($doctor_id)){
|
||||
// 无合适医生
|
||||
Db::rollBack();
|
||||
Log::getInstance()->error("分配医生队列执行失败原因:重回队列,目前没有合适医生");
|
||||
Log::getInstance()->info("分配医生队列执行:目前没有合适医生");
|
||||
$redis_value = $this->checkAssignCount($order_inquiry['order_inquiry_id']);
|
||||
|
||||
// 执行睡眠,防止重复执行队列
|
||||
// 执行规则,第一次30秒,第二次30秒。以30的倍数增加
|
||||
sleep($redis_value * 30);
|
||||
sleep($redis_value * 5);
|
||||
|
||||
Log::getInstance()->info("分配医生队列执行:重回队列");
|
||||
return Result::REQUEUE; // 重回队列
|
||||
}
|
||||
|
||||
|
||||
@@ -209,10 +209,6 @@ class SendStationMessageConsumer extends ConsumerMessage
|
||||
|
||||
$notice_data['read_status'] = 0;
|
||||
|
||||
if (isset($push_data['inquiry_type'])){
|
||||
$notice_data['inquiry_type'] = $push_data['inquiry_type'] ;
|
||||
}
|
||||
|
||||
if (isset($push_data['from_name'])){
|
||||
$notice_data['from_name'] = $push_data['from_name'] ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user