|
@@ -11,6 +11,7 @@ import (
|
|
|
"fmt"
|
|
|
"jfw/public"
|
|
|
"log"
|
|
|
+
|
|
|
"strings"
|
|
|
"time"
|
|
|
|
|
@@ -33,6 +34,7 @@ var mongodb = public.MQFW
|
|
|
{{end}}
|
|
|
**/
|
|
|
func Ad(s_code string, n int) []adInfo {
|
|
|
+ log.Println("@@@@@")
|
|
|
defer func() {
|
|
|
if r := recover(); r != nil {
|
|
|
log.Println("[E]", r)
|
|
@@ -60,7 +62,7 @@ func Ad(s_code string, n int) []adInfo {
|
|
|
son := (*res)["a_son"].([]interface{})
|
|
|
resmap := adHandle(son, s_code)
|
|
|
if len(resmap) > 0 {
|
|
|
- redis.PutCKV("other", "ad_"+s_code, resmap)
|
|
|
+ redis.PutCKV("other", "ad_"+s_code, son)
|
|
|
}
|
|
|
return resmap
|
|
|
}
|