mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-19 15:53:53 +02:00
More preparations for prices per registrar option
This commit is contained in:
parent
75512b7da9
commit
6183744174
3 changed files with 44 additions and 11 deletions
|
@ -377,8 +377,15 @@ function processDomainCheck($conn, $db, $xml, $trans, $clid) {
|
|||
$returnValue = getDomainPrice($db, $domainName, $tld_id, $date_add, $commandName, $clid);
|
||||
$price = $returnValue['price'];
|
||||
|
||||
$sth = $db->prepare("SELECT price FROM domain_restore_price WHERE tldid = ? LIMIT 1");
|
||||
$sth->execute([$tld_id]);
|
||||
$sth = $db->prepare("
|
||||
SELECT price
|
||||
FROM domain_restore_price
|
||||
WHERE tldid = ?
|
||||
AND (registrar_id = ? OR registrar_id IS NULL)
|
||||
ORDER BY registrar_id DESC
|
||||
LIMIT 1
|
||||
");
|
||||
$sth->execute([$tld_id, $clid]);
|
||||
$restore_price = $sth->fetchColumn();
|
||||
|
||||
if ($commandName == 'restore') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue