From cd549b5f0e39ac710086a77ba3c2abd440748157 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Fri, 26 Sep 2025 11:31:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(app):=20=E4=BC=98=E5=8C=96=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Mobile/SupplyDemandController.php | 1 + app/Repositories/YuanheRepository.php | 7 ++-- ...9_26_112046_alert_supply_demands_table.php | 33 +++++++++++++++++++ 3 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 database/migrations/2025_09_26_112046_alert_supply_demands_table.php diff --git a/app/Http/Controllers/Mobile/SupplyDemandController.php b/app/Http/Controllers/Mobile/SupplyDemandController.php index 66dc7ce..797bbfd 100755 --- a/app/Http/Controllers/Mobile/SupplyDemandController.php +++ b/app/Http/Controllers/Mobile/SupplyDemandController.php @@ -136,6 +136,7 @@ class SupplyDemandController extends CommonController * @OA\Parameter(name="file_ids", in="query", @OA\Schema(type="string"), required=false, description="文件id数组"), * @OA\Parameter(name="contact_name", in="query", @OA\Schema(type="string"), required=false, description="联系人名字"), * @OA\Parameter(name="status", in="query", @OA\Schema(type="integer"), required=false, description="状态0待审核1通过2拒绝3退回修改4永久隐藏"), + * @OA\Parameter(name="tags", in="query", @OA\Schema(type="integer"), required=false, description="标签,多个英文逗号分隔"), * @OA\Response( * response="200", * description="暂无" diff --git a/app/Repositories/YuanheRepository.php b/app/Repositories/YuanheRepository.php index a2ee1e5..8313255 100755 --- a/app/Repositories/YuanheRepository.php +++ b/app/Repositories/YuanheRepository.php @@ -18,10 +18,9 @@ class YuanheRepository public function __construct() { - // 测试地址 - $this->baseUrl = 'https://uat.oriza.com'; - $this->customerId = '1947941625517604864'; - $this->authKey = '59C8ED8584EE4BA7BC22FC63BE45C73D'; + $this->baseUrl = env('YUANHE_BASE_URL'); + $this->customerId = env('YUANHE_CUSTOMERID'); + $this->authKey = env('YUANHE_AUTHKEY'); } diff --git a/database/migrations/2025_09_26_112046_alert_supply_demands_table.php b/database/migrations/2025_09_26_112046_alert_supply_demands_table.php new file mode 100644 index 0000000..315be2a --- /dev/null +++ b/database/migrations/2025_09_26_112046_alert_supply_demands_table.php @@ -0,0 +1,33 @@ +string('tags')->nullable()->comment('标签'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('supply_demands', function (Blueprint $table) { + // + }); + } +};