|
@@ -24,6 +24,10 @@ func DocGetCheck(docId, userId, appId string) stdlib.DocGetCheckResp {
|
|
|
// docPrice = docData["price"].(int)
|
|
|
docStatistics := model.DocStatistics{}
|
|
|
jyDocsRpcUtil.GetJyDocsDB().First(&docStatistics, &model.DocStatistics{AppId: appId, DocId: docId})
|
|
|
+ ossPdfId := ""
|
|
|
+ if isbuy {
|
|
|
+ ossPdfId = doc.OssPdfId
|
|
|
+ }
|
|
|
docCheck := stdlib.DocGetCheckResp{
|
|
|
Code: 1,
|
|
|
Msg: "ok",
|
|
@@ -41,7 +45,7 @@ func DocGetCheck(docId, userId, appId string) stdlib.DocGetCheckResp {
|
|
|
DocSummary: doc.DocSummary,
|
|
|
DocFileType: int64(doc.DocFileType),
|
|
|
PreviewImgId: doc.PreviewImgId,
|
|
|
- OssPdfId: doc.OssPdfId,
|
|
|
+ OssPdfId: ossPdfId,
|
|
|
},
|
|
|
}
|
|
|
return docCheck
|