(self, project_data: dict)
| 569 | return False, False |
| 570 | |
| 571 | def _set_static_path(self, project_data: dict): |
| 572 | if self.ws_type == "nginx": |
| 573 | res = self._ng_conf_onj.set_static_path(project_data) |
| 574 | if res is None: |
| 575 | return None |
| 576 | elif res is False: |
| 577 | err_msg = public.checkWebConfig() |
| 578 | if isinstance(err_msg, str): |
| 579 | return 'WEB服务器配置配置文件错误ERROR:<br><font style="color:red;">' + \ |
| 580 | err_msg.replace("\n", '<br>') + '</font>' |
| 581 | |
| 582 | return self._open_config_file(project_data) |
| 583 | else: |
| 584 | return res |
| 585 | return "只支持nginx设置静态路由" |
no test coverage detected