| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.entity.accept.AdminAcceptData;
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.yeshi.utils.JsonUtil;
|
| | |
| | | * @throws Exception
|
| | | */
|
| | | @RequestMapping(value = "listVersions")
|
| | | public void listVersions(String callback, String platform, PrintWriter out) {
|
| | | public void listVersions(AdminAcceptData acceptData, String callback, String platform, PrintWriter out) {
|
| | | if (StringUtil.isNullOrEmpty(platform)) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("请上传平台"));
|
| | | return;
|
| | | }
|
| | |
|
| | | try {
|
| | | List<AppVersionInfo> list = appVersionService.getAppVersionInfoListByPlatform(platform);
|
| | | List<AppVersionInfo> list = appVersionService.getAppVersionInfoListByPlatform(platform,acceptData.getSystem());
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(list));
|
| | | } catch (Exception e) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("获取失败"));
|