diff --git a/internal/data/repoimpl/order.go b/internal/data/repoimpl/order.go index 13535fe..81565b6 100644 --- a/internal/data/repoimpl/order.go +++ b/internal/data/repoimpl/order.go @@ -212,8 +212,7 @@ func (p *OrderRepoImpl) Used(ctx context.Context, id uint64) error { res := p.db.DB(ctx). Where(model.Order{ - ID: id, - Status: vo.OrderStatusSuccess.GetValue(), + ID: id, }). Updates(model.Order{ Status: vo.OrderStatusUse.GetValue(), @@ -232,8 +231,7 @@ func (p *OrderRepoImpl) Expired(ctx context.Context, id uint64) error { res := p.db.DB(ctx). Where(model.Order{ - ID: id, - Status: vo.OrderStatusSuccess.GetValue(), + ID: id, }). Updates(model.Order{ Status: vo.OrderStatusExpired.GetValue(), diff --git a/internal/pkg/cmb/sm2_test.go b/internal/pkg/cmb/sm2_test.go index afffc01..73ca00e 100644 --- a/internal/pkg/cmb/sm2_test.go +++ b/internal/pkg/cmb/sm2_test.go @@ -39,9 +39,7 @@ func TestDecrypt(t *testing.T) { } func TestEncryptDecrypt(t *testing.T) { - //priKey := "44c33b565308062183ec53e7e9171eeab1a3f5df1f116bceb420f039eab469d4" priKey := "8d39ff3d2559258c163f4510f082727f51531e1953ab203d5ab1ea4a6d94fd73" - //pukKey := "0479c4d66ffc74d5e0ff667d53da72f63f2c091cf4ee5fc3cc53142bc104dd68ffe332cf1151ce07e0cc62d64c9c7c3b5c94b161668d281691cab2424013eadfb2" pukKey := "04D827A7DBAAA358CE45B8C7794A7F54819F5C175005A702370E47F135EF6F5F9732758B1474F218419FE9E87F90C28C3B05F08254C651DB27DF35FAE67B77B2E4" content := `{"name":"zhangxx","phoneNo":"137xxxxxxxx"}`