苹果 系统通知和banner返回空数据
This commit is contained in:
parent
e96ab04513
commit
ec3f8b21db
@ -1,5 +1,6 @@
|
|||||||
package com.red.circle.other.adapter.app.message;
|
package com.red.circle.other.adapter.app.message;
|
||||||
|
|
||||||
|
import com.red.circle.common.business.dto.cmd.AppExtCommand;
|
||||||
import com.red.circle.framework.dto.PageResult;
|
import com.red.circle.framework.dto.PageResult;
|
||||||
import com.red.circle.framework.web.controller.BaseController;
|
import com.red.circle.framework.web.controller.BaseController;
|
||||||
import com.red.circle.other.infra.convertor.message.PublicMessageConvertor;
|
import com.red.circle.other.infra.convertor.message.PublicMessageConvertor;
|
||||||
@ -50,7 +51,11 @@ public class PublicMessageController extends BaseController {
|
|||||||
* @eo.request-type formdata
|
* @eo.request-type formdata
|
||||||
*/
|
*/
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
public PageResult<PublicMessageDTO> pagePublicMessages(@Validated PublicMessagePageQry qry) {
|
public PageResult<PublicMessageDTO> pagePublicMessages(@Validated PublicMessagePageQry qry, AppExtCommand cmd) {
|
||||||
|
if (cmd.checkIos()) {
|
||||||
|
return PageResult.newPageResult(0);
|
||||||
|
}
|
||||||
|
|
||||||
log.info("分页查询公共消息, qry={}", qry);
|
log.info("分页查询公共消息, qry={}", qry);
|
||||||
|
|
||||||
// 调用服务层分页查询
|
// 调用服务层分页查询
|
||||||
|
|||||||
@ -185,6 +185,9 @@ public class AppConfigRestController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("/banner")
|
@GetMapping("/banner")
|
||||||
public List<BannerCO> listBanner(AppExtCommand cmd, @RequestParam(required = false) String bannerType) {
|
public List<BannerCO> listBanner(AppExtCommand cmd, @RequestParam(required = false) String bannerType) {
|
||||||
|
if (cmd.checkIos()) {
|
||||||
|
return Collections.emptyList();
|
||||||
|
}
|
||||||
return appConfigService.listBanner(cmd, bannerType);
|
return appConfigService.listBanner(cmd, bannerType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user