feat: refactoring adjustments for reward page is ready

This commit is contained in:
RockYang
2024-03-18 18:28:34 +08:00
parent 30e6e963b3
commit e9a3510346
5 changed files with 32 additions and 18 deletions

View File

@@ -41,7 +41,7 @@ func parseTransactionMessage(xmlData string) *Message {
}
if se.Name.Local == "weapp_path" || se.Name.Local == "url" {
if err := decoder.DecodeElement(&value, &se); err == nil {
if strings.Contains(value, "trans_id=") {
if strings.Contains(value, "?trans_id=") || strings.Contains(value, "?id=") {
message.Url = value
}
}