first commit

This commit is contained in:
2025-10-20 12:32:18 +08:00
commit 2cfd7c5a08
121 changed files with 254585 additions and 0 deletions
+143
View File
@@ -0,0 +1,143 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "6619c94e",
"metadata": {},
"outputs": [],
"source": [
"from requests import get,post\n",
"import time\n",
"ip = \"http://band.hxzhxy.cn\"\n",
"param = {\n",
" \"username\": \"tangchao\",\n",
" \"password\": \"123456a\",\n",
" \"client_id\": \"client\",\n",
" \"grant_type\": \"password\",\n",
" \"client_secret\": \"123456\",\n",
"}\n",
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
"token = data[\"access_token\"]\n",
"header = {\n",
" \"content-type\": \"application/json\",\n",
" \"authorization\": f\"Bearer {token}\",\n",
"}\n",
"teamId=110"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "87b0a73c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'success': True,\n",
" 'msg': '操作成功',\n",
" 'code': 0,\n",
" 'data': {'id': 10914,\n",
" 'stuNo': '25040057',\n",
" 'stuName': '冯梓骏',\n",
" 'sex': 1,\n",
" 'classId': 499,\n",
" 'gradeId': 129,\n",
" 'seralNo': '3108683745',\n",
" 'score': 'A',\n",
" 'moralEducation': 'A',\n",
" 'userName': '25040057CDSPTSZXBRFX',\n",
" 'teamId': 110,\n",
" 'pid': None,\n",
" 'phone': None,\n",
" 'imgUrl': None,\n",
" 'openid': None,\n",
" 'boarder': 2,\n",
" 'wxPhone': '13540808459',\n",
" 'trust': 0,\n",
" 'userId': None,\n",
" 'stature': None,\n",
" 'weight': None,\n",
" 'wxPhones': None,\n",
" 'userIdse': None,\n",
" 'payUserId': '25082816140601002478',\n",
" 'payState': 3,\n",
" 'teaChild': 0,\n",
" 'openids': None,\n",
" 'casId': None,\n",
" 'board': 1,\n",
" 'chatOpenId': None,\n",
" 'chatOpenIds': None,\n",
" 'teamName': None,\n",
" 'gradeName': '2025级',\n",
" 'className': '导师11班',\n",
" 'sexName': None,\n",
" 'battery': None,\n",
" 'steps': None,\n",
" 'rank': None,\n",
" 'roleName': None,\n",
" 'sleepStart': None,\n",
" 'sleepEnd': None,\n",
" 'type': None,\n",
" 'setTime': None,\n",
" 'status': None,\n",
" 'userType': None,\n",
" 'sumLocation': None,\n",
" 'arkName': None}}"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
},
{
"ename": "",
"evalue": "",
"output_type": "error",
"traceback": [
"\u001b[1;31m在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。\n",
"\u001b[1;31m请查看单元格中的代码,以确定故障的可能原因。\n",
"\u001b[1;31m单击<a href='https://aka.ms/vscodeJupyterKernelCrash'>此处</a>了解详细信息。\n",
"\u001b[1;31m有关更多详细信息,请查看 Jupyter <a href='command:jupyter.viewOutput'>log</a>。"
]
}
],
"source": [
"get(f\"{ip}/uc/student/findBySerialNo\",params={\n",
" \"teamId\":teamId,\n",
" \"param\":\"3108683745\"\n",
"},headers=header).json()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "96366a8b",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "base",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
}
},
"nbformat": 4,
"nbformat_minor": 5
}