Compare commits

..

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

2 changed files with 2 additions and 7 deletions

View File

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

View File

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