Sfoglia il codice sorgente

Merge branch 'dev/v1.2.5_fuwencai' of moapp/message into feature/v1.2.5

fuwencai 2 anni fa
parent
commit
6a3b338ee8
3 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 2 0
      handler/award/docs.go
  2. 0 1
      main.go
  3. 1 0
      rpc/jydocs.go

+ 2 - 0
handler/award/docs.go

@@ -15,6 +15,7 @@ func GiveDoc(userId string, data map[string]interface{}) {
 		welfareType = common.IntAll(data["welfareType"])
 		welfareContent = common.ObjToString(data["welfareContent"])
 	}
+	log.Println(userId, "-----", data)
 	switch welfareType {
 	case 1:
 		if len(welfareContent) == 0 {
@@ -24,6 +25,7 @@ func GiveDoc(userId string, data map[string]interface{}) {
 		docIds := strings.Split(welfareContent, ",")
 		for i := 0; i < len(docIds); i++ {
 			_, isBuy, _, err := rpc.GetDocDetail(userId, docIds[i])
+			log.Println(isBuy, "-------------", docIds[i])
 			if isBuy {
 				continue
 			}

+ 0 - 1
main.go

@@ -15,7 +15,6 @@ import (
 )
 
 func init() {
-
 	logger.SetConsole(false)
 	logger.SetRollingDaily("./logs", "message.log")
 }

+ 1 - 0
rpc/jydocs.go

@@ -42,6 +42,7 @@ func PayDoc(userId, docId string) error {
 		UserId: userId,
 		DocId:  docId,
 	})
+	log.Println(resp, "++++++++", err)
 	if err != nil {
 		log.Printf("%s SetUserCollect call error %v\n", userId, err)
 		return err