code
This commit is contained in:
@ -389,7 +389,7 @@ func (l ListenSymbol) Exec(arg interface{}) error {
|
|||||||
//发送邮箱
|
//发送邮箱
|
||||||
emails := strings.Split(configResp.ConfigValue, ",")
|
emails := strings.Split(configResp.ConfigValue, ",")
|
||||||
for _, email := range emails {
|
for _, email := range emails {
|
||||||
emailhelper.SendNoticeEmail(email, chain, symbol.Token0Symbol+"/"+symbol.Token1Symbol, symbol.Pair)
|
emailhelper.SendNoticeEmail(email, chain, symbol.Token0Symbol+"/"+symbol.Token1Symbol, symbol.TargetToken)
|
||||||
}
|
}
|
||||||
// 清除数据
|
// 清除数据
|
||||||
db.Model(&models.SpiderListenSymbol{}).Where("coin = ? AND currency = ?", symbol.Token0Symbol, symbol.Token1Symbol).Delete(&models.SpiderListenSymbol{})
|
db.Model(&models.SpiderListenSymbol{}).Where("coin = ? AND currency = ?", symbol.Token0Symbol, symbol.Token1Symbol).Delete(&models.SpiderListenSymbol{})
|
||||||
|
|||||||
Reference in New Issue
Block a user