| | |
| | | package com.ruoyi.other.controller; |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.R; |
| | |
| | | public R<String> getServerPhone(){ |
| | | TSystemConfiguration one = systemConfigurationService.getOne(new LambdaQueryWrapper<TSystemConfiguration>().eq(TSystemConfiguration::getType, 1)); |
| | | if(null != one){ |
| | | return R.ok(one.getContent()); |
| | | return R.ok(JSON.parseObject(one.getContent()).getString("phone")); |
| | | } |
| | | return R.ok(); |
| | | } |