import sys,os
print(sys.path)
from interface import interface_method
import requests
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import json
class login:
    def login_method(self):
        # 接口名称
        URL = interface_method.om_host + interface_method.om_login
        body = {
            "username":"yijiali",
            "password":"a1234567890"
        }
        my_session=requests.session()
        result = my_session.post(url=URL, data=body,verify=False)
        res = result.json()
        print(res)
        return my_session
my_session = login().login_method()
my_session.verify=False
print(my_session.cookies)













