cmb
This commit is contained in:
parent
d6a70119ce
commit
5dbd4762b4
|
|
@ -17,7 +17,7 @@ import (
|
|||
|
||||
func (v *Cmb) OrderConsume(ctx context.Context, order *bo.OrderBo) (outRequestNo string, err error) {
|
||||
|
||||
if order.Status.IsWait() {
|
||||
if !order.Status.IsWait() {
|
||||
return outRequestNo, fmt.Errorf("订单状态错误,%s", order.Status.GetText())
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ func (p *OrderRepoImpl) Create(ctx context.Context, req *bo.OrderBo) (*bo.OrderB
|
|||
AppID: req.AppID,
|
||||
MerchantNo: req.MerchantNo,
|
||||
Channel: req.Channel.GetValue(),
|
||||
NotifyUrl: req.NotifyUrl,
|
||||
CreateTime: &now,
|
||||
UpdateTime: &now,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue