91 lines
3.1 KiB
C#
91 lines
3.1 KiB
C#
namespace CrasyStudio.Core.Common
|
||
{
|
||
/// <summary>
|
||
/// 站点通用配置类
|
||
/// </summary>
|
||
public static class SiteConfig
|
||
{
|
||
/// <summary>
|
||
/// 阿里云OSS图片站点,尾部有带"/"
|
||
/// </summary>
|
||
public static string OSSImgUrl = "https://" + "";//ConfigExtensions.Configuration["AliOSS:BacketName"] + "." + ConfigExtensions.Configuration["AliOSS:WanEndPoint"] + "/";
|
||
|
||
#region 店铺配置
|
||
/// <summary>
|
||
/// 商铺首页链接,尾部有带"/"
|
||
/// </summary>
|
||
public static string ShopHomeUrl = "";//ConfigExtensions.Configuration["BillShareUrl"] + "/";
|
||
/// <summary>
|
||
/// 商铺默认头像URL
|
||
/// </summary>
|
||
public static string ShopDefaultHeadUrl = "/Common/defaultHead.png";
|
||
|
||
/// <summary>
|
||
/// 微信分享背景图
|
||
/// </summary>
|
||
public static string wechategH5Image = "Common/wechatreg.png";
|
||
|
||
#endregion
|
||
|
||
#region 工厂配置
|
||
/// <summary>
|
||
/// 工厂上传图片相对路径
|
||
/// </summary>
|
||
public static string FactoryImgSavePath = "Upload/Factory/";
|
||
#endregion
|
||
|
||
#region 平台配置
|
||
/// <summary>
|
||
/// 订单来源:4=件造订单,5=速坊订单
|
||
/// </summary>
|
||
public static sbyte[] PlatformOrderType = new sbyte[]{ 4, 5 };
|
||
#endregion
|
||
|
||
#region 图片违规、审核中
|
||
/// <summary>
|
||
/// 审核中图片
|
||
/// </summary>
|
||
public static string ViolationImgUrl = "/Common/auditing.png";
|
||
/// <summary>
|
||
/// 商品违规图片
|
||
/// </summary>
|
||
public static string ReviewedImgUrl = "/Common/violation.png";
|
||
#endregion
|
||
|
||
#region 数据同步KEY
|
||
/// <summary>
|
||
/// 模型数据同步KEY
|
||
/// </summary>
|
||
public const string MODEL_SYNCHRO_KEY = "yunzao@model_oir4kcw3";
|
||
#endregion
|
||
|
||
#region 推送通知内容
|
||
/// <summary>
|
||
/// 工厂产品下架 {0}=产品组名称
|
||
/// </summary>
|
||
public static string PutProductGroup_NoticeMessage = "速纺平台已经将【{0}】从平台上下架,对应产品或商品也将同步下架,请您及时处理。";
|
||
/// <summary>
|
||
/// 产品组价格调整 {0}=产品组名称
|
||
/// </summary>
|
||
public static string EditProductGroupPrice_NoticeMessage = "{0}产品组,价格已经调,请您及时做相应处理";
|
||
#endregion
|
||
|
||
/// <summary>
|
||
/// 线上WebAPI URL
|
||
/// </summary>
|
||
public const string ONLINE_API_URL = "https://api.yunzaokeji.com";
|
||
/// <summary>
|
||
/// 测试WebAPI URL
|
||
/// </summary>
|
||
public const string TEST_API_URL = "https://testapi.yunzaokeji.com";
|
||
/// <summary>
|
||
/// 开发WebAPI URL
|
||
/// </summary>
|
||
public const string DEV_API_URL = "https://devapi.yunzaokeji.com";
|
||
/// <summary>
|
||
/// Api平台商,设置(1000元)余额不足提醒
|
||
/// </summary>
|
||
public static decimal ApiMoneyNotice = 1000;// Convert.ToDecimal(ConfigExtensions.Configuration["Sufang:ApiMoneyNotice"]);
|
||
}
|
||
}
|