修正无医生数据

This commit is contained in:
2023-03-09 18:35:13 +08:00
parent f8e60425f4
commit bd49332f64
9 changed files with 335 additions and 45 deletions
+17 -15
View File
@@ -125,7 +125,7 @@ class UserController extends AbstractController
$group = new Group();
$friend = new Friend();
$message = new Message();
// $result = $account->createAccount(1234567,'测试患者',"https://img.applets.igandanyiyuan.com/applet/doctor/avatar/03dc8df2-e7c0-4ad9-b87e-5133e40e0f76.jpg");
$result = $account->createAccount(10009,'测试患者9',"https://img.applets.igandanyiyuan.com/applet/doctor/avatar/03dc8df2-e7c0-4ad9-b87e-5133e40e0f76.jpg");
// 查询账号导入状态
// $result = $account->checkAccountStatus("123456");
@@ -148,21 +148,23 @@ class UserController extends AbstractController
// $result = $friend->addFriend("123456",'1234567',"快速问诊");
// 发送消息
$arg = array();
$arg['From_Account'] = "1234567"; // 发送方user_id 如系统发送,无需填写
$arg['To_Account'] = "123456"; // 接收方user_id
$arg['ForbidCallbackControl'] = ['ForbidBeforeSendMsgCallback'];
// $arg = array();
// $arg['From_Account'] = "1234567"; // 发送方user_id 如系统发送,无需填写
// $arg['To_Account'] = "123456"; // 接收方user_id
// $arg['ForbidCallbackControl'] = ['ForbidBeforeSendMsgCallback'];
//
// $arg['MsgBody'] = [
// [
// "MsgType" => "TIMTextElem",
// "MsgContent" => [
// "Text" => "测试消息1",
// ],
// ]
// ];
//
// $result = $message->sendMessage($arg);
$arg['MsgBody'] = [
[
"MsgType" => "TIMTextElem",
"MsgContent" => [
"Text" => "测试消息1",
],
]
];
$result = $message->sendMessage($arg);
$result = $profile->getOneAccountPortraitList("123456");
dump($result);