|
@@ -570,18 +570,20 @@ func DelPdfPack(userId string, entId int64) {
|
|
|
AccountId: userId,
|
|
|
ResourceName: "pdf下载包",
|
|
|
})
|
|
|
- if err != nil || res == nil {
|
|
|
+ if err != nil {
|
|
|
log.Println("FindAccountBalance err", err.Error(), res)
|
|
|
return
|
|
|
}
|
|
|
- for _, datum := range res.Data {
|
|
|
- if datum.Number > 0 {
|
|
|
- _, err = ResourceCenterRpc.EntAccountRecovery(ctx, &resourcesCenterclient.EntOperateReq{
|
|
|
- OperateAccountId: userId,
|
|
|
- CompanyId: entId,
|
|
|
- ResourceType: datum.ResourceType,
|
|
|
- })
|
|
|
- log.Println("EntAccountRecovery err", err.Error())
|
|
|
+ if res != nil {
|
|
|
+ for _, datum := range res.Data {
|
|
|
+ if datum.Number > 0 {
|
|
|
+ _, err = ResourceCenterRpc.EntAccountRecovery(ctx, &resourcesCenterclient.EntOperateReq{
|
|
|
+ OperateAccountId: userId,
|
|
|
+ CompanyId: entId,
|
|
|
+ ResourceType: datum.ResourceType,
|
|
|
+ })
|
|
|
+ log.Println("EntAccountRecovery err", err.Error())
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|