All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fastchar.extjs.appshare.action.AppDownloadAction Maven / Gradle / Ivy

Go to download

FastChar-ExtJs-AppShare is a FastChar-ExtJs plugin.Used for APP application distribution download, support android and ios

The newest version!
package com.fastchar.extjs.appshare.action;

import com.fastchar.annotation.AFastRoute;
import com.fastchar.extjs.appshare.entity.FinalAppEntity;
import com.fastchar.core.FastAction;

/**
 * 应用明示的短连接下载
 * @author 沈建(Janesen)
 * @date 2021/1/25 14:43
 */
@AFastRoute(interceptorAfter = false)
public class AppDownloadAction extends FastAction {
    @Override
    protected String getRoute() {
        return "/app";
    }

    public void index() {
        String appId = getUrlParam(0);
        FinalAppEntity appEntity = FinalAppEntity.dao().selectById(appId);
        if (appEntity != null) {
            String appCode = appEntity.getString("appCode");
            forward("appshare/download/" + appCode);
        }
        response502("无效应用!");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy