duheng
2025-03-31 be65218617cab71a90a9a05cf488fbb6e206b5c5
WinFrmUI/HStation.WinFrmUI.Auth.Core/00-core/WechatBindingCtrl.cs
@@ -1,14 +1,4 @@
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using System.Windows.Forms;
using System.Web;
using Yw;
namespace HStation.WinFrmUI
@@ -30,22 +20,14 @@
        /// </summary>
        public event Action LoginCancelEvent;
        /// <summary>
        private bool _isInitialized = false;//初始化
        private const string _template = "hzkw_wx_template";//微信登录模板
        private const string _software = "HStation_XHS_DESKTOP";//软件编码
        /// <summary>
        /// 初始化
        /// </summary>
        public async void Initial()
        {
            if (_isInitialized)
            {
                return;
            }
            _isInitialized = true;
            var loginUrl = await BLLFactory<Yw.BLL.ToolWechat>.Instance.GetLoginUrl(_template);
            await this.webView21.EnsureCoreWebView2Async();
            this.webView21.Source = new Uri(loginUrl);