From 1cb13e00edca869eccebb9d161173628712e7419 Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 24 Jul 2019 19:52:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BD=8D=E7=BD=AE=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.MD | 23 +++++++++-------------- handler/location.py | 2 +- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/README.MD b/README.MD index 7018ceb..18d3864 100644 --- a/README.MD +++ b/README.MD @@ -192,17 +192,14 @@ http://154.8.214.202:5015/interface/location http://154.8.214.202:5015/interface/location -http://154.8.214.202:5015/interface/location - ##### 请求参数说明 -| 名称 | 类型 | 必填 | 说明 | -| ----------- | ---- | ---- | --------------------------------------------- | -| gameid | int | 是 | 游戏ID | -| channelid | int | 是 | 渠道ID,默认是6001 | -| area | int | 是 | 游戏区域 (1=首页,2=游戏中,3=结算页,4=关闭) | -| type | int | 是 | 类型(1=icon,2=banner,3=浮窗,4=icon2) | -| localtionid | int | 是 | 位置ID | +| 名称 | 类型 | 必填 | 说明 | +| --------- | ---- | ---- | --------------------------------------------- | +| gameid | int | 是 | 游戏ID | +| channelid | int | 是 | 渠道ID,默认是6001 | +| area | int | 否 | 游戏区域 (1=首页,2=游戏中,3=结算页,4=关闭) | +| type | int | 否 | 类型(1=icon,2=banner,3=浮窗,4=icon2) | ##### 返回参数说明 @@ -239,8 +236,6 @@ http://154.8.214.202:5015/interface/location http://154.8.214.202:5015/interface/location?area=1&type=1&gameid=1003 -http://154.8.214.202:5015/interface/location - ##### 请求参数说明 | 名称 | 类型 | 必填 | 说明 | @@ -278,9 +273,9 @@ http://154.8.214.202:5015/interface/location?id=1002 ##### 请求参数说明 -| 名称 | 类型 | 必填 | 说明 | -| ---- | ---- | ---- | -------------- | -| id | int | 是 | 需删除的位置ID | +| 名称 | 类型 | 必填 | 说明 | +| ---------- | ---- | ---- | -------------- | +| locationid | int | 是 | 需删除的位置ID | ##### 返回参数说明 diff --git a/handler/location.py b/handler/location.py index 37accfd..03174c9 100644 --- a/handler/location.py +++ b/handler/location.py @@ -48,7 +48,7 @@ class Location(Resource): return jsonify({'code': 200, 'message': all_data}) else: log.error(f"{data} not found in mysql !") - return jsonify({'code': 404}) + return jsonify({'code': 200, 'message': ""}) def post(self):