@name 获取指定项目配置 @author hwliang<2021-08-09> @param project_name 项目名称 @return dict
(self, project_name)
| 2303 | return write_speed, read_speed |
| 2304 | |
| 2305 | def get_project_find(self, project_name): |
| 2306 | ''' |
| 2307 | @name 获取指定项目配置 |
| 2308 | @author hwliang<2021-08-09> |
| 2309 | @param project_name<string> 项目名称 |
| 2310 | @return dict |
| 2311 | ''' |
| 2312 | project_info = public.M('sites').where('project_type=? AND name=?', ('Java', project_name)).find() |
| 2313 | if isinstance(project_info, str): |
| 2314 | raise public.PanelError('数据库查询错误:' + project_info) |
| 2315 | if not project_info: return False |
| 2316 | project_info['project_config'] = json.loads(project_info['project_config']) |
| 2317 | return project_info |
| 2318 | |
| 2319 | def project_remove_domain(self, get): |
| 2320 | ''' |
no test coverage detected