新增获取问诊消息列表接口、修正im回调
This commit is contained in:
@@ -36,6 +36,7 @@ use Extend\Alibaba\Oss;
|
||||
use Extend\Wechat\Wechat;
|
||||
use Hyperf\Amqp\Producer;
|
||||
use Hyperf\DbConnection\Db;
|
||||
use Hyperf\Redis\Redis;
|
||||
use Hyperf\Snowflake\IdGeneratorInterface;
|
||||
use Hyperf\Utils\ApplicationContext;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
@@ -1325,6 +1326,28 @@ class UserDoctorService extends BaseService
|
||||
return success($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取医生问诊消息列表
|
||||
* @return array
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function getDoctorMessageList(): array
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
$message_inquiry_type = $this->request->input('message_inquiry_type');
|
||||
|
||||
$redis_key = "recentContact" . $user_info['client_user_id'] . $message_inquiry_type;
|
||||
dump($redis_key);
|
||||
$redis = $this->container->get(Redis::class);
|
||||
$result = $redis->hKeys($redis_key);
|
||||
dump($result);
|
||||
|
||||
return success($result);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检测医生身份认证
|
||||
* @param object|array $user_doctor 医生表数据
|
||||
@@ -1562,6 +1585,8 @@ class UserDoctorService extends BaseService
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取坐班时间包含某时间的平台深度合作医生
|
||||
* @param string $inquiry_type
|
||||
|
||||
Reference in New Issue
Block a user