1
This commit is contained in:
@@ -27,14 +27,14 @@ class MessageNoticeService extends BaseService
|
||||
$params['notice_type'] = 1; // 消息类型(1:医生服务通知 2:医生系统公告 3:患者系统消息
|
||||
$params['send_status'] = 1;
|
||||
|
||||
$result = MessageNotice::getMessageNoticePage($params,["*"],$page,$per_page);
|
||||
if (!empty($result['data'])){
|
||||
foreach ($result['data'] as &$item){
|
||||
if (!empty($item['link_params'])){
|
||||
$result = MessageNotice::getMessageNoticePage($params, ["*"], $page, $per_page);
|
||||
if (!empty($result['data'])) {
|
||||
foreach ($result['data'] as &$item) {
|
||||
if (!empty($item['link_params'])) {
|
||||
$item['link_params'] = json_decode($item['link_params']);
|
||||
}
|
||||
|
||||
if (!empty($item['show_params'])){
|
||||
if (!empty($item['show_params'])) {
|
||||
$item['show_params'] = json_decode($item['show_params']);
|
||||
}
|
||||
}
|
||||
@@ -59,24 +59,22 @@ class MessageNoticeService extends BaseService
|
||||
$params['notice_type'] = 2; // 消息类型(1:医生服务通知 2:医生系统公告 3:患者系统消息
|
||||
$params['send_status'] = 1;
|
||||
|
||||
$message_notice_system_params = array();
|
||||
$message_notice_system_params["notice_type"] = 2;
|
||||
$message_notice_system_params["send_status"] = 1;
|
||||
|
||||
$fields = [
|
||||
'notice_id',
|
||||
'notice_system_type',
|
||||
'from_name',
|
||||
'notice_title',
|
||||
'notice_content',
|
||||
'send_status',
|
||||
'notice_send_time',
|
||||
'link_type',
|
||||
'notice_params',
|
||||
];
|
||||
|
||||
$result = MessageNotice::getMessageNoticePage($params,$message_notice_system_params,$fields,$page,$per_page);
|
||||
$result = MessageNotice::getMessageNoticePage($params, ["*"], $page, $per_page);
|
||||
if (!empty($result['data'])) {
|
||||
foreach ($result['data'] as &$item) {
|
||||
if (!empty($item['link_params'])) {
|
||||
$item['link_params'] = json_decode($item['link_params'], true);
|
||||
}
|
||||
|
||||
if (!empty($item['show_params'])) {
|
||||
$item['show_params'] = json_decode($item['show_params'], true);
|
||||
}
|
||||
}
|
||||
}
|
||||
return success($result);
|
||||
}
|
||||
|
||||
public function getDoctorMessageSystemInfo(){
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user