From 038fedc8a0bfb61f0894b8879838001d3847aaa6 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Tue, 23 Dec 2025 18:06:57 +0800
Subject: [PATCH] 修改供需求发布报错 需求发布底部导航发布点击弹出需求和供应发布 后台链接添加商家列表链接
---
admin/app/api/model/branch/ActivityUser.php | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/admin/app/api/model/branch/ActivityUser.php b/admin/app/api/model/branch/ActivityUser.php
index 638d92f..792b2dd 100644
--- a/admin/app/api/model/branch/ActivityUser.php
+++ b/admin/app/api/model/branch/ActivityUser.php
@@ -39,7 +39,7 @@
public function getListForUser($user_id, $params = [])
{
// 构建查询规则
- $model = $this->alias('A')->with(['activity' => ['branch', 'image']])
+ $model = $this->alias('A')->with(['activity' => ['branch', 'image'],'branch'])
->join('branch_activity B', 'B.activity_id = A.activity_id')
->field('A.*')
->visible(['activity' => ['name', 'image' => ['file_path'], 'branch' => ['name']]])
@@ -65,6 +65,7 @@
{
// 构建查询规则
$model = $this->alias('auser')
+ ->with('branch')
->field('auser.*,user.nickName,auser.real_name,user.avatarUrl')
->join('user', 'user.user_id = auser.user_id')
->where('auser.is_delete', '=', 0)
@@ -154,7 +155,19 @@
{
$list=$this->where('user_id', '=', $user_id)
->order('create_time', 'desc')->find();
- $data=[];
+ $data=[
+ 'province_id'=>'',
+ 'city_id'=>'',
+ 'region_id'=>'',
+ 'recommend_name'=>'',
+ 'recommend_mobile'=>'',
+ 'real_name'=>'',
+ 'mobile'=>'',
+ 'branch_id'=>'',
+ 'company'=>'',
+ 'branch_name'=>'',
+ 'region'=>'',
+ ];
if ($list){
$branch=(new Branch())->detail($list['branch_id']);
$data=[
--
Gitblit v1.9.2