hackswjtu / hackrunninggo-ios Goto Github PK
View Code? Open in Web Editor NEWiPhone can run without legs. 😎
License: MIT License
iPhone can run without legs. 😎
License: MIT License
Start to try request server by our virtual packet.
Use AFNetworking
framework.
login
请求方法
POST | GET http://gxapp.iydsj.com/api/v3/login
参数说明:
参数 类型 说明
Host: 字符串 gxapp.iydsj.com
Accept: 字符串 /
Authorization: 字符串 登录信息 格式为"Basic" +“username:password”的base64加密 +“=”
Proxy-Connection:字符串 keep-alive
osType: int 1为IOS 0为非IOS
appVersion: 字符串 版本信息 IOS为 1.2.0 安卓为1.2.1
Accept-Encoding: 字符串 编码方式 gzip, deflate
Accept-Language: 字符串 zh-Hans-CN;q=1
Content-Type: 字符串 application/x-www-form-urlencoded
DeviceId: 字符串 IOS的某个机器码?
CustomDeviceId: 字符串 同上
Content-Length: int 上传json的长度 login为0
User-Agent: 字符串 和设备信息相关=
Connection: 字符串 keep-alive
返回值:none
setDis
请求方法 POST http://gxapp.iydsj.com/api/v2/campus/XXX/get/1/distance/X XXX是一个三位数int,用途未知 X为设定的距离 IOS1.2.0版本为2-9
参数说明:
其余同login
相比多了一个uid 貌似是服务器上存数据的父亲文件夹名?
多了一个json 为当前的坐标,参考样例
Content-Length 为 上传的坐标json的长度
submit
请求方法:POST http://gxapp.iydsj.com/api/v2/users/XXXXX/running_records/add XXXXX为uid
参数说明:
和setDis一模一样 需要修改Content-Length为上传的json长度
The list data: link
We need to name for every point to describe the position in SWJTU XiPu Zone. It is amazing for users. 😉😉😉
Just be in Chinese.
103.985729, 30.771025
~> 北区奇味干锅旁丁字路口
Recommend users lots of running routes.
Quick selection function.
Test Points Link
And solve it on branch develope
To complete a Category for NSString
, it owned base64 Encoding
transform from string to encoding, or opposite.
Touch two files, NSString+Base64.m
and NSString+Base64.h
Because we can't understand what's the meaning of the uid
, we must to catch from server initiatively.
Just catch it. NOT LOGIN! 😈 😈
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.