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) {
|
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())
|
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,
|
AppID: req.AppID,
|
||||||
MerchantNo: req.MerchantNo,
|
MerchantNo: req.MerchantNo,
|
||||||
Channel: req.Channel.GetValue(),
|
Channel: req.Channel.GetValue(),
|
||||||
|
NotifyUrl: req.NotifyUrl,
|
||||||
CreateTime: &now,
|
CreateTime: &now,
|
||||||
UpdateTime: &now,
|
UpdateTime: &now,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue