Compare commits

..

No commits in common. "ac14cabe1b0c9397f16c6be8ff6e707934ab34ad" and "92364e194fc93250ec4e28d5184b6588f7775ed6" have entirely different histories.

2 changed files with 2 additions and 7 deletions

View File

@ -150,7 +150,6 @@ var MsgFlags = map[int]string{
const ( const (
ErrorCreateFeedback = "请勿重复提交" ErrorCreateFeedback = "请勿重复提交"
ErrorBalanceInsufficient = "余额不足"
) )
// GetMsg 获取状态码对应信息 // GetMsg 获取状态码对应信息

View File

@ -3,7 +3,6 @@ package cast
import ( import (
"context" "context"
"errors" "errors"
"fmt"
"fonchain-fiee/api/accountFiee" "fonchain-fiee/api/accountFiee"
"fonchain-fiee/api/bundle" "fonchain-fiee/api/bundle"
"fonchain-fiee/api/cast" "fonchain-fiee/api/cast"
@ -11,7 +10,6 @@ import (
"fonchain-fiee/pkg/e" "fonchain-fiee/pkg/e"
"fonchain-fiee/pkg/service" "fonchain-fiee/pkg/service"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"go.uber.org/zap"
"strconv" "strconv"
) )
@ -166,10 +164,8 @@ func CheckUserBundleBalance(userID int32) (err error) {
if err != nil { if err != nil {
return return
} }
zap.L().Info("CheckUserBundleBalance", zap.Any("resp", resp))
fmt.Println("CheckUserBundleBalance resp", resp)
if resp.AccountNumber-resp.AccountConsumptionNumber <= 0 { if resp.AccountNumber-resp.AccountConsumptionNumber <= 0 {
err = errors.New(e.ErrorBalanceInsufficient) err = errors.New(e.ErrNoBalance)
return return
} }
return return