# Rankings
# Definition
The rankings configured here refer to the rankings of friends who play the same game that the developer displays in Weixin Search and the Mini Game center after reporting the data in a standard format.
Note: This configuration only applies to rankings displayed in Weixin Search and the Mini Game center. It does not affect in-game rankings implemented using hosted data or primary domain and open data domain methods.
# Scenarios
This configuration applies to Weixin Search and the Mini Game center.
- Weixin Search
- Mini Game center
# Configuration Process and Fields
# 1. Report backend data in a standard format
Refer to the reporting API documentation: wx.setUserCloudStorage (a frontend API) and storage.setUserStorage (a backend API).
# 2. After logging on to the MP admin console, go to Game Settings > Ranking Configuration to complete the configuration
Field | Description |
---|---|
Unique ranking ID | The key value set when data is reported in the backend. It is used to identify reported scores. |
Ranking name | The name of the ranking displayed in the Mini Game center, e.g. Score Ranking. |
Update period | The period used to filter reported data. For example, set this value to one week to filter and update user scores each week. |
Ranking data type | Configures the type of data displayed in the rankings. Integer: Displays the actual value reported, e.g. 100, 99, or 98. Enumerated: Displays the text escaped from the reported values, e.g. Diamond or Gold. |
Ranking order | Ascending: Ranks values from small to large, with small values at the top of the ranking. Descending: Ranks values from large to small, with large values at the top of the ranking. |
Unit abbreviations | Supports custom units, such as min, sec, or lv. |