fix
This commit is contained in:
		| @@ -72,23 +72,11 @@ func (l *PaySuccessNotifyUserHandler) ProcessTask(ctx context.Context, t *asynq. | ||||
| 		return fmt.Errorf("解密参数失败: %+v", aesdecryptErr) | ||||
| 	} | ||||
|  | ||||
| 	// 敏感数据脱敏处理 | ||||
| 	desensitizedParams, err := l.desensitizeParams(decryptData) | ||||
| 	if err != nil { | ||||
| 		return fmt.Errorf("脱敏处理失败: %+v", err) | ||||
| 	} | ||||
|  | ||||
| 	// 对脱敏后的数据进行AES加密 | ||||
| 	encryptedParams, encryptErr := crypto.AesEncrypt(desensitizedParams, key) | ||||
| 	if encryptErr != nil { | ||||
| 		return fmt.Errorf("加密脱敏数据失败: %+v", encryptErr) | ||||
| 	} | ||||
|  | ||||
| 	query := &model.Query{ | ||||
| 		OrderId:     order.Id, | ||||
| 		UserId:      order.UserId, | ||||
| 		ProductId:   product.Id, | ||||
| 		QueryParams: encryptedParams, | ||||
| 		QueryParams: data.Params, | ||||
| 		QueryState:  "pending", | ||||
| 	} | ||||
| 	result, insertQueryErr := l.svcCtx.QueryModel.Insert(ctx, nil, query) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user