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

PHP中文网
Release: 2023-02-28 14:38:01
Original
2084 people have browsed it

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

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

可以参考:http://www.php.cn/php-weizijiaocheng-299158.html

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

每天后台拿出那些“积分”!=0
php 有每天定时执行代码的功能吗?

以上就是 如果商城要做一个返利功能,该怎么实现 的内容,更多相关内容请关注PHP中文网(www.php.cn)!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!