mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-07 21:48:31 -05:00
17 lines
326 B
Go
17 lines
326 B
Go
package dao
|
|
|
|
import (
|
|
"context"
|
|
"go-common/library/log"
|
|
"strconv"
|
|
)
|
|
|
|
func (d *Dao) Pub(c context.Context, uid int64, msg interface{}) error {
|
|
key := strconv.FormatInt(uid, 10)
|
|
err := d.PushSearchDataBus.Send(c, key, msg)
|
|
if err != nil {
|
|
log.Error("pub wallet change failed uid:%d, msg:%+v", uid, msg)
|
|
}
|
|
return err
|
|
}
|