如果商城要做一个返利功能,该怎么实现

WBOY
Release: 2016-06-13 10:23:22
Original
1010 people have browsed it

如果商城要做一个返利功能,该如何实现
比如用户买了100元的东西,要返还他100个积分,每天返1积分,分100天返完。

这样的话数据库该如何设计,php大概要怎么写,说下思路好吗

------解决方案--------------------

探讨
php 有每天定时执行代码的功能吗?

------解决方案--------------------
探讨

引用:
一个字段叫做“积分”,买了100就给它加100,每天后台拿出那些“积分”!=0的,给它们减去1就行了。


每天后台拿出那些“积分”!=0
php 有每天定时执行代码的功能吗?
Related labels:
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