Home >Backend Development >PHP Tutorial >PHP Development Documentation Membership Fee 1 Issue_PHP Tutorial
Introduction
The latest project - membership fee, aims to present it to users in a better presentation form, and adds new features (membership mechanism).
Index
Flow chart
1> Display interface
2> Get discounted price
Interface description
http request script (curl or socket)
Test data
Flowchart
The demo: is displayed through the url, and the mst inside is the parameter. Through different Parameters are displayed. For example: http://www.demo.com/?mst=1 indicates the demo style with parameter 1.
Display interface (4 situations)
Get discount price
Interface description
1. Activate premium membership
psid=2
pstype=101
2. Activate membership
psid=1
pstype=101
3. [Member/Premium Member] price information
Wiki address: http://wiki.1verge.net/projects:premium:v2:product_rules_api#Get level information based on member level id
4. [Whether you are a member]
Wiki address: http://wiki. 1verge.net/projects:premium:v2:verify_center_api#Get the current membership level
5. [Discount information]
wiki address: http://wiki.1verge.net/projects:premium:v2:operation_api#According to User id_service id_service type_number of service cycles_obtain the discount strategy that current users can enjoy
6. Monthly subscription programs + the right to watch + premium members will display "You are a senior member and can watch this program for free"
7. Only monthly subscription programs + the right to watch + premium members will be prompted to "renew"
8. Except for 6 + the right to watch, the "expiration date" will be displayed
Can be found in Premium.class.php In the list_shows_by_pkgid function, continue to encapsulate the calling function
http request script (curl or socket)