yue不足
This commit is contained in:
@@ -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("未找到寄件人地址!")
|
||||
|
||||
Reference in New Issue
Block a user