public UserOnlineInfo MyUser; //= UserManage.UserInfo; #region 初始化 在OnInit执行 /// <summary> /// 设置当前登录人的信息 /// 设置元数据的数据库的实例 /// </summary> /// <param name="e"></param> protected override void OnInit(EventArgs e) { var debugInfo = new NatureDebugInfo { Title = "[Nature.Service.Ashx.BaseAshx]判断Url参数" }; base.OnInit(e); //验证是否已经登录 //如果已经登录了,加载登录人员的信息, var manageUser = new ManageUser { Dal = Dal }; UserWebappInfo userWebappInfo = AppManage.UserWebappInfoByCookies(debugInfo.DetailList); if (userWebappInfo.State != UserState.NormalAccess) { //没有登录。 Response.Write("您还没有登录,请到<a href='/default.aspx' target='_top'>这里</a>登录"); Response.End(); } MyUser = manageUser.CreateUser(Convert.ToString(userWebappInfo.UserWebappID), null); //保存访问日志 //SaveViewLog(); }
/// <summary> /// app微信开放平台 /// </summary> /// <param name="app"></param> /// <returns></returns> public bool IsAppWeixin(AppManage app) { if (!string.IsNullOrEmpty(app.WxAppId) && !string.IsNullOrEmpty(app.WxAppSecret)) { return(true); } return(false); }
/// <summary> /// app支付宝开放平台 /// </summary> /// <param name="app"></param> /// <returns></returns> public bool IsAppAlipay(AppManage app) { if (!string.IsNullOrEmpty(app.AlipayAppId) && !string.IsNullOrEmpty(app.AlipayPrivatekey) && !string.IsNullOrEmpty(app.AlipayPublickey) && !string.IsNullOrEmpty(app.AlipaySignType)) { return(true); } return(false); }
// GET: AppManage public ActionResult Update() { // AppManage.UpdateApp(); var AppManage = new AppManage(new FileConfigManage(), new FileManage(new WebClient(), remoteUri, localPath)); AppManage.UpdateFiles(); AppManage.UpdateDb(); return(RedirectToAction("Index", "Home")); }
private void Awake() { if (instance != null) { Destroy(this.gameObject); return; } instance = this; DontDestroyOnLoad(this.gameObject); DontDestroyOnLoad(Exit.gameObject); //PlayerPrefs.DeleteAll(); #if UNITY_ANDROID filePath = Application.persistentDataPath + "/" + fileName; #elif UNITY_STANDALONE_WIN filePath = Application.dataPath + "/" + fileName; #endif }
private void Form1_Load(object sender, EventArgs e) { setting = new AppManage(); textBoxHost.Text = setting.hostip; }