1
This commit is contained in:
@@ -69,7 +69,14 @@ func TestOrderReceived(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestOrderConfirm(t *testing.T) {
|
||||
err := api.OrderConfirm(27058923254735296)
|
||||
err := api.OrderConfirm(2000844470023437537)
|
||||
if utils.IsErrMatch(err, utils.Int2Str(ErrCodeOpFailed), []string{
|
||||
"订单已经确认过了",
|
||||
}) {
|
||||
err = nil
|
||||
} else {
|
||||
globals.SugarLogger.Warnf("mtwm AcceptOrRefuseOrder orderID:%s failed with err:%v", "1", err)
|
||||
}
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user