public ActionResult CodeGenerate(string code)
        {
            string         accessToken = Common.WeChatPush.WeChatTools.GetAccessoken();
            U_WeChatUserID userInfo    = new U_WeChatUserID();
            string         userInfoStr = Common.WeChatPush.WeChatTools.GetUserInfoByCode(accessToken, code);

            userInfo = Common.JsonHelper.JsonToModel <U_WeChatUserID>(userInfoStr); //用户ID
            //userInfo.UserId = "WangCunBiao";
            var    personInfoModel = _wl.GetUserInfo(userInfo.UserId);              //获取人员表信息
            string file            = personInfoModel.Vguid + ".jpg";
            string forder          = "UploadFile/WeChatQRCode";
            string filePath        = Path.Combine(forder, file);

            string fileName = Server.MapPath(filePath);

            if (System.IO.File.Exists(fileName))
            {
                System.IO.File.Delete(fileName);
            }
            var configStr = _codeGenerateLogic.GetPersonConfiguration(personInfoModel);

            QRCodeHelper.GenerateQRCode(configStr, "/Areas/WeChatPush/Views/_img/logo1.png", forder, file);
            ViewData["Vguid"] = personInfoModel.Vguid;
            ViewData["url"]   = ConfigSugar.GetAppString("OpenHttpAddress") + forder + "/" + file;
            return(View());
        }
        public ActionResult Index()
        {
            var personInfoModel = new Business_Personnel_Information()
            {
                Vguid = Guid.Parse("726B4C9F-0B5A-4D5B-A8EE-5BA95C38C4C7")
            };
            //   var personInfoModel = CurrentUser.GetCurrentUser();
            string file     = personInfoModel.Vguid + ".jpg";
            string forder   = "UploadFile/QRCode";
            string filePath = Path.Combine(forder, file);
            string fileName = Server.MapPath(filePath);

            if (System.IO.File.Exists(fileName))
            {
                System.IO.File.Delete(fileName);
            }
            var configStr = _codeGenerateLogic.GetPersonConfiguration(personInfoModel);

            //  Create_ImgCode(configStr, personInfoModel.Vguid.ToString());
            //QRCodeHelper.GenerateQRCode(configStr, "/Areas/WeChatPush/Views/_img/logo1.png", forder, file);
            ViewData["Vguid"]  = personInfoModel.Vguid;
            ViewData["QRCode"] = personInfoModel.Vguid + ".jpg";
            return(View());
        }