From 326accba55df48686d77b376c4e032643a00ee77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=9D=E5=B7=9D?= Date: Tue, 8 Mar 2022 09:22:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=88=E5=B9=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TestCenter/tc_obj.py | 9 ++++++++- TestCenter/tc_routes.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/TestCenter/tc_obj.py b/TestCenter/tc_obj.py index 3cc6b98..7168423 100644 --- a/TestCenter/tc_obj.py +++ b/TestCenter/tc_obj.py @@ -58,4 +58,11 @@ class TestObj: 新增一家测试企业 """ info = new_test_company_impl(self.email, self.company, self.code, self.legal_person) - return info \ No newline at end of file + return info + + def generate_rid_information(self): + """ + 生成企业主页数据 + """ + info = generate_rid_information_script(self.rid, self.types) + return info diff --git a/TestCenter/tc_routes.py b/TestCenter/tc_routes.py index 039ffc9..7c3a326 100644 --- a/TestCenter/tc_routes.py +++ b/TestCenter/tc_routes.py @@ -62,7 +62,7 @@ def delete_uid_cascade_route(): @test_route.route('/generate_rid_information', methods=['POST']) @api_secret -def delete_uid_cascade_route(): +def generate_rid_information_route(): """ 根据rid生成企业主页信息 Parameters: