@@ -80,6 +80,7 @@ public static async Task<object> ParseAsync(IParseManager parseManager)
80
80
if ( ! string . IsNullOrEmpty ( channelIndex ) )
81
81
{
82
82
isGetPicUrlFromAttribute = true ;
83
+ parseManager . ContextInfo . ContextType = ParseType . Channel ;
83
84
}
84
85
}
85
86
else if ( StringUtils . EqualsIgnoreCase ( name , ChannelName ) )
@@ -88,6 +89,7 @@ public static async Task<object> ParseAsync(IParseManager parseManager)
88
89
if ( ! string . IsNullOrEmpty ( channelName ) )
89
90
{
90
91
isGetPicUrlFromAttribute = true ;
92
+ parseManager . ContextInfo . ContextType = ParseType . Channel ;
91
93
}
92
94
}
93
95
else if ( StringUtils . EqualsIgnoreCase ( name , Parent ) )
@@ -96,6 +98,7 @@ public static async Task<object> ParseAsync(IParseManager parseManager)
96
98
{
97
99
upLevel = 1 ;
98
100
isGetPicUrlFromAttribute = true ;
101
+ parseManager . ContextInfo . ContextType = ParseType . Channel ;
99
102
}
100
103
}
101
104
else if ( StringUtils . EqualsIgnoreCase ( name , UpLevel ) )
@@ -104,6 +107,7 @@ public static async Task<object> ParseAsync(IParseManager parseManager)
104
107
if ( upLevel > 0 )
105
108
{
106
109
isGetPicUrlFromAttribute = true ;
110
+ parseManager . ContextInfo . ContextType = ParseType . Channel ;
107
111
}
108
112
}
109
113
else if ( StringUtils . EqualsIgnoreCase ( name , TopLevel ) )
@@ -112,6 +116,7 @@ public static async Task<object> ParseAsync(IParseManager parseManager)
112
116
if ( topLevel >= 0 )
113
117
{
114
118
isGetPicUrlFromAttribute = true ;
119
+ parseManager . ContextInfo . ContextType = ParseType . Channel ;
115
120
}
116
121
}
117
122
else if ( StringUtils . EqualsIgnoreCase ( name , Context ) )
@@ -166,7 +171,6 @@ private static async Task<object> ParseAsync(IParseManager parseManager, NameVal
166
171
}
167
172
168
173
var contextType = contextInfo . ContextType ;
169
-
170
174
var picUrl = string . Empty ;
171
175
if ( ! string . IsNullOrEmpty ( src ) )
172
176
{
0 commit comments