- 新增师傅资质审核模块及权限 - 未审核通过的师傅默认禁用接单状态 - 新增售后退款申诉功能与相关界面 - 新增用户钱包管理及充值功能 - 更新服务定价矩阵相关数据库结构 - 修复微信支付证书验证问题
26 行
944 B
PHP
26 行
944 B
PHP
<?php
|
|
define('APP_PATH', __DIR__ . '/../server/application/');
|
|
require __DIR__ . '/../server/thinkphp/base.php';
|
|
\think\App::initCommon();
|
|
|
|
use think\Db;
|
|
|
|
$cols = Db::query('SHOW FULL COLUMNS FROM fa_service');
|
|
foreach ($cols as $c) {
|
|
if (in_array($c['Field'], ['price_type', 'base_price', 'service_types', 'addons', 'status'])) {
|
|
echo $c['Field'] . ' | ' . $c['Type'] . ' | ' . $c['Comment'] . PHP_EOL;
|
|
}
|
|
}
|
|
|
|
echo "=== price_type 分布统计 ===" . PHP_EOL;
|
|
$dist = Db::name('service')->field('price_type, count(*) as cnt')->group('price_type')->select();
|
|
foreach ($dist as $d) {
|
|
echo " {$d['price_type']}: {$d['cnt']}" . PHP_EOL;
|
|
}
|
|
|
|
echo "=== quote 模式的服务商品示例 ===" . PHP_EOL;
|
|
$quotes = Db::name('service')->where('price_type', 'quote')->select();
|
|
foreach ($quotes as $q) {
|
|
echo " ID: {$q['id']}, Name: {$q['name']}, base_price: {$q['base_price']}, service_types: {$q['service_types']}" . PHP_EOL;
|
|
}
|