|
@@ -179,6 +179,7 @@ func EventInfoAdd(start, end int64) {
|
|
|
if len(uarr) > 0 {
|
|
|
biddingId := uarr[0]
|
|
|
//获取标讯标题
|
|
|
+ log.Println("biddingId:", biddingId)
|
|
|
bdata, ok := config.MgoBid.FindById("bidding", biddingId, `{"title":1}`)
|
|
|
if ok && bdata != nil && len(*bdata) > 0 {
|
|
|
name = gconv.String((*bdata)["title"])
|
|
@@ -420,6 +421,9 @@ func AppClient(urls string) string {
|
|
|
// return title href
|
|
|
func GetInfoByBid(bid string) (string, string) {
|
|
|
title, href := "", ""
|
|
|
+ if bid == "" {
|
|
|
+ return "", ""
|
|
|
+ }
|
|
|
res, _ := config.MgoBid.FindById("bidding", bid, `{"title":1,"href":1}`)
|
|
|
|
|
|
if res == nil || len(*res) == 0 {
|