Browse Source

feat(wechat): remove unnecessary feature definitions

- remove feature: `WeChatOfficialFeatures.EnableAuthorization`
pull/1223/head
colin 10 months ago
parent
commit
e43811d665
  1. 12
      aspnet-core/framework/wechat/LINGYUN.Abp.WeChat.Official/LINGYUN/Abp/WeChat/Official/Features/WeChatOfficialFeatureDefinitionProvider.cs
  2. 2
      aspnet-core/framework/wechat/LINGYUN.Abp.WeChat.Official/LINGYUN/Abp/WeChat/Official/Features/WeChatOfficialFeatures.cs

12
aspnet-core/framework/wechat/LINGYUN.Abp.WeChat.Official/LINGYUN/Abp/WeChat/Official/Features/WeChatOfficialFeatureDefinitionProvider.cs

@ -19,12 +19,12 @@ public class WeChatOfficialFeatureDefinitionProvider : FeatureDefinitionProvider
description: L("Features:WeChat.Official.EnableDesc"), description: L("Features:WeChat.Official.EnableDesc"),
valueType: new ToggleStringValueType(new BooleanValueValidator())); valueType: new ToggleStringValueType(new BooleanValueValidator()));
officialEnableFeature.CreateChild( //officialEnableFeature.CreateChild(
name: WeChatOfficialFeatures.EnableAuthorization, // name: WeChatOfficialFeatures.EnableAuthorization,
defaultValue: true.ToString(), // defaultValue: true.ToString(),
displayName: L("Features:WeChat.Official.EnableAuthorization"), // displayName: L("Features:WeChat.Official.EnableAuthorization"),
description: L("Features:WeChat.Official.EnableAuthorizationDesc"), // description: L("Features:WeChat.Official.EnableAuthorizationDesc"),
valueType: new ToggleStringValueType(new BooleanValueValidator())); // valueType: new ToggleStringValueType(new BooleanValueValidator()));
} }
protected LocalizableString L(string name) protected LocalizableString L(string name)

2
aspnet-core/framework/wechat/LINGYUN.Abp.WeChat.Official/LINGYUN/Abp/WeChat/Official/Features/WeChatOfficialFeatures.cs

@ -8,5 +8,5 @@ public static class WeChatOfficialFeatures
public const string Enable = GroupName + ".Enable"; public const string Enable = GroupName + ".Enable";
public const string EnableAuthorization = GroupName + ".EnableAuthorization"; //public const string EnableAuthorization = GroupName + ".EnableAuthorization";
} }

Loading…
Cancel
Save