标签:
Asmallpark软件接口文档说明
编码均采用UTF-8格式传输
全部为http,POST请求
状态码:200 操作成功
100 服务器异常,稍后再试
404 请求非法
402 数据库中未收录对应信息,错误,有可能是改用户未注册,或者,停车场未登记信息
一体机配置;基本设置->网络->中心服务器
服务器IP地址:jilaijiting.625keji.com
端口:80
推送车牌识别结果开启
地址:/interface/machine/main.php
推送信息:较详细
登录按钮:(regorlogin)>>>>>>>>>>>>>>>>>>>>>>>>>
type:regorlogin
info:电话号码
URL:http://192.168.8.102/www/jilaijiting/interface/app/main.php
注意:一下情况,如果没有URL,那么就是这个URL
返回值:{"resulttag":"regorlogin","resultdata":"具体的值"}
具体的值:login表示登录,reg表示注册,100服务器异常,稍后再试,
例如:
{
"type":"regorlogin",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"regorlogin","resultdata":"login"}
表示:该用户已经存在,现在是请求登录
车牌绑定:(fixed)>>>>>>>>>>>>>>>>>>>>>>>>>
type:fixed
info:用户手机号码和待绑定的车牌号码
返回值:{"resulttag":"fixed","resultdata":"具体的值"}
具体的值:200->成功,
201->车牌已经被其他用户绑定,
203->绑定成功,但是该车牌是黑名单,需要马上缴费
202->,车牌已经被自己绑定,操作失败
例如:
{"type":"fixed",
"info":{"phonenumber":"18880488738",
"license":"川A12345"
}
}
返回值:{"resulttag":"fixed","resultdata":"201"}
表示:川A12345已经被其他用户绑定了,绑定失败
解除车牌绑定:(unfixed)》》》》》》》》》》》》》》》
type:unfixed
info:用户手机号码和待绑定的车牌号码
返回值:{"resulttag":"unfixed","resultdata":"具体的值"}
具体的值:200->成功,211->失败(如果车辆是黑名单),
101,未找到该车辆的绑定记录,操作失败
102,车辆正处于停车状态,操作失败
例如:
{"type":"unfixed",
"info":{"phonenumber":"18880488738",
"license":"川A12345"
}
}
返回值:{"resulttag":"unfixed","resultdata":"200"}
表示:解除绑定成功
百度云推送的相关信息的绑定:(baidufixed)》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》
type:baidufixed
info:用户的电话号码,userID和channelID,appid,设备类型,1表示IOS,0表示安卓
返回值:{"resulttag":"baidufixed","resultdata":"具体的值"}
具体的值:200->成功,100->失败
例如:
{"type":"baidufixed",
"info":{"phonenumber":"18880488738",
"userid":"1231231231",
"channelid":"678954324",
"appid":"123123123",
"whatdevice":"1"
}
}
返回值:{"resulttag":"baidufixed","resultdata":200}
表示:用户18880488738绑定百度云推送成功
关闭或者开启百度与推送服务;(closebaidupush)>>>>>>>>>
type:closebaidupush
info:用户的电话号码
返回值:{"resulttag":"closebaidupush","resultdata":"具体的值"}
具体的值:200->成功,100->失败
例如:
{
"type":"closebaidupush",
"info":{"phonenumber":"18880488738",
"state":1
}
}
state,1表示开启,0表示关闭
返回值:{"resulttag":"closebaidupush","resultdata":200}
表示:用户18880488738关闭百度云推送功能的操作成功
获取百度云推送的状态>>>>>>>>>>
{"type":"pushstatus",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"pushstatus","resultdata":"1"}
刷新每周可以取消预订的次数》》》》》》》》》》》
{"type":"refreshlimitcount",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"refreshlimitcount","resultdata":"具体的值"}
具体的值:200->成功,101,更新时间未到,更新失败,
车位预订:(进行该操作的时候,先发起刷新每周可以取消的预订次数请求)
{"type":"book",
"info":{"license":"川A12345",
"pid":"10",
"phonenumber":"18880488738"
}
}
//10表示要预订的停车场
返回值:{"resulttag":"book","resultdata":130}
101预订失败,因为可以预订的次数为0
120预订失败,没有空余车位可以预订
110预订失败,因为是包月用户
103预订失败,账户余额小于3元
130预订失败,因为该车已经预订了车位(可能是其他停车场,也可能就是该停车场)
140预订失败,当前该车正在预订对象的停车场中停车
150预订失败,该停车场,不允许外来车辆进入,所以,不能预订
100服务器异常,稍后再试,
200 预订成功
说明:车位预订,因为涉及到预订了,没有能及时来停车的用户,那么,如果未来停车,期间发生的费用,将会强制从账户余额中扣除
所以,账户余额必须大于3元的车辆才能使用此功能,这种扣费,统一扣除3元停车费
取消已经预订的车位:
{"type":"cancelbook",
"info":{"license":"川A12345",
"pid":"10",
"phonenumber":"18880488738"
}
}
{"resulttag":"cancelbook","resultdata":200}
返回值:200 取消预订成功(未开始计费的)
100 服务器异常,稍后再试,
101 未查到该车的预订记录
201 取消预订成功(已经开始计费了的,并且,扣费,加入收支记录等都操作成功)
显示已经预订车位的车辆:
{"type":"showbook",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"showbook","resultdata":101}//表示,没有预订了车位的车辆,100->服务器异常,稍后再试
{"resulttag":"showbook",
"resultdata":[
{"pid":"10","parkname":"园区停车场","license":"川A12342","booktime":"2016-03-13 15:07:34","bejintime":"2016-03-23 15:15:16"},
{"pid":"10","parkname":"园区停车场","license":"京CJ0435","booktime":"2016-03-08 19:16:55","bejintime":"2016-03-23 15:15:16"}
]
}
查看充值记录>>>>>>>>>>>>>>>>
{"type":"inrecord",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"inrecord","resultdata":101}//表示,该账户没有充值记录,100->服务器异常,稍后再试
{"resulttag":"inrecord",
"resultdata":[
{"useway":"支付宝","time":"2016-03-14 09:17:41","money":"12.25","remain":"1050.75"},
{"useway":"微信","time":"2016-03-13 15:06:56","money":"10.25","remain":"1040.50"},
{"useway":"支付宝","time":"2016-03-12 11:38:13","money":"12.25","remain":"1028.25"}
]
}
查看消费记录>>>>>>>>>>>>>>>
{"type":"outrecord",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"outrecord","resultdata":101}//表示,该账户没有消费记录,100->服务器异常,稍后再试
{"resulttag":"outrecord",
"resultdata":[
{"useway":"园区停车场","time":"2016-03-13 19:31:15","money":"2.00","remain":"1038.50"},
{"useway":"园区停车场","time":"2016-03-12 02:21:08","money":"12.00","remain":"1022.00"},
{"useway":"园区停车场","time":"2016-03-12 02:09:51","money":"9.00","remain":"1034.00"},
{"useway":"园区停车场","time":"2016-03-12 01:58:53","money":"75.00","remain":"1043.00"}
]
}
查看充值消费记录
{"type":"inoutrecord",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"inoutrecord","resultdata":101}//表示,该账户没有充值消费记录,100->服务器异常,稍后再试
{"resulttag":"inoutrecord",
"resultdata":[
{"useway":"园区停车场","time":"2016-03-13 19:31:15","money":"2.00","inorout":"消费","remain":"1038.50"},
{"useway":"园区停车场","time":"2016-03-12 02:21:08","money":"12.00","inorout":"消费","remain":"1022.00"},
{"useway":"园区停车场","time":"2016-03-12 02:09:51","money":"9.00","inorout":"消费","remain":"1034.00"},
{"useway":"支付宝","time":"2016-03-12 11:38:13","money":"12.25","inorout":"充值","remain":"1028.25"},
{"useway":"园区停车场","time":"2016-03-12 01:58:53","money":"75.00","inorout":"消费","remain":"1043.00"}
]
}
查看所有绑定的车辆的停车记录》》》》》》》
{"type":"historyrecord",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"inoutrecord","resultdata":101}//表示,该账户没有绑定了车辆的停车记录,100->服务器异常,稍后再试
{"resulttag":"historyrecord",
"resultdata":[
{"hid":"140","name":"园区停车场","licensenumber":"京AA4ZV5","intime":"2016-03-10 18:34:37","inimage":"http:\/\/192.168.8.102\/www\/jilaijiting\/interface\/images\/2016-03-10-18-31-33-536693.jpg","outtime":"2016-03-10 18:34:45","outimage":"http:\/\/192.168.8.102\/www\/jilaijiting\/interface\/images\/2016-03-10-18-34-45-689507.jpg","whorecord":"0","realpay":"2.25","ispay":"0","payway":"2","remark":"无"},
{"hid":"150","name":"园区停车场","licensenumber":"京CJ0435","intime":"2016-03-13 19:30:09","inimage":"http:\/\/192.168.8.102\/www\/jilaijiting\/interface\/images\/2016-03-13-19-30-09-519562.jpg","outtime":"2016-03-13 19:31:15","outimage":"http:\/\/192.168.8.102\/www\/jilaijiting\/interface\/images\/2016-03-13-19-31-15-417293.jpg","whorecord":"0","realpay":"2.00","ispay":"1","payway":"1","remark":"无"}
]
}
修改支付方式(就是,取消或者打开对应车辆的自动支付)》》》》》》》》》》》
{"type":"changepayway",
"info":{"phonenumber":"18880488738",
"license":"川A12345",
"isautopay":"1"
}
}
1表示开启自动支付,0表示关闭自动支付
返回值:{"resulttag":"changepayway","resultdata":200}
101,表示该车不存在
用户反馈》》》》》》》》》》》
{"type":"feedback",
"info":{"phonenumber":"18880488738",
"content":"APP功能有待完善啊",
"who":"IOS",
"pid":"0"
}
}
who中的参数,{IOS,Android,Wechat,allpark},针对单个停车场->则传递停车场的pid,who字段设置为allpark
当who字段不是allpark的时候,Pid字段没有任何意义,
返回值:{"resulttag":"feedback","resultdata":200}
主界面显示在场的车辆信息》》》》》》》》
{"type":"parkingandneedpay",
"info":{"phonenumber":"18880488738"
}
}
返回值:
{"resulttag":"parkingandneedpay",
"resultdata":{
"needpay":102,//表示没有需要补缴停车费用的车辆
"parking":[
{"license":"京CJ0435","name":"园区停车场","intime":"2016-03-13 19:30:09","inimage":"http:\/\/192.168.8.102\/www\/jilaijiting\/interface\/images\/2016-03-13-19-30-09-519562.jpg"}
]
}
}
{"resulttag":"parkingandneedpay",
"resultdata":{
"needpay":[
{"hid":"111",license":"京AA4ZV5","name":"园区停车场","intime":"2016-03-10 18:34:37","inimage":"http:\/\/192.168.8.102\/www\/jilaijiting\/interface\/images\/2016-03-10-18-31-33-536693.jpg","outtime":"2016-03-10 18:34:45","outimage":"http:\/\/192.168.8.102\/www\/jilaijiting\/interface\/images\/2016-03-10-18-34-45-689507.jpg","realpay":"2.25"}
],
"parking":[
{"hid":"112","license":"京CJ0435","name":"园区停车场","intime":"2016-03-13 19:30:09","inimage":"http:\/\/192.168.8.102\/www\/jilaijiting\/interface\/images\/2016-03-13-19-30-09-519562.jpg"}
]
}
}
{"resulttag":"parkingandneedpay",
"resultdata":{
"needpay":[
{"hid":"111","license":"京AA4ZV5","name":"园区停车场","intime":"2016-03-10 18:34:37","inimage":"http:\/\/192.168.8.102\/www\/jilaijiting\/interface\/images\/2016-03-10-18-31-33-536693.jpg","outtime":"2016-03-10 18:34:45","outimage":"http:\/\/192.168.8.102\/www\/jilaijiting\/interface\/images\/2016-03-10-18-34-45-689507.jpg","realpay":"2.25"}
],
"parking":101//101表示,没有车辆当前正停在停车场里面
}
}
{"resulttag":"parkingandneedpay","resultdata":100}//表示服务器异常
{"resulttag":"parkingandneedpay",
"resultdata":{"needpay":102,
"parking":101
}
}
关于我们》》》》》》》》》》》》
{"type":"aboutus",
"info":{"pid":"10"}
}
pid:0表示查询大APP的关于我们,其他的,对应停车场的pid编号
{"resulttag":"aboutus","resultdata":101}//101表示,未查到该停车场的相关信息
{"resulttag":"aboutus","resultdata":"园区停车场的简介"}
修改aboutus的值,直接修改aboutus.txt中的数据和停车场pid的字段命令的txt文件,如:10.txt
显示账户余额>>>>>>>>>>
{"type":"accountbalance",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"accountbalance","resultdata":"0.00"}
车辆管理界面》》》》》》》》》》》》》》》》》》》》》
{"type":"bindlicense",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"bindlicense",
"resultdata":[
{"license":"京CJ0435","isblacklist":"0","isautopay":"1"},
{"license":"京CJ0432","isblacklist":"1","isautopay":"1"}
]
}
{"resulttag":"bindlicense","resultdata":101}//该用户未有绑定车牌
个人信息界面》》》》》》》》》》》》》》》
{"type":"personinfo",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"personinfo",
"resultdata":{
"name":"",
"accountbalance":"1050.75",
"regtime":"2016-03-07 15:31:52",
"lasttime":"2016-03-12 10:06:11",
"integral":"2650",
"limitcount":"3",
"totalmonthlylicense":0
}
}
totalmonthlylicense:表示,包月车辆的总数
显示包月车辆详情界面
{"type":"showmonthly",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"showmonthly",
"resultdata":[
{"licensenumber":"京CJ0435","name":"园区停车场","startmonth":"2016-03-01 16:53:49","endmonth":"2016-03-24 16:53:44"}
]
}
{"resulttag":"showmonthly","resultdata":101}//该用户没有包月的车辆
显示已经合作了的停车的信息(注意,如果状态不允许外来车辆进入,那么该停车场就不会显示在里面)
{"type":"showpark",
"info":{"pid":"10"
}
}
pid:对应停车场的PID,如果为0,则显示所有的停车场信息,
返回值:
{"resulttag":"showpark",
"resultdata":[
{"pid":"10",
"name":"园区停车场",
"address":"大禹东路66号",
"monthmoney":"50.00",//包月费用
"yearmoney":"550.00",//包年费用
"totalcount":"100",//总车位
"isspare":"1",//是否还有空余车位
"isallowonlinepay":"1",//是否支持网上付款
"notbindcango":"1",//没有被用户绑定的车牌,是否可以进入
"isfixed":"2",//0,按小时计费,1固定收费,2白夜间收费标准不同,3,几个小时内好多钱,超过的,好多钱一个小时
"price":"2.25",//针对0,1,有效
"daytimebejin":"9",//白天计费开始时间
"daytimeprice":"2.00",//白天计费的单价
"nightbejin":"20",
"nightprice":"3.00",
"hoursmoney":"10.00",//接下来的三个字段表示,10元可以停放3个小时,超多3个小时,没小时收费4.88元
"hours":"3",
"overprice":"4.88",
"allowtime":"10",//考虑用户如果停车1小时1分钟,那么收两个小时的钱不合适,所以,该字段就是这个意思
"cango":"1",//如果没有找到入场记录,是否可以离开停车场
"bejintime":"40",//车位预订成功后,如果没有来停车,40分钟后开始收费
"images":"http:\/\/192.168.8.102\/www\/jilaijiting\/interface\/parkimage\/2016-03-10-18-29-56-163207.jpg",
"howmonthly":4,//有好多个包月用户,
"howbook":3//有多少个预订了车位的用户
"howonetime":3//有多少个临时用户,正在停车场中
}
]
}
APP端删除停车历史记录:>>>>>>>>>>>>>>
{"type":"delcarhistory",
"info":{"hid":"140"}
}
返回值:
{"resulttag":"delcarhistory","resultdata":200}
车辆包月,续费(账户余额足够的情况)
{"type":"addmonthlybyaccountbalance",
"info":{"phonenumber":"18880488738",
"licensenumber":"川A12345",
"pid":"10",
"month":1
}
}
pid:包月停车场对应的PID,month:包多少个月
返回值:{"resulttag":"addmonthlybyaccountbalance","resultdata":101}
101,该车未被绑定,不能进行包月操作。
102,包月失败,账户余额不足
补缴停车费(账户余额足够的情况)》》》》》》》》》》》》》
{"type":"laterpay",
"info":{"phonenumber":"18880488738",
"hid":"136"
}
}
返回值:{"resulttag":"laterpay","resultdata":101}
102,账户余额不足,本次补缴失败
101,没有该车辆的未缴费记录
查看对应的停车场中是否有自己已经预订了的车位信息
{"type":"parkhasmycar",
"info":{"phonenumber":"18880488738",
"pid":"10"
}
}
返回值:{"resulttag":"parkhasmycar",
"resultdata":[
{"bid":"3","licensenumber":"川A12342"},
{"bid":"6","licensenumber":"京CJ0435"},
{"bid":"11","licensenumber":"川A1234A"}
]
}
{"resulttag":"parkhasmycar","resultdata":101}
101,表示该用户没有对应的预订了车位的车辆
获取用户协议》》》》》》》》》》》
{"type":"protocol",
"info":{"pid":"10"
}
}
pid:暂时保留,值任意
返回值:{"resulttag":"protocol","resultdata":"请仔"}
如果要修改用户协议,直接修改protocol.txt中的数据
支付宝
{"productName":"充值",
"total_fee":"0.01",
"productDescription":"18880488738"
}
productName : 充值,缴费,包月 只有这个三个字段,也只能是这三个(就是汉字,不然会导致操作失败,编码方式UTF-8)
productDescription:充值操作的时候 填写自己的电话号码
缴费操作的时候 用户电话,hid 例:18880488738,136
包月的时候 用户电话,车牌,pid,包月时长
比如: 18880488738,京CJ0433,10,1
包月之前,先判断,如果是黑名单,那么不能发起包月,先补缴停车费用
请求地址:http://192.168.8.102/www/jilaijiting/interface/appalipay/send.php
返回值:{"resulttag":"success",
"resultdata":"_input_charset=\"utf-8\"&body=\"18880488738\"¬ify_url=\"http:\/\/jilaijiting.625keji.com\/interface\/appalipay\/notify_url.php\"&out_trade_no=\"a1d3e5adfcd30fd7b9da9d8551623952\"&partner=\"2088121869826029\"&payment_type=\"1\"&seller_id=\"cd625kj@163.com\"&service=\"mobile.securitypay.pay\"&subject=\"\u5145\u503c\"&total_fee=\"0.01\"&sign=\"KetoBTs0%2FwW1h%2Bx9URG%2Bhd1uXjX5LGbrlvMtIpK7gRbN6dK%2BQu5onIURHAzQ0xaIOdEcoNA1KnoVOIy1YhlqBwP03NjowxR0fvNOqF%2BmXhZOW97XwrgiMNSn9BUx226gJDfvxfKnRYy2G2jUTOBlxcl7Gwq6jr6t%2FpsP55F4Fxngiw%3D%3D\"&sign_type=\"RSA\""
}
resulttag:success表示成功,fail表示失败
resultdata: 调用这个值发起支付宝请求
微信支付
{"type":"wxpay",
"body":"园区停车场包月",
"total_fee":"1",
"spbill_create_ip":"192.168.8.102",
"what":"18880488738"
}
type:固定值
body:商品描述字段,发起微信支付的时候,用户能够看到的,不要随便乱写
total_fee:交易总金额,单位是分
spbill_create_ip:手机的IP地址
what:
充值操作:填写用户的手机号
缴费操作:组成原则,用户电话,hid
比如:18880488738,160
包月操作:组成原则,用户电话,车牌,pid,包月时长
比如: 18880488738,京CJ0433,10,1
包月之前,先判断,如果是黑名单,那么不能发起包月,先补缴停车费用
访问地址:http://192.168.8.102/www/jilaijiting/interface/appweixinpay/send.php
返回值:
{"appid":"wxe0f2f97c4aeabcbf",
"noncestr":"46acf72f5d2af1f3f59b33424fe040bc",
"package":"Sign=WXPay",
"partnerid":"1315525901",
"prepayid":"wx201603190935030a125c17060175940945",
"timestamp":1458351180,
"sign":"FEDC5DF9B30A3FC7A51F46E039233161"
}
根据返回值,自己调用微信支付
如果用aliyun服务器操作,地址为
将http://192.168.8.102/www/jilaijiting 替换为:http://jilaijiting.625keji.com
安卓更新的访问地址:
此方法为GET请求 pid的值,对应的是小区针对的APP
http://jilaijiting.625keji.com/interface/software_update/main.php?pid=10
要更新那个停车场,就带哪个停车场的pid,
如果是大APP升级,那么,pid=0
返回值:
<update>
<asmallpark_version>2</asmallpark_version>
<asmallpark_must>yes</asmallpark_must>
<asmallpark_name>asmallpark.apk</asmallpark_name>
<asmallpark_url>http://jilaijiting.625keji.com/interface/test.apk</asmallpark_url>
</update>
asmallpark_must:如果为yes,那么是必选更新,用户不更新,无法使用软件
苹果更新:
{"type":"IOS",
"info":{
"versioncode":"1.0.1"
}
}
访问地址:http://192.168.8.102/www/jilaijiting/interface/software_update/ios.php
返回值:{
"type":"IOS",
"info":"yes"
}
info的值;yes 为必选更新,no为可选更新 fail表示失败(错误原因,参数versioncode错误)404(int类型),非法请求
一体机请求本次停车费用(GET方法,使用中)
参数 tag = howmoney
license = 川A12342
mac = f6dfc538-36cc3374(入口或者出口的一体机的序列号)
访问地址: http://192.168.8.102/www/jilaijiting/interface/machine/gethowmoney.php?tag=howmoney&license=川A12342&mac=f6dfc538-36cc3374
返回值,
resulttag :success 如果值为inandout,则表示,公用进出口的情况,车辆刚出去了,然后,被入口摄像头识别
{"resulttag":"fail","resultdata":"notfind"}
{"resulttag":"second","resultdata":"公用进出口,识别时间小于30S"}
{"resulttag":"lock","resultdata":"车辆被锁定"}
{
"resulttag":"success",
"resultdata":{"time":"1时26分",
"money":"35",
"ismonthly":"1" 该字段,1表示该车为包月会员,0表示为普通用户
"isalosttime":"0", 是否播报thetime的数据,1表示要播报
"thetime":"12月12日",
‘isviplose‘=>1 是否是包月会员本次到期的情况
}
}
暂时只有这几种情况
resulttag: success表示成功,fail表示失败,lock表示车辆被锁定
resultdata: 停车时间,停车费用
一体机入场,访问车辆是否是包月用户(GET)
参数 tag = in
license = 川A12342
mac = f6dfc538-36cc3374(入口或者出口的一体机的序列号)
访问地址: http://192.168.8.102/www/jilaijiting/interface/machine/gethowmoney.php
{"resulttag":"success",
"resultdata":{"ismonthly":"1",
"remain":"99",
"reallest":"101",
"isalosttime":"0",
"thetime":"12月12日"
}
}
resulttag :success 如果值为inandout,则表示,公用进出口的情况,车辆刚出去了,然后,被入口摄像头识别
ismonthly : 1表示该车辆是包月会员,0表示为临时停车用户
remain : 表示剩余车位个数(总车位 - 包月用户 - 临时用户 - 预订车位个数)
reallest : 表示剩余车位个数(总车位 - 实际在场车辆)
isalosttime : 是否播报thetime的数据,1表示要播报
thetime : 包月到期时间
开启或者关闭车辆防丢功能(开启后,车辆在出口处的时候,道闸不开门,并百度云推送至手机用户)
{"type":"carlost",
"info":
{"phonenumber":"18880488738",
"status":"1"}
}
status:1表示开启,0表示关闭
访问地址:URL:http://192.168.8.102/www/jilaijiting/interface/app/main.php
返回值:{"resulttag":"carlost","resultdata":101}
402,失败未找到该用户
获取车辆防丢功能的状态
{"type":"carloststatus",
"info":{"phonenumber":"18880488738"
}
}
返回值:{"resulttag":"carloststatus","resultdata":"1"}
1:开启状态,0关闭状态
JAVA端程序上传图片至服务器(POST)
请求地址:http://jilaijiting.625keji.com/interface/machine/image.php
参数:name :图片名字,包含.jpg
values:base64编码的图片
返回值:success表示成功,fail表示失败
公司主页使用的接口
查看合作停车场的名字以及对应的pid
请求地址:http://jilaijiting.625keji.com/interface/625.com/main.php
请求参数: (GET方式)
key : 625keji 固定值
tag :getname 固定值
例如:http://jilaijiting.625keji.com/interface/625.com/main.php?key=625keji&tag=getname
返回值:{
"resulttag": "200",
"resultdata": [
{
"pid": "14",//这个表示停车场的ID
"name": "恒山苑",//停车场的名字
"address": "恒山苑"//停车场的地址
},
{
"pid": "15",
"name": "测试专用",
"address": "sdfa"
},
{
"pid": "16",
"name": "六二五",
"address": "sdfa"
}
]
}
查看历史车流量信息
请求地址:http://jilaijiting.625keji.com/interface/625.com/main.php
请求参数: (GET方式)
key : 625keji 固定值
tag :getcartime 固定值
bejintime : 20160501 开始时间2016年5月1日
endtime : 20160728 结束时间2016年7月28日
pid : 0 停车场编号,当查询所有停车场是,该值为0
比如,查询所有停车场16年5月1日到16年7月28日的数据
http://jilaijiting.625keji.com/interface/625.com/main.php?key=625keji&tag=getcartime&bejintime=20160501&endtime=20160728&pid=0
返回值:
{
"resulttag": "200",
"resultdata": [
{
"pid": "15",//停车场ID
"days": "20160510",//时间
"how": "1",//当日停车的车次
"name": "测试专用"//停车场的名字
},
{
"pid": "14",
"days": "20160513",
"how": "11",
"name": "恒山苑"
},
{
"pid": "14",
"days": "20160514",
"how": "23",
"name": "恒山苑"
},
{
"pid": "15",
"days": "20160514",
"how": "2",
"name": "测试专用"
}
]
}
标签:
原文地址:http://www.cnblogs.com/judes/p/5720243.html