Skip to content

Commit a538579

Browse files
committed
bugfix
1 parent 4264ea4 commit a538579

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/SSCMS.Core/StlParser/StlElement/StlImage.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public static async Task<object> ParseAsync(IParseManager parseManager)
8080
if (!string.IsNullOrEmpty(channelIndex))
8181
{
8282
isGetPicUrlFromAttribute = true;
83+
parseManager.ContextInfo.ContextType = ParseType.Channel;
8384
}
8485
}
8586
else if (StringUtils.EqualsIgnoreCase(name, ChannelName))
@@ -88,6 +89,7 @@ public static async Task<object> ParseAsync(IParseManager parseManager)
8889
if (!string.IsNullOrEmpty(channelName))
8990
{
9091
isGetPicUrlFromAttribute = true;
92+
parseManager.ContextInfo.ContextType = ParseType.Channel;
9193
}
9294
}
9395
else if (StringUtils.EqualsIgnoreCase(name, Parent))
@@ -96,6 +98,7 @@ public static async Task<object> ParseAsync(IParseManager parseManager)
9698
{
9799
upLevel = 1;
98100
isGetPicUrlFromAttribute = true;
101+
parseManager.ContextInfo.ContextType = ParseType.Channel;
99102
}
100103
}
101104
else if (StringUtils.EqualsIgnoreCase(name, UpLevel))
@@ -104,6 +107,7 @@ public static async Task<object> ParseAsync(IParseManager parseManager)
104107
if (upLevel > 0)
105108
{
106109
isGetPicUrlFromAttribute = true;
110+
parseManager.ContextInfo.ContextType = ParseType.Channel;
107111
}
108112
}
109113
else if (StringUtils.EqualsIgnoreCase(name, TopLevel))
@@ -112,6 +116,7 @@ public static async Task<object> ParseAsync(IParseManager parseManager)
112116
if (topLevel >= 0)
113117
{
114118
isGetPicUrlFromAttribute = true;
119+
parseManager.ContextInfo.ContextType = ParseType.Channel;
115120
}
116121
}
117122
else if (StringUtils.EqualsIgnoreCase(name, Context))
@@ -166,7 +171,6 @@ private static async Task<object> ParseAsync(IParseManager parseManager, NameVal
166171
}
167172

168173
var contextType = contextInfo.ContextType;
169-
170174
var picUrl = string.Empty;
171175
if (!string.IsNullOrEmpty(src))
172176
{

0 commit comments

Comments
 (0)