<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>契约 on PlumePHP</title><link>https://plumephp.com/tags/%E5%A5%91%E7%BA%A6/</link><description>Recent content in 契约 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Mon, 24 May 2021 21:38:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E5%A5%91%E7%BA%A6/index.xml" rel="self" type="application/rss+xml"/><item><title>奖励预览契约架构：客户端看到的奖励和最终到账为什么会不一致</title><link>https://plumephp.com/game-server-reward-preview-contract-architecture/</link><pubDate>Mon, 24 May 2021 21:38:00 +0800</pubDate><guid>https://plumephp.com/game-server-reward-preview-contract-architecture/</guid><description>&lt;h2 id="背景看似边缘的功能往往会触到核心状态"&gt;背景：看似边缘的功能，往往会触到核心状态&lt;/h2&gt;
&lt;p&gt;玩家在界面上看到奖励预览，然后完成玩法并领取奖励。如果最终到账和预览不同，玩家会认为系统出错。但服务端知道，预览可能是基础奖励，最终奖励还受随机、加成、首通、活动倍数、背包容量和邮件托底影响。奖励预览需要一份明确契约。&lt;/p&gt;</description></item></channel></rss>