Esempio n. 1
0
        public ProgramUploadRes ProgramUpload(ProgramUploadReq req)
        {
            LoginUser u = (LoginUser)System.Web.HttpContext.Current.Session["user"];

            req.exp_type = u.exp_type;
            return(PostJson <ProgramUploadReq, ProgramUploadRes>("ProgramUpload", req));
        }
Esempio n. 2
0
        public ProgramUploadRes ProgramUpload(ProgramUploadReq req)
        {
            ProgramUploadRes e = new ProgramUploadRes();

            e.fail     = 0;
            e.app_name = "zlg9290.obj";
            return(e);
        }
Esempio n. 3
0
        public ProgramUploadRes ProgramUpload(ProgramUploadReq req)
        {
            ProgramUploadRes res = service.ProgramUpload(req);

            //请求设备成功保存device_id
            if (res.fail == 0 && !string.IsNullOrWhiteSpace(res.app_name))
            {
                LoginUser u = (LoginUser)System.Web.HttpContext.Current.Session["user"];
                u.app_name     = res.app_name;
                u.currentState = (EnvironmentState)4;
            }
            return(res);
        }