AI摘要
小武站

所有修改位置总结:
1️⃣ 位置1:积分抵扣启用检查(zibpay-func.php 第584行)
// return false; //注释掉
2️⃣ 位置2:积分抵扣UI显示(zibpay-func.php 第538行)
// 去掉条件检查
if (!$is_initiate_pay) {
位置3:积分抵扣处理(zibpay-order.php 第478行)
// 去掉条件检查
if ($user_id && !empty($post_data['points_deduction'])) {
位置1:zibpay_is_allow_points_deduction 函数(第584行)
文件: wp-content/themes/zibll/zibpay/functions/zibpay-func.php
// 原代码:
return false;
// 修改为:
// return false;
位置2:积分抵扣UI显示代码(第538行)
文件: wp-content/themes/zibll/zibpay/functions/zibpay-func.php
修改内容:
// 原代码:
if (!$is_initiate_pay && zibpay_is_allow_points_deduction($pay_type)) {
// 修改为:
if (!$is_initiate_pay) {
位置3:积分抵扣处理逻辑(第478行)
文件: wp-content/themes/zibll/zibpay/functions/zibpay-order.php
修改内容:
// 原代码:
if ($user_id && !empty($post_data['points_deduction']) && zibpay_is_allow_points_deduction($order_type)) {
$points_deduction_rate = _pz('points_deduction_rate', 30);
// 修改为:
if ($user_id && !empty($post_data['points_deduction'])) {
$points_deduction_rate = 30;
若您发现内容有误或已失效,请在下方 留言 反馈,我会及时核实更新。
© 版权声明
本网站部分文件及内容来自互联网,版权归原作者所有。转载需授权,侵权必究。部分内容受《网络出版服务管理规定》保护,未经许可禁止商业使用。
THE END








暂无评论内容