| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.crm.common.service.OssService; |
| | | import com.zy.crm.common.utils.FileSaveExampleUtil; |
| | | import com.zy.crm.common.web.BaseController; |
| | | import com.zy.crm.manager.entity.Plan; |
| | |
| | | |
| | | @Autowired |
| | | private AppVersionService appVersionService; |
| | | @Autowired |
| | | private OssService ossService; |
| | | |
| | | @RequestMapping(value = "/appVersion/{id}/auth") |
| | | @ManagerAuth |
| | |
| | | return R.error("已是最新版本"); |
| | | } |
| | | |
| | | String download = ossService.download(latestApp.getPath()); |
| | | latestApp.setUrl(download); |
| | | |
| | | return R.ok("有新版本,需要更新").add(latestApp); |
| | | } |
| | | |