add domain_url

This commit is contained in:
moneroexamples 2019-05-22 10:38:35 +08:00
parent 86dea80659
commit 7fca3a5df7
2 changed files with 4 additions and 3 deletions

View File

@ -2332,8 +2332,8 @@ show_my_outputs(string tx_hash_str,
string pid_str = pod_to_hex(txd.payment_id); string pid_str = pod_to_hex(txd.payment_id);
string pid8_str = pod_to_hex(txd.payment_id8); string pid8_str = pod_to_hex(txd.payment_id8);
string shortcut_url = domain string shortcut_url = tx_prove
+ (tx_prove ? "/prove" : "/myoutputs") ? string("/prove") : string("/myoutputs")
+ '/' + tx_hash_str + '/' + tx_hash_str
+ '/' + xmr_address_str + '/' + xmr_address_str
+ '/' + viewkey_str; + '/' + viewkey_str;
@ -2367,6 +2367,7 @@ show_my_outputs(string tx_hash_str,
{"payment_id8" , pid8_str}, {"payment_id8" , pid8_str},
{"decrypted_payment_id8", string{}}, {"decrypted_payment_id8", string{}},
{"tx_prove" , tx_prove}, {"tx_prove" , tx_prove},
{"domain_url" , domain},
{"shortcut_url" , shortcut_url} {"shortcut_url" , shortcut_url}
}; };

View File

@ -78,7 +78,7 @@
{{/found_our_outputs}} {{/found_our_outputs}}
</h3> </h3>
<h4> <h4>
<a href="{{shortcut_url}}" target="_blank">link to this page</a> <a href="{{domain_url}}{{shortcut_url}}" target="_blank">link to this page</a>
</h4> </h4>
</div> </div>