Home > Web Front-end > HTML Tutorial > How to add experience value to Java web project_html/css_WEB-ITnose

How to add experience value to Java web project_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:43:46
Original
1596 people have browsed it

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


Reply to the discussion (solution)

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.


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template