生活缴费接口
diff --git "a/source/_posts/\344\270\200\345\215\241\351\200\232v5\347\263\273\347\273\237\345\272\224\347\224\250\346\216\245\345\217\243\346\226\207\346\241\243.md" "b/source/_posts/\344\270\200\345\215\241\351\200\232v5\347\263\273\347\273\237\345\272\224\347\224\250\346\216\245\345\217\243\346\226\207\346\241\243.md"
index 1cc8ba2..acf7cf4 100644
--- "a/source/_posts/\344\270\200\345\215\241\351\200\232v5\347\263\273\347\273\237\345\272\224\347\224\250\346\216\245\345\217\243\346\226\207\346\241\243.md"
+++ "b/source/_posts/\344\270\200\345\215\241\351\200\232v5\347\263\273\347\273\237\345\272\224\347\224\250\346\216\245\345\217\243\346\226\207\346\241\243.md"
@@ -1091,6 +1091,367 @@
| sign | String | 签名 |
| 签名 | String | 参数的加密方法选择,可选值是:HMAC 加密方式为HAMC-SHA1 |
+
+
+
+#5 生活缴费接口#
+## 5.0 生活缴费查询系统区域级别 ##
+
+**请求URL:**
+
+- `https://ip:port/epayapi/services/lifebill/thirdparty/querylocationlevel`
+
+**请求方式/格式:**
+
+- POST
+- application/x-www-form-urlencoded
+
+**请求参数:**
+
+无
+
+**请求内容示例:**
+
+```html
+URI:https://ip:port/epayapi/services/lifebill/thirdparty/querylocationlevel
+
+
+```
+
+**返回示例:**
+
+- 成功
+
+```json
+[
+ {
+ "levelnum": 0,
+ "name": "校区"
+ },
+ {
+ "levelnum": 1,
+ "name": "楼栋"
+ },
+ {
+ "levelnum": 2,
+ "name": "单元"
+ },
+ {
+ "levelnum": 3,
+ "name": "房间"
+ }
+]
+
+```
+
+- 失败
+
+```json
+null 或者 []
+
+```
+
+**返回参数说明:**
+
+| 参数名 | 类型 | 说明 |
+| --- | --- | --- |
+| levelnum | Integer | 级别 |
+| name | String | 名称 |
+
+
+
+
+## 5.1 生活缴费查询房间 ##
+**请求URL:**
+
+- `https://ip:port/epayapi/services/lifebill/thirdparty/querylocation`
+
+**请求方式/格式:**
+
+- POST
+- application/x-www-form-urlencoded
+
+**请求参数:**
+
+| 参数名 | 类型 | 说明 |
+| --- | --- | --- |
+| levelnum | Integer | 级别,非空 |
+| pid | String | 父级ID |
+
+**请求内容示例:**
+
+```html
+URI:https://ip:port/epayapi/services/lifebill/thirdparty/querylocation
+
+
+```
+
+**返回示例:**
+
+- 成功
+
+```json
+levelnum=0,pid=null 返回:
+[
+ {
+ "id": "1",
+ "code": "1",
+ "name": "呈贡校区",
+ "pid": null,
+ "levelnum": 0
+ }
+]
+
+或 levelnum=1,pid=“1” 返回:
+[
+ {
+ "id": "2",
+ "code": "2",
+ "name": "楠苑五栋",
+ "pid": "1",
+ "levelnum": 1
+ },
+ {
+ "id": "3",
+ "code": "3",
+ "name": "楠苑三栋",
+ "pid": "1",
+ "levelnum": 1
+ }
+]
+
+```
+
+- 失败
+
+```json
+null 或者 []
+
+```
+
+**返回参数说明:**
+
+| 参数名 | 类型 | 说明 |
+| --- | --- | --- |
+| id | String | 位置ID |
+| code | String | 位置代码 |
+| name | String | 名称 |
+| pid | String | 父级ID |
+| levelnum | Integer | 级别 |
+
+
+## 5.2 生活缴费查询房间账单 ##
+**请求URL:**
+
+- `https://ip:port/epayapi/services/lifebill/thirdparty/querybills`
+
+**请求方式/格式:**
+
+- POST
+- application/x-www-form-urlencoded
+
+**请求参数:**
+
+| 参数名 | 类型 | 说明 |
+| --- | --- | --- |
+| locationid | String | 房间ID |
+
+**请求内容示例:**
+
+```html
+URI:https://ip:port/epayapi/services/lifebill/thirdparty/querybills
+
+
+```
+
+**返回示例:**
+
+- 成功
+
+```json
+[
+ {
+ "billid": "8a53b78257bcee0a0157bd1f67d20032",
+ "billname": "9月份水费",
+ "itemno": "8a53b78257bcee0a0157bd1f67b3002f",
+ "locationid": "7",
+ "locationfullname": "呈贡校区/楠苑五栋/B区/339",
+ "shopid": 4,
+ "shopname": "电控商户",
+ "startdate": "20161013",
+ "amount": 10
+ },
+ {
+ "billid": "8a53b78257bcee0a0157bd13afaa0020",
+ "billname": "测试电费",
+ "itemno": "8a53b78257bcee0a0157bd13af7b001d",
+ "locationid": "7",
+ "locationfullname": "呈贡校区/楠苑五栋/B区/339",
+ "shopid": 6,
+ "shopname": "水控商户",
+ "startdate": "20161013",
+ "amount": 10
+ },
+ {
+ "billid": "8a53b78257bcee0a0157bd20c5ba0038",
+ "billname": "测试水费",
+ "itemno": "8a53b78257bcee0a0157bd20c59a0035",
+ "locationid": "7",
+ "locationfullname": "呈贡校区/楠苑五栋/B区/339",
+ "shopid": 4,
+ "shopname": "电控商户",
+ "startdate": "20161013",
+ "amount": 10
+ }
+]
+```
+
+- 失败
+
+```json
+null 或者 []
+
+```
+
+**返回参数说明:**
+
+| 参数名 | 类型 | 说明 |
+| --- | --- | --- |
+| billid | String | 账单ID |
+| billname | String | 名称 |
+| itemno | String | 账单项目号 |
+| locationid | String | 房间ID |
+| locationfullname | String | 房间名称 |
+| shopid | Integer | 收费商户ID |
+| shopname | String | 收费商户名称 |
+| startdate | String | 开始日期 |
+| amount | Double | 账单金额 |
+
+
+## 5.3 生活缴费账单缴费初始化(APP) ##
+**请求URL:**
+
+- `https://ip:port/epayapi/services/lifebill/paylifebillinit`
+
+**请求方式/格式:**
+
+- POST
+- application/x-www-form-urlencoded
+
+**请求参数:**
+
+| 参数名 | 类型 | 说明 |
+| --- | --- | --- |
+| billid | String | 账单ID |
+| gid | Integer | app个人的gid |
+
+**请求内容示例:**
+
+```html
+URI:https://ip:port/epayapi/services/lifebill/paylifebillinit
+
+
+```
+
+**返回示例:**
+
+- 成功
+
+```json
+{
+ "retcode": "0",
+ "retmsg": "初始化成功",
+ "billno": "8a53b78257bcee0a0157bd20c5ba0038"
+}
+```
+
+- 失败
+
+```json
+{
+ "retcode": "2",
+ "retmsg": "账单已付款"
+}
+
+```
+
+**返回参数说明:**
+
+| 参数名 | 类型 | 说明 |
+| --- | --- | --- |
+| retcode | String | 返回码,0-成功,其他失败 |
+| retmsg | String | 返回信息 |
+| billno | String | 成功时返回流水号 |
+
+## 5.4 生活缴费账单缴费确认(多媒体) ##
+**请求URL:**
+
+- `https://ip:port/epayapi/services/lifebill/dmt/lifebillconfirm`
+
+**请求方式/格式:**
+
+- POST
+- application/x-www-form-urlencoded
+
+**请求参数:**
+
+| 参数名 | 类型 | 说明 |
+| --- | --- | --- |
+| termid | String | 设备终端号 |
+| devphyid | String | 设备物理ID(与termid 二选一) |
+| billid | String | 账单ID |
+| amount | Integer | 账单金额(分)|
+| refno | String | 付款流水号 |
+| app_id | String | 应用ID |
+| term_id| String | 设备终端号或物理ID |
+| timestamp | String | 时间戳 ‘yyyyMMddHHmmss’ |
+| sign | String | 签名 |
+| sign_method | String | 签名方法 |
+
+**请求内容示例:**
+
+```html
+URI:https://ip:port/epayapi/services/lifebill/dmt/lifebillconfirm
+
+devphyid:10000001
+billid:8a53b78257bcee0a0157bd13afaa0020
+amount:1000
+refno:20161019180731005169
+app_id:1000011
+term_id: 10000001
+timestamp:20150119130901
+sign:5195f9b9116e4adf67eeebc9935d33dc683f677d
+sign_method:HMAC
+
+```
+
+**返回示例:**
+
+- 成功
+
+```json
+{
+ "retcode": "0",
+ "retmsg": "成功"
+}
+```
+
+- 失败
+
+```json
+{
+ "retcode": "99",
+ "retmsg": "缴费流水已被冲正"
+}
+
+```
+
+**返回参数说明:**
+
+| 参数名 | 类型 | 说明 |
+| --- | --- | --- |
+| retcode | String | 返回码,0-成功,其他失败 |
+| retmsg | String | 返回信息 |