feat: 新增师傅入驻审核与接单状态联动功能
- 新增师傅资质审核模块及权限 - 未审核通过的师傅默认禁用接单状态 - 新增售后退款申诉功能与相关界面 - 新增用户钱包管理及充值功能 - 更新服务定价矩阵相关数据库结构 - 修复微信支付证书验证问题
这个提交包含在:
@@ -142,8 +142,10 @@ class Master extends Base
|
||||
'idcard_back' => $idcardBack,
|
||||
'cert_images' => $certImages,
|
||||
'city' => $normalizedCity,
|
||||
'work_status' => 'off',
|
||||
'verify_status' => 'pass',
|
||||
'audit_msg' => '腾讯云二要素实名核验通过',
|
||||
'audittime' => time(),
|
||||
'updatetime' => time(),
|
||||
];
|
||||
|
||||
@@ -296,6 +298,9 @@ class Master extends Base
|
||||
if (!in_array($status, ['on', 'off'], true)) {
|
||||
$this->error('参数错误');
|
||||
}
|
||||
if ($status === 'on' && (string)$master['verify_status'] !== 'pass') {
|
||||
$this->error('师傅资质尚未审核通过,无法开启听单接单');
|
||||
}
|
||||
Db::name('master')->where('id', $master['id'])->update(['work_status' => $status, 'updatetime' => time()]);
|
||||
$this->success($status === 'on' ? '已开启接单' : '已暂停接单', ['work_status' => $status]);
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户