feat(wangyihao): record public article URL on publish and back-fill responses
Build https://www.163.com/dy/article/<docId>.html when wangyihao tasks finish, and normalize publish-record responses + monitoring alias inputs to surface the same public URL when the doc id is known. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -79,10 +79,15 @@ func monitoringAliasOriginalURL(input *monitoringArticleAliasInput) (string, str
|
||||
if input == nil {
|
||||
return "", ""
|
||||
}
|
||||
if strings.TrimSpace(input.PlatformID) == "baijiahao" {
|
||||
switch strings.TrimSpace(input.PlatformID) {
|
||||
case "baijiahao":
|
||||
if articleID := strings.TrimSpace(monitoringStringValue(input.ExternalArticleID)); articleID != "" {
|
||||
return baijiahaoPublishedArticleURL(articleID), "high"
|
||||
}
|
||||
case "wangyihao":
|
||||
if articleID := strings.TrimSpace(monitoringStringValue(input.ExternalArticleID)); articleID != "" {
|
||||
return wangyihaoPublishedArticleURL(articleID), "high"
|
||||
}
|
||||
}
|
||||
if value := strings.TrimSpace(monitoringStringValue(input.ExternalArticleURL)); value != "" {
|
||||
return value, "high"
|
||||
|
||||
Reference in New Issue
Block a user