<?php require_once __DIR__ . '/../app/bootstrap.php'; $amount=(float)($_GET['amount']??0); $rate=(float)setting('reward_point_rate','1'); $value=(float)setting('reward_point_value','1'); App\Core\Response::json(['ok'=>true,'amount'=>$amount,'points'=>floor($amount*$rate/100),'wallet_value'=>floor($amount*$rate/100)*$value]);
