|
@@ -555,7 +555,7 @@ func PdfRecycle(ids string, entId int) {
|
|
|
if data != nil && len(*data) > 0 {
|
|
|
for _, m := range *data {
|
|
|
positionId := qutil.InterfaceToStr(m["positionId"])
|
|
|
- DelPdfPack(positionId, int64(entId))
|
|
|
+ go DelPdfPack(positionId, int64(entId))
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -570,8 +570,8 @@ func DelPdfPack(userId string, entId int64) {
|
|
|
AccountId: userId,
|
|
|
ResourceName: "pdf下载包",
|
|
|
})
|
|
|
- if err != nil {
|
|
|
- log.Println("FindAccountBalance err", err.Error())
|
|
|
+ if err != nil || res == nil {
|
|
|
+ log.Println("FindAccountBalance err", err.Error(), res)
|
|
|
return
|
|
|
}
|
|
|
for _, datum := range res.Data {
|