Change-Id: Ib485e5b596f70fd48ed2a98fa01a707f3a238e59
This commit is contained in:
vguanyiwgd 2024-04-01 22:51:56 +08:00
parent 0a976603c6
commit e9cca1cf2b
1 changed files with 1 additions and 1 deletions

View File

@ -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}'"); $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']; $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)){ if(!empty($moreFunction)){
foreach ($moreFunction as $k => $v){ foreach ($moreFunction as $k => $v){
// unset($moreFunction[$k]['id']); // unset($moreFunction[$k]['id']);