diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index 52e6ec5bc..71264e2fa 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -257,7 +257,7 @@ func AcceptJob(ctx *jxcontext.Context, jobID int) (errCode string, err error) { return errCode, err } if userBill.AccountBalance < job.AvgPrice { - return model.ErrCodeAccountBalanceNotEnough, err + return model.ErrCodeAccountBalanceNotEnough, fmt.Errorf("用户余额不足,请充值!") } dao.Begin(db) defer func() { @@ -558,7 +558,7 @@ func SendJdDelivery(ctx *jxcontext.Context, dOrder *model.DeliveryOrder) (errCod return errCode, err } if userBill.AccountBalance < dOrder.PayPrice { - return model.ErrCodeAccountBalanceNotEnough, err + return model.ErrCodeAccountBalanceNotEnough, fmt.Errorf("用户余额不足,请充值!") } if len(sendDeliveryList) == 0 { return errCode, fmt.Errorf("未找到寄件人地址!") diff --git a/business/jxstore/cms/order.go b/business/jxstore/cms/order.go index 29a594c2c..89c283322 100644 --- a/business/jxstore/cms/order.go +++ b/business/jxstore/cms/order.go @@ -82,7 +82,7 @@ func Cash(ctx *jxcontext.Context, orderID, payType int, vendorPayType string) (e err = financial.AddUserBill(db, jxutils.GenBillID(), order.UserID) } if userBill.AccountBalance < order.PayPrice { - return model.ErrCodeAccountBalanceNotEnough, err + return model.ErrCodeAccountBalanceNotEnough, fmt.Errorf("用户余额不足,请充值!") } //用户一天只能提现一次 billExpends, err := dao.GetBillExpend(db, order.UserID, model.BillTypeCash, DayTimeBegin, DayTimeEnd) diff --git a/business/jxstore/event/event.go b/business/jxstore/event/event.go index d5c5b85f5..8b17af7b2 100644 --- a/business/jxstore/event/event.go +++ b/business/jxstore/event/event.go @@ -311,7 +311,7 @@ func DeleteMessageGroup(ctx *jxcontext.Context, groupID int, userID string) (err return errCode, err } if userBill.AccountBalance < quitPrice { - return model.ErrCodeAccountBalanceNotEnough, err + return model.ErrCodeAccountBalanceNotEnough, fmt.Errorf("用户余额不足,请充值!") } dao.Begin(db) defer func() {