更新时间:2022-12-31 14:47:52
如果您想要做的是分享产品用户购买不同的设备;您需要:
If what you want to do is to share the products the user buys across different devices; you will need to:
将游戏状态保留在服务器中并从设备中获取。
Keep the game state in the server and obtain it from the device.
以某种方式识别用户,即用户名/通行证。
Identify users somehow, i.e. username/pass.
每次用户购买/消费/获取产品时更新服务器中的游戏状态
Update the game state in the server each time the user buys/consumes/gains products
如果您只需要在同一台设备上的不同安装***享状态,您只需使用设备ID来识别用户。
If you only need to share state across different installs on the same device, you could just use the device ID to identify the user.