chore: 行尾统一为 LF
- 新增 .gitattributes:* text=auto eol=lf,二进制类型显式标 binary - 24 个 CRLF 文件归一为 LF(内容零变化,忽略行尾后 diff 只有本文件与 .gitignore) - .gitignore 补 temp/、.pytest_cache/、token_config.txt.old-bak、scripts/.pack_baseline.json 等
This commit is contained in:
+34
-34
@@ -1,34 +1,34 @@
|
||||
import requests, time, json
|
||||
|
||||
token_id = '1291378'
|
||||
wx_signature = '8aab9d16b538ed83b02974937e90a0d70388020b'
|
||||
timestamp = str(int(time.time()))
|
||||
|
||||
headers = {
|
||||
'Host': 'bike.sdlongren.com',
|
||||
'hsf-x-signature': wx_signature,
|
||||
'hsf-x-timestamp': timestamp,
|
||||
'hsf-x-tokenid': token_id,
|
||||
'xweb_xhr': '1',
|
||||
'platform': 'xiaobai',
|
||||
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090c38)XWEB/8518',
|
||||
'content-type': 'application/json',
|
||||
'accept': '*/*',
|
||||
'referer': 'https://servicewechat.com/wx10426ca961518f43/98/page-frame.html',
|
||||
}
|
||||
|
||||
# 测试各接口
|
||||
tests = [
|
||||
('/record/order', {'code': '51287', 'start_longitude': 116.98, 'start_latitude': 36.67}),
|
||||
('/record/checkLocation', {'longitude': 116.98, 'latitude': 36.67, 'bicycleCode': '51287'}),
|
||||
('/record/return', {'order_id': 15899504, 'longitude': 116.98, 'latitude': 36.67}),
|
||||
]
|
||||
|
||||
for path, body in tests:
|
||||
resp = requests.post(f'https://bike.sdlongren.com{path}', headers=headers, json=body, timeout=10, verify=False)
|
||||
data = resp.json()
|
||||
print(path)
|
||||
print(' rtn_code:', data.get('rtn_code'))
|
||||
print(' code:', data.get('code'))
|
||||
print(' message:', data.get('message'))
|
||||
print(' data:', str(data.get('data'))[:200])
|
||||
import requests, time, json
|
||||
|
||||
token_id = '1291378'
|
||||
wx_signature = '8aab9d16b538ed83b02974937e90a0d70388020b'
|
||||
timestamp = str(int(time.time()))
|
||||
|
||||
headers = {
|
||||
'Host': 'bike.sdlongren.com',
|
||||
'hsf-x-signature': wx_signature,
|
||||
'hsf-x-timestamp': timestamp,
|
||||
'hsf-x-tokenid': token_id,
|
||||
'xweb_xhr': '1',
|
||||
'platform': 'xiaobai',
|
||||
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090c38)XWEB/8518',
|
||||
'content-type': 'application/json',
|
||||
'accept': '*/*',
|
||||
'referer': 'https://servicewechat.com/wx10426ca961518f43/98/page-frame.html',
|
||||
}
|
||||
|
||||
# 测试各接口
|
||||
tests = [
|
||||
('/record/order', {'code': '51287', 'start_longitude': 116.98, 'start_latitude': 36.67}),
|
||||
('/record/checkLocation', {'longitude': 116.98, 'latitude': 36.67, 'bicycleCode': '51287'}),
|
||||
('/record/return', {'order_id': 15899504, 'longitude': 116.98, 'latitude': 36.67}),
|
||||
]
|
||||
|
||||
for path, body in tests:
|
||||
resp = requests.post(f'https://bike.sdlongren.com{path}', headers=headers, json=body, timeout=10, verify=False)
|
||||
data = resp.json()
|
||||
print(path)
|
||||
print(' rtn_code:', data.get('rtn_code'))
|
||||
print(' code:', data.get('code'))
|
||||
print(' message:', data.get('message'))
|
||||
print(' data:', str(data.get('data'))[:200])
|
||||
|
||||
Reference in New Issue
Block a user