From 91a56a9b83ec23a1580aa586a24b34aba6990ffa Mon Sep 17 00:00:00 2001
From: lyzflash <lzhflash@163.com>
Date: Mon, 17 Nov 2025 14:58:42 +0800
Subject: [PATCH] 报名时可选择加入的分会

---
 admin/app/api/controller/plus/business/Saving.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/admin/app/api/controller/plus/business/Saving.php b/admin/app/api/controller/plus/business/Saving.php
index e01e3a3..3e9290a 100644
--- a/admin/app/api/controller/plus/business/Saving.php
+++ b/admin/app/api/controller/plus/business/Saving.php
@@ -14,6 +14,8 @@
     {
         $model = new SavingModel();
         $params=$this->request->param();
+        $user=$this->getUser();
+        $params['affiliation_id']=$user['user_id'];
         return $this->renderSuccess('',$model->lists($params));
     }
     
@@ -36,7 +38,7 @@
         if((new SavingModel())->add($param)){
             return $this->renderSuccess('');
         }
-        return $this->renderError();
+        return $this->renderError('');
     }
     
     /**

--
Gitblit v1.9.2