mirror of https://github.com/certusone/dc4bc.git
gif naming
This commit is contained in:
parent
584b855ecf
commit
d3b153987c
|
@ -260,8 +260,7 @@ func (am *Machine) HandleQR() (string, error) {
|
|||
return "", fmt.Errorf("failed to marshal operation: %w", err)
|
||||
}
|
||||
|
||||
qrPath := filepath.Join(am.resultQRFolder, fmt.Sprintf("%s_%s_%s.gif", resultOperation.Type, resultOperation.ID,
|
||||
resultOperation.To))
|
||||
qrPath := filepath.Join(am.resultQRFolder, fmt.Sprintf("dc4bc_qr_%s-response.gif", resultOperation.ID))
|
||||
if err = am.qrProcessor.WriteQR(qrPath, operationBz); err != nil {
|
||||
return "", fmt.Errorf("failed to write QR: %w", err)
|
||||
}
|
||||
|
|
|
@ -270,7 +270,7 @@ func getOperationQRPathCommand() *cobra.Command {
|
|||
return fmt.Errorf("failed to get operations: %s", operation.ErrorMessage)
|
||||
}
|
||||
|
||||
operationQRPath := filepath.Join(qrCodeFolder, fmt.Sprintf("dc4bc_qr_%s", operationID))
|
||||
operationQRPath := filepath.Join(qrCodeFolder, fmt.Sprintf("dc4bc_qr_%s-request", operationID))
|
||||
|
||||
qrPath := fmt.Sprintf("%s.gif", operationQRPath)
|
||||
|
||||
|
|
Loading…
Reference in New Issue