test
This commit is contained in:
parent
57ca0180cb
commit
16d16890ce
|
|
@ -213,7 +213,6 @@ func (p *OrderRepoImpl) Used(ctx context.Context, id uint64) error {
|
|||
res := p.db.DB(ctx).
|
||||
Where(model.Order{
|
||||
ID: id,
|
||||
Status: vo.OrderStatusSuccess.GetValue(),
|
||||
}).
|
||||
Updates(model.Order{
|
||||
Status: vo.OrderStatusUse.GetValue(),
|
||||
|
|
@ -233,7 +232,6 @@ func (p *OrderRepoImpl) Expired(ctx context.Context, id uint64) error {
|
|||
res := p.db.DB(ctx).
|
||||
Where(model.Order{
|
||||
ID: id,
|
||||
Status: vo.OrderStatusSuccess.GetValue(),
|
||||
}).
|
||||
Updates(model.Order{
|
||||
Status: vo.OrderStatusExpired.GetValue(),
|
||||
|
|
|
|||
|
|
@ -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"}`
|
||||
|
|
|
|||
Loading…
Reference in New Issue