当前位置:网站首页>Service charge and time setting code sharing involved in crmeb withdrawal process
Service charge and time setting code sharing involved in crmeb withdrawal process
2022-06-25 12:28:00 【Procedure 15528175269】
Some businesses use CRMEB In the process of operating e-commerce platform , It involves the payment of commission reward and cash withdrawal , When the membership is large and the number of commissions is large , If it is a manual payment , So much work , When it comes to human capital , If the platform looks for the bank to make payment in batches , The bank will also charge a handling fee , Some e-commerce merchants find banks to pay in batches , After a fixed EXCEL Submit the template to the bank , Some banks may charge a service fee of several yuan per transaction , Every day if there are hundreds of orders in time , Then the transfer cost of this piece is very high

Moreover, some users have no cash withdrawal threshold ,1 Yuan or 10 Yuan will initiate cash withdrawal to members , Then the cost is on the high side , The following content is the shared content and partial code of user withdrawal function for developing e-commerce system
How to deal with this problem ?
Yes CRMEB Develop a small function , Set the function of withdrawal service fee
1. The way 1: Set a handling charge of a few percent of each withdrawal .
2. The way 2: It can also be set to deduct a service charge of several yuan for each withdrawal platform
In addition, the e-commerce platform sometimes also wants to set the Commission withdrawal time , at present CRMEB There's nothing in the , Then it is required to set the withdrawal time period ,
For example, set the days of the week that can be raised ? What time is the withdrawal time of that day ? On the one hand, these designs can enable the financial department to centralize the disposal , It is also convenient to manage the withdrawal time uniformly , Centralized audit
In addition, if the system development has set up automatic cash withdrawal to account , Think about it based on platform technology , Cash withdrawal during working hours on weekdays is the best , In case the system presents bug Or other account disclosure problems , Cash withdrawals have been funded , The platform can't audit and trace .
therefore CRMEB It is required to set the function of withdrawal time
1. Withdrawal can be set on the days of each week , For example, week 1, Zhou 3 And so on.
2. The withdrawal period can be set , For example, in the morning 10:00 In the afternoon 5:00
When the user initiates withdrawal , There will be another problem , Some users initiate multiple withdrawals a day , This will also increase the workload of cash withdrawal
How to deal with the problem that the same user initiates multiple withdrawals every day ?
Be able to handle : Develop the function of limiting the number of withdrawals per day , This limits the number of users per day
Here are some crmeb Commission fee for withdrawal , The program code of withdrawal time and withdrawal frequency
$hour = date(‘H’);
if($cashTime)
{
if(!in_array($hour, explode(‘,’, $cashTime)))
{
return app(‘json’)->fail($cashMsg ? $cashMsg: ‘ Not within the time allowed for withdrawal ’);
}
}
if( UserExtract::where(‘uid’, $user[‘uid’])->where(‘add_time’, ‘>=’, strtotime(date(‘Y-m-d’)))->count() >= $cashCount ){
return app(‘json’)->fail(‘ Only cash withdrawal is allowed every day ’ . $cashCount . ‘ Time !’);
}
// Service Charge
$store_fee = bcdiv(bcmul($data[‘money’],$store_fee_rate,2),100,2);
// Actual amount received
$realMoney = bcsub($data[‘money’], $store_fee, 2);
$time = time();
边栏推荐
- plt. GCA () picture frame and label
- [论]Learning Dynamic and Hierarchical Traffic Spatiotemporal Features with Transformer
- Gradle知识点
- Does sklearex make your sklearn machine learning model training fly fast?
- 【OceanBase】OceanBase简介及其与MySQL的比较
- A set of automated paperless office system (oa+ approval process) source code: with data dictionary
- Upgrade opsenssh to 8.8p1
- The cloud native data lake has passed the evaluation and certification of the ICT Institute with its storage, computing, data management and other capabilities
- K8s, docker compose install MySQL 8.0.18
- Explanation of ideas and sharing of pre-processing procedures for 2021 US game D (with pre-processing data code)
猜你喜欢

Time series analysis - how to use unit root test (ADF) correctly?

What is principal component analysis? Dimension reduction of classical case analysis variables

一篇文章讲清楚MySQL的聚簇/联合/覆盖索引、回表、索引下推

An article clearly explains MySQL's clustering / Federation / coverage index, back to table, and index push down

plt.gca()画框及打标签

confluence7.4.X升级实录

ECSHOP quickly purchases goods, simplifies the shopping process, and improves the user experience through one-step shopping

【数据中台】数据中台的OneID是个什么鬼,主数据它不香吗?

19、wpf之事件转命令实现MVVM架构

Black Horse Chang Shopping Mall - - - 3. Gestion des produits de base
随机推荐
Découvrir gaussdb (pour redis): une comparaison complète avec Codis
揭秘GaussDB(for Redis):全面对比Codis
The R language uses the follow up The plot function visualizes the longitudinal follow-up map of multiple ID (case) monitoring indicators, and uses stress The type parameter specifies the line type of
An article clearly explains MySQL's clustering / Federation / coverage index, back to table, and index push down
网络 | traceroute,路由跟踪命令,用于确定 IP 数据包访问目标地址所经过的路径。
Kotlin study notes
Rank sum ratio comprehensive evaluation method for common models in mathematical modeling
ThinkPHP upload image compression size
Mpai data science platform SVM support vector machine classification \ explanation of regression parameter adjustment
ECSHOP commodity wholesale multi attribute multi specification multi inventory batch purchase ECSHOP wholesale plug-in ECSHOP multi attribute order
Execution order of MySQL query statements join, on and where
动态代理
Arm V7 coprocessor
Dark horse shopping mall ---3 Commodity management
Understanding and construction of devsecops and Devops
Thinkphp3 count ` *'problem
Arm immediate
A set of automated paperless office system (oa+ approval process) source code: with data dictionary
设置图片的透明度从左到右渐变
thinkphp3.2.5 GIF. class. php for php7.4