From e9cca1cf2b8e86a7e0dfdf19d91b88b26fd0417f Mon Sep 17 00:00:00 2001 From: vguanyiwgd Date: Mon, 1 Apr 2024 22:51:56 +0800 Subject: [PATCH] update Change-Id: Ib485e5b596f70fd48ed2a98fa01a707f3a238e59 --- backstage/application/api/controllers/api/Applet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backstage/application/api/controllers/api/Applet.php b/backstage/application/api/controllers/api/Applet.php index 15d08a0..1052830 100644 --- a/backstage/application/api/controllers/api/Applet.php +++ b/backstage/application/api/controllers/api/Applet.php @@ -158,7 +158,7 @@ class Applet extends REST_Controller { $dining_hall_info = $this->Common_model->sql_get_one("select * from tb_dining_hall where enabled=1 and id='{$this->user->dining_hall_id}' and company_id='{$this->user->company_id}'"); $this->user->dining_hall_name = $dining_hall_info['name']; - $moreFunction = $this->Common_model->sql_get_all("select * from tb_company_extra_menus where cid={$this->user->company_id} and enabled=1 and is_applet=1 order by idx desc, id asc"); + $moreFunction = $this->Common_model->sql_get_all("select * from tb_company_extra_menus where cid={$this->user->company_id} and is_applet=1 order by idx desc, id asc"); if(!empty($moreFunction)){ foreach ($moreFunction as $k => $v){ // unset($moreFunction[$k]['id']);