ordinary_customer_login.py 873 Bytes
# -*- coding: utf-8 -*-
"""
@Time : 2021/9/9 14:56
@Auth : wlm
@File :ordinary_customer_login.py
@IDE :PyCharm
"""
"""
普通客户模式——登录
"""
from commons import common as com
from commons.MySession import hg
class ordinary_customer_login():

    def __init__(self):
        self.url = "http://test.uap.diligrp.com/api/authenticationApi/loginWeb"
        self.header = {
                "Content-Type":"text/plain; charset=utf-8",
        }
        self.body = {
            "userName":"333444",
            "password":"GuqHBFJ3t+S6+Iu05bDMbrxy5ZH3POY+egSoYhENV528Nk32B/2NOUhdDvaNwsaYBMf+LxCzJMnF2n3xQ4C94PaH4yqimM9BoNEhMXVXhm4GNRn2GYEihO8U2lvBwC45T7mcbEK1wvy9ie+kFi/PwkQb0nDRzjkR38s6yDU8fF8="
        }


ocl = ordinary_customer_login()
print(ocl.body)
re = hg.post(url = ocl.url,json = ocl.body,headers = ocl.header)
print(re.json())
print(re.headers)