feat: 新增电话拨打功能及相关配置,完善农产品分类与地区数据
- 新增商家/信息详情页电话拨打接口,支持每日额度限制与拨打日志记录 - 新增平台免责声明内容及协议接口,完善用户服务协议相关配置 - 新增农产品分类图标与上市角标展示,优化分类管理界面样式 - 新增全国行政区划工具类与城市选择组件,重构地区数据结构 - 新增SSH自检与部署脚本,完善项目部署流程
这个提交包含在:
@@ -78,12 +78,14 @@ class FcConfig
|
||||
}
|
||||
|
||||
return [
|
||||
'postMode' => $postMode,
|
||||
'freeQuota' => max(0, (int)$pick('post.freeQuota', 0)),
|
||||
'freeQuotaCycle' => in_array($pick('post.freeQuotaCycle', 'day'), ['day', 'month', 'total'], true) ? $pick('post.freeQuotaCycle', 'day') : 'day',
|
||||
'singlePrice' => max(0, round((float)$pick('post.singlePrice', 5), 2)),
|
||||
'viewMode' => $viewMode,
|
||||
'payViewPrice' => max(0, $payViewPrice),
|
||||
'postMode' => $postMode,
|
||||
'freeQuota' => max(0, (int)$pick('post.freeQuota', 0)),
|
||||
'freeQuotaCycle' => in_array($pick('post.freeQuotaCycle', 'day'), ['day', 'month', 'total'], true) ? $pick('post.freeQuotaCycle', 'day') : 'day',
|
||||
'singlePrice' => max(0, round((float)$pick('post.singlePrice', 5), 2)),
|
||||
'viewMode' => $viewMode,
|
||||
'payViewPrice' => max(0, $payViewPrice),
|
||||
'callNormalDailyQuota' => max(0, (int)$pick('call.normalDailyQuota', 5)),
|
||||
'callVipDailyQuota' => max(0, (int)$pick('call.vipDailyQuota', 30)),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -480,6 +482,16 @@ class FcConfig
|
||||
self::put('fee.viewMode', $viewMode, 'fee', '联系方式浏览模式:free免费公开 / paid付费或会员解锁');
|
||||
self::put('fee.payView', $viewMode === 'free' ? 0 : $payView, 'fee', '非会员单条查看联系方式价格');
|
||||
}
|
||||
|
||||
// 每日电话拨打次数限制(详情页与商家主页共用额度池)
|
||||
if (isset($row['fc_call_normalDailyQuota'])) {
|
||||
$normalQuota = max(0, $int('fc_call_normalDailyQuota', 5));
|
||||
self::put('call.normalDailyQuota', $normalQuota, 'call', '普通用户每日免费拨打次数上限(0表示不限制)');
|
||||
}
|
||||
if (isset($row['fc_call_vipDailyQuota'])) {
|
||||
$vipQuota = max(0, $int('fc_call_vipDailyQuota', 30));
|
||||
self::put('call.vipDailyQuota', $vipQuota, 'call', 'VIP会员每日拨打次数上限(0表示不限制)');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
在新工单中引用
屏蔽一个用户