This commit is contained in:
2023-03-16 10:17:44 +08:00
parent d19a1271d3
commit 21fe6be452
18 changed files with 297 additions and 132 deletions
+13
View File
@@ -25,4 +25,17 @@ class SafeController extends AbstractController
$data = $SafeService->getOssSign();
return $this->response->json($data);
}
/**
* 获取im签名数据
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getImSign(): ResponseInterface
{
$SafeService = new SafeService();
$data = $SafeService->getImSign();
return $this->response->json($data);
}
}
+15
View File
@@ -239,5 +239,20 @@ class UserController extends AbstractController
// $Prescription = new Prescription();
// $token = $Prescription->getProd();
// dump($token);
// 创建im账号
// $account = new Account();
// 创建单个账号
// $account->createAccount("111295","测试患者1","");
// $profile = new Profile();
// $result = $profile->getOneAccountPortraitList("111295");
// dump($result);
// $arg = array();
// $arg['Tag_Profile_IM_Image'] = "https://img.applets.igandanyiyuan.com/applet/doctor/avatar/03dc8df2-e7c0-4ad9-b87e-5133e40e0f76.jpg";
// $profile->setProfile("111295",$arg);
// $ImService = new ImService();
// $ImService->setUserProfile("491925054435950592");
}
}