bug修复,及体验优化

This commit is contained in:
Dev
2026-10-09 16:59:09 +08:00
parent a35f78e03b
commit 8a9102ab47
11 changed files with 93 additions and 10 deletions
@@ -244,10 +244,12 @@ class Demand extends Api
// $info->winBidding = DemandBiddingService::getOne(['demand_id' => $id, 'bidding_status' => DemandBiddingService::STATUS_BIDDING_WIN]);
$info->isMy = $user_id == $info->user_id;//我发布
$info->isMyWin = $info->winBidding && $info->winBidding->user_id == $user_id;//我中标
//小程序内无法直接识别二维码,需先长按保存再用微信扫一扫
$qrcodeText = '长按保存二维码,微信扫一扫进群';
if ($user_id == $info->user_id) {
$info->contactText = !empty($info->demand_group_chat->qr_code) ? '请识别二维码进群沟通' : '******开发接单后可见';
$info->contactText = !empty($info->demand_group_chat->qr_code) ? $qrcodeText : '******开发接单后可见';
} else {
$info->contactText = $info->isMyWin && !empty($info->demand_group_chat->qr_code) ? '请识别二维码进群沟通' : '******确认接单后可见';
$info->contactText = $info->isMyWin && !empty($info->demand_group_chat->qr_code) ? $qrcodeText : '******确认接单后可见';
}
$info->images = array_filter($info->images);
$info->files = array_map(fn($fl) => [