framebassman / ticket_store

App for sell tickets
https://chertopolokh.ru
0 stars 1 forks source link

Use barcode.tec-in.com for barcode generation #111

Closed framebassman closed 5 years ago

framebassman commented 5 years ago

Unfortunately, these code:

private String Barcodes()
{
    var sb = new StringBuilder();
    foreach (var ticket in _tickets)
    {
        var template = $@"
        ...
        <img src='http://barcode.tec-it.com/barcode.ashx?data={ticket.Number}&code=&multiplebarcodes=false&translate-esc=false&unit=Fit&dpi=96&imagetype=Gif&rotation=0&color=%23000000&bgcolor=%23ffffff&qunit=Mm&quiet=0' />
        ....
        ";
        sb.Append(template);
    }
    return sb.ToString();
}

throws the following error:

store_api      | [2019-09-08T14:22:26.1137355+00:00 INF] (TicketStore.Api//4) Receive payment: Payment {Id=0, Email="framebassman@gmail.com", Amount=2, Tickets=null}
store_api      | [2019-09-08T14:22:26.4204030+00:00 INF] (TicketStore.Api//4) Combine 1 tickets
store_api      | [2019-09-08T14:22:27.0580862+00:00 INF] (TicketStore.Api//4) Combined PDF with barcodes
store_api      | QSslSocket: cannot resolve CRYPTO_num_locks
store_api      | QSslSocket: cannot resolve CRYPTO_set_id_callback
store_api      | QSslSocket: cannot resolve CRYPTO_set_locking_callback
store_api      | QSslSocket: cannot resolve sk_free
store_api      | QSslSocket: cannot resolve sk_num
store_api      | QSslSocket: cannot resolve sk_pop_free
store_api      | QSslSocket: cannot resolve sk_value
store_api      | QSslSocket: cannot resolve SSL_library_init
store_api      | QSslSocket: cannot resolve SSL_load_error_strings
store_api      | QSslSocket: cannot resolve SSLv3_client_method
store_api      | QSslSocket: cannot resolve SSLv23_client_method
store_api      | QSslSocket: cannot resolve SSLv3_server_method
store_api      | QSslSocket: cannot resolve SSLv23_server_method
store_api      | QSslSocket: cannot resolve X509_STORE_CTX_get_chain
store_api      | QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
store_api      | QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
store_api      | QSslSocket: cannot resolve SSLeay
store_api      | QSslSocket: cannot call unresolved function CRYPTO_num_locks
store_api      | QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
store_api      | QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback
store_api      | QSslSocket: cannot call unresolved function SSL_library_init
store_api      | QSslSocket: cannot call unresolved function SSLv23_client_method
store_api      | QSslSocket: cannot call unresolved function sk_num
store_api      | [2019-09-08T14:22:28.6901337+00:00 INF] (TicketStore.Api//4) Send ticket to @"framebassman@gmail.com"