From 2273e178954f8954ff488b66fb1371144d29ced2 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sun, 2 Aug 2020 16:47:37 +0800 Subject: [PATCH] print bug --- test_mini/app.js | 4 ++-- test_server/crm/views.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test_mini/app.js b/test_mini/app.js index ad0d1c5..a7c9ddb 100644 --- a/test_mini/app.js +++ b/test_mini/app.js @@ -68,9 +68,9 @@ App({ globalData: { userInfo: {}, userinfo: {}, // 服务器传回的消费者信息 - //host: 'https://apitest.ahctc.cn', + host: 'https://apitest.ahctc.cn', mediahost: 'https://apitest.ahctc.cn', - host: 'http://127.0.0.1:8000', + //host: 'http://127.0.0.1:8000', //mediahost: 'http://127.0.0.1:8000', token : '', } diff --git a/test_server/crm/views.py b/test_server/crm/views.py index 5421968..2ca310a 100644 --- a/test_server/crm/views.py +++ b/test_server/crm/views.py @@ -246,7 +246,6 @@ class ConsumerViewSet(ModelViewSet): ''' 证书查询 ''' - print(request.data) payload = {'IndexModel[name]': request.query_params['realname'], 'IndexModel[identityNumber]': request.query_params['ID_number'], 'IndexModel[certNumber]':'', 'IndexModel[candidateNumber]':''} r = requests.post('https://fushe.chinansc.cn/open/candidate-list',data=payload) html = etree.HTML(r.text)