From 6e9bef59b90dc6623d88564206bbfab3b45a0498 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 15 Jun 2023 21:15:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=87=E5=8F=96=E5=BE=97=E7=9A=84=E5=8F=83?= =?UTF-8?q?=E6=95=B8=E5=8A=A0=E4=B8=8Atrim?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/v1/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/controller/v1/User.php b/app/api/controller/v1/User.php index 7eb930a..76cfa26 100644 --- a/app/api/controller/v1/User.php +++ b/app/api/controller/v1/User.php @@ -135,7 +135,7 @@ class User extends ApiController $user_info = $user; //判斷order_sn是否執行過,沒有的話就不處理 - if ($user_info['note'] != input('order_sn')) { + if (trim($user_info['note']) != trim(input('order_sn'))) { return $this->Error('未自動新增過', 501); } @@ -159,7 +159,7 @@ class User extends ApiController ->where('user_id', $params['user_id']) ->update($update_data); - + echo Db::getLastSql(); }catch(\Exception $e){ return $this->Error($e->getMessage(), 500, '新增失敗'); }