Exemple #1
0
        APIKeySecretConfig private_GetConfig(string id)
        {
            APIKeySecretConfig c = null;

            var     sql = $"select * from `web_apikeysecretconfig` where `ID` = '{id}' limit 1";
            DataSet ds;

            DBTools.Conf.DbHelperSQL.Instance.RunSql(sql, out ds);

            foreach (System.Data.DataRow dr in ds.Tables[0].Rows)
            {
                c = InitAPIKeySecretConfig(dr);

                //Cache缓存
                DataCache.SetItem(id, c, cacheTime);
                return(c);
            }
            return(null);
        }