From 12199bf8fb5c9e349512dcd791f9330943996f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=8B=87=E5=9D=A4?= Date: Wed, 14 Aug 2024 17:36:18 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=B0=E5=A2=9E=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- show/api_pos.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/show/api_pos.php b/show/api_pos.php index b30cf09..7be6b97 100644 --- a/show/api_pos.php +++ b/show/api_pos.php @@ -158,7 +158,7 @@ if($qs == 'heartbeat' || $qs == 'addperson' || $qs == 'delperson') { //心跳 // 更新posdevice表的同步时间 $db->query("update tb_pos_device set synctime=now() where id = ".$device_id); - // 从tb_user表中获取所有启用且属于公司公司的用户列表, + // 从tb_user表中获取所有启用且属于对应公司的用户列表, $userList_s = $db->get_all("select id, username, cellphone, deptname from tb_user where enabled = '1' and company_id = '{$company_id}'"); // 从tb_pos_device_user表中获取对应用户设备信息 // 新版Android取餐机,宇航用于下发人脸、用户信息到Android取餐机用的记录表,方便知道每台机现在的同步情况 @@ -176,6 +176,7 @@ if($qs == 'heartbeat' || $qs == 'addperson' || $qs == 'delperson') { //心跳 } // 关联用户表和用户id卡表,获取信息 + // 获取对应租户下的所有用户卡信息 $data = $db->get_all("select a.* from tb_user_idcard a, tb_user b where a.user_id=b.id and b.company_id = '{$company_id}' and a.state=1 order by a.id"); $cardInfo = array(); // 提取上一步获取的信息并将数据循环加入到卡信息数组中,类似List[Dict],key是user_id,value是item