getList($condition, $field); return $this->success($data); } /** * 获取权限信息 * @param $condition * @param $field * @return array */ public function getMenuValue($condition, $field){ $key = json_encode([$condition, $field]); if (Cache::has("getMenuValue" . $key)) { return $this->success(Cache::get("getMenuValue" . $key)); } $value = model('cashier_auth')->getValue($condition, $field); Cache::tag('cashier_menu')->set("getMenuValue" . $key, $value); return $this->success($value); } }