From ee59ad60ce0bbb733a77c10446242a83e791653c Mon Sep 17 00:00:00 2001 From: jianghanbo Date: Mon, 14 Oct 2024 15:09:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E7=BA=BF=E8=B7=AF=E5=88=86=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/app/admin/controller/ProductsController.php | 2 +- service/app/server/Orders.php | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/service/app/admin/controller/ProductsController.php b/service/app/admin/controller/ProductsController.php index ad9a86c1..48f02a94 100644 --- a/service/app/admin/controller/ProductsController.php +++ b/service/app/admin/controller/ProductsController.php @@ -45,7 +45,7 @@ class ProductsController extends base { return $this->error(2001, '线路id必填'); } - $where = ['os' => $request->get('os'), 'third_product_id' => $request->get('third_product_id')]; + $where = ['os' => $request->post('os'), 'third_product_id' => $request->post('third_product_id')]; $product = (new Products())->where($where)->find(); if (!empty($product)) { return $this->error(2002, '线路已存在'); diff --git a/service/app/server/Orders.php b/service/app/server/Orders.php index b8c5ce4c..504c63ad 100644 --- a/service/app/server/Orders.php +++ b/service/app/server/Orders.php @@ -315,9 +315,6 @@ class Orders { return []; } $users = Admins::where('status', 1)->where('is_order', 1)->whereFindInSet('product_ids', $product->id)->select(); - if ($thirdProductId == '1128292503') { - Log::info(' 1128292503 find not one...' . json_encode($product)); - } $us = []; foreach ($users as $u) { $ru = Redis::get('CRM:USER:ONLINE:' . $u->id);