新增消息回调

This commit is contained in:
wucongxing 2023-04-03 16:01:52 +08:00
parent f0fb754d82
commit 8207fa6512
2 changed files with 8 additions and 5 deletions

View File

@ -658,10 +658,10 @@ class TestController extends AbstractController
$sign_param = [ $sign_param = [
[ // 医院签章 [ // 医院签章
"llx"=>"1550", // 左边底部X坐标 "llx"=>"220", // 左边底部X坐标
"lly"=>"1350", // 左边底部Y坐标 "lly"=>"125", // 左边底部Y坐标
"urx"=>"2250", // 右边上部x坐标 "urx"=>"175", // 右边上部x坐标
"ury"=>"650", // 右边上部y坐标 "ury"=>"170", // 右边上部y坐标
"pageList"=>[1], "pageList"=>[1],
"sealImg"=>$sign_image "sealImg"=>$sign_image
], ],
@ -669,7 +669,7 @@ class TestController extends AbstractController
// 打开处方pdf文件 // 打开处方pdf文件
unset($pdf_file); unset($pdf_file);
$pdf_file = fopen("./runtime/" . "501383937792086017" . ".pdf",'r'); $pdf_file = fopen("./runtime/" . "501402833412673536" . ".pdf",'r');
$ca = new Ca(); $ca = new Ca();

View File

@ -268,6 +268,9 @@ class ImService extends BaseService
$arg['CloudCustomData'] = json_encode($cloud_custom_data,JSON_UNESCAPED_UNICODE); $arg['CloudCustomData'] = json_encode($cloud_custom_data,JSON_UNESCAPED_UNICODE);
} }
// 该条消息是否需要已读回执0为不需要1为需要默认为0
$arg['IsNeedReadReceipt'] = 1;
$message->sendMessage($arg); $message->sendMessage($arg);
}catch (\Exception $e){ }catch (\Exception $e){
throw new BusinessException($e->getMessage()); throw new BusinessException($e->getMessage());