From a02d636728c12127344228deb18f99bd016357ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=9D=E5=B7=9D?= Date: Thu, 9 Dec 2021 03:06:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=20=E7=95=99=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user/scripts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/user/scripts.py b/user/scripts.py index bdf0865..2ced668 100644 --- a/user/scripts.py +++ b/user/scripts.py @@ -382,9 +382,10 @@ def tyc_company_verify(cid): res = json.loads(requests.get(url, headers=headers).text) try: if res['result']['result'] == 1: + # 初始化企业数据 + # 更新用户认证状态 update_user_info_by_cid(cid, {"企业名称": name, "已认证": "是"}) - # 调用天眼查数据接口 return '认证成功' else: