Home >Web Front-end >HTML Tutorial >How to add experience value to Java web project_html/css_WEB-ITnose
I am building a website similar to Curiosity Daily. Daily login will add 10 experience points, browsing an article will give 5 experience points, and browsing up to 10 articles per day will give experience points. How should I implement it? Does anyone know? There is no similar case
This requirement is just to determine the table fields of the database, and create a count of article views surface.
Main fields uid, readTime. (User ID, reading time)
Every time you click on an article, insert a piece of data into this table, and then determine how many pieces the uid has in readTime today. If it is less than 10, add experience. If it's greater than that, don't add it.
Similar login is like this,
Or simply add two fields to your user table, and they won’t be visible in the table.