|
@@ -90,6 +90,20 @@ class NoticeController extends BaseAdminController
|
|
|
return $this->fail(NoticeLogic::getError());
|
|
return $this->fail(NoticeLogic::getError());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public function getUnifiedNotific()
|
|
|
|
|
+ {
|
|
|
|
|
+ $params = $this->request->post();
|
|
|
|
|
+ $params['data_rules'] = $this->adminInfo['data_rules']??[];
|
|
|
|
|
+ if(isset($params['business_codes']) && !empty($params['business_codes'])){
|
|
|
|
|
+ $result = NoticeLogic::getInformationBatch($params);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $result = NoticeLogic::getInformation($params);
|
|
|
|
|
+ }
|
|
|
|
|
+ if ($result) {
|
|
|
|
|
+ return $this->success('获取成功', $result);
|
|
|
|
|
+ }
|
|
|
|
|
+ return $this->fail(NoticeLogic::getError());
|
|
|
|
|
+ }
|
|
|
/**
|
|
/**
|
|
|
* @notes 后台测试通知
|
|
* @notes 后台测试通知
|
|
|
* http://api.weixiuloc.com:5175/adminapi/notice.notice/testNotice?scene_id=1¶ms={}
|
|
* http://api.weixiuloc.com:5175/adminapi/notice.notice/testNotice?scene_id=1¶ms={}
|