Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建虚拟货币,假设客户完成付款,因此我们可以将他们重定向到特定页面,例如 www.example.com/generate10coins,但它应该是万无一失的,因为客户可以轻松地继续引用页面并继续创建更多代币。
付款后在您的数据库中保存一个散列令牌。
然后将用户重定向到带有令牌作为$_GET数据的 url
$_GET
然后当第一次到达页面时,将数据库中的活动保存为完成。
每次redirect.php?token=generate10coins到达或刷新页面时,都会进行数据库查询以检查令牌是否完整。
redirect.php?token=generate10coins