|
@@ -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
|
|
|
}
|