cms_yiqingfangkong/TE.Configs/OssConfig.cs

(完整代码) 1KB

namespace TE.Configs
{
    /// <summary>
    /// Oss配置
    /// </summary>
    public class OssConfig
    {
        /// <summary>
        /// Gets the access identifier.
        /// </summary>
        /// <value>
        /// The access identifier.
        /// </value>
        public string AccessId { get; private set; }

        /// <summary>
        /// Gets the access key.
        /// </summary>
        /// <value>
        /// The access key.
        /// </value>
        public string AccessKey { get; private set; }

        /// <summary>
        /// Gets the endpoint.
        /// </summary>
        /// <value>
        /// The endpoint.
        /// </value>
        public string Endpoint { get; private set; }

        /// <summary>
        /// Gets the configuration.
        /// </summary>
        /// <param name="isDebug">if set to <c>true</c> [is debug].</param>
        /// <returns></returns>
        public static OssConfig GetConfig(bool isDebug)
        {
            var config = new OssConfig();
            if (isDebug)
            {
                config.AccessId = "LTAIyFSycXPQI8A5";
                config.AccessKey = "6MNW2KN4qPQDua0w3tfosUvzu3cJ71";
                config.Endpoint = "http://oss-cn-hangzhou.aliyuncs.com";
            }
            else
            {
                config.AccessId = "LTAIyFSycXPQI8A5";
                config.AccessKey = "6MNW2KN4qPQDua0w3tfosUvzu3cJ71";
                config.Endpoint = "http://oss-cn-hangzhou.aliyuncs.com";
            }
            return config;
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。