Browse Source

fix: 测试代码删除

TzuxinChen 3 months ago
parent
commit
3d72561b9f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      api/dcim/login_api.py

+ 1 - 2
api/dcim/login_api.py

@@ -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})