|
@@ -7,5 +7,4 @@ class LoginApi:
|
|
|
pass
|
|
|
|
|
|
def login(self):
|
|
|
- # return req_api(f'{config.DCIM_BASE_URL}/rest/openapi/sm/session', data={'userid': config.USERNAME, 'value': config.PASSWORD})
|
|
|
- return {'data': "okokok"}
|
|
|
+ return req_api(f'{config.DCIM_BASE_URL}/rest/openapi/sm/session', data={'userid': config.USERNAME, 'value': config.PASSWORD})
|