|
@@ -432,10 +432,10 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
|
|
|
|
|
|
//文库 非文库会员,确认免费下载机会状态 免费下载机会没有被消耗
|
|
|
//FreeDownload 0:未留资 有一次留资免费机会;2:已留资 下载机会未使用
|
|
|
- if userPower.Docs.DocStatus <= 0 && userPower.Docs.FreeDownload == 0 {
|
|
|
+ if docs.DocStatus <= 0 && docs.FreeDownload == 0 {
|
|
|
sc := this.MgoJy.Count("saleLeads", map[string]interface{}{"userid": userid, "source": map[string]interface{}{"$in": []string{"pc_library_details_free", "app_library_details_free", "wx_library_details_free", "h5_library_details_free"}}})
|
|
|
if sc > 0 {
|
|
|
- userPower.Docs.FreeDownload = 2 //已留资 下载机会未使用
|
|
|
+ docs.FreeDownload = 2 //已留资 下载机会未使用
|
|
|
}
|
|
|
}
|
|
|
}
|