From 420464147df09048237ef0e89e5235fe2738d912 Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 5 Aug 2019 10:32:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9F=9F=E5=90=8Dad=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.MD | 86 +++++++++++++++++++--------------------------------- ad_Readme.md | 10 +++--- server.py | 2 +- 3 files changed, 37 insertions(+), 61 deletions(-) diff --git a/README.MD b/README.MD index 3e4f496..bad804d 100644 --- a/README.MD +++ b/README.MD @@ -44,31 +44,21 @@ http://154.8.214.202:5015/interface/company?status=0 | companykey | string | 是 | 用于API认证 | ##### 返回示例 - { - "code": 200, - "message": [ - { - "appid": "zpoHY37u", - "appkey": "undefined", - "contact": "miles", - "id": "1006", - "name": "kingsome", - "status": 0, - "tel": "17771" - }, - { - "appid": "5bOaA82t", - "appkey": "undefined", - "contact": "miles", - "id": "1007", - "name": "kingsome", - "status": 0, - "tel": "17771" - } - ] + "code": 200, + "message": [ + { + "appid": "BKadJbmZ", + "appkey": "undefined", + "contact": "pt", + "id": "1001", + "name": "kings", + "status": 0, + "tel": "1234", + "user": "None" + } + ] } - #### 2、新增公司信息 ##### 接口地址 @@ -207,33 +197,19 @@ http://154.8.214.202:5015/interface/location?gameid=1004 | message | json | 是 | 所有位置信息 | ##### 返回示例 - { - "code": 200, - "message": [ - - { - -​ "area": "1,1,.1", - -​ "channelid": 6001, - -​ "gameid": 1003, - -​ "id": 1010, - -​ "mode": 2, - -​ "type": 1 - -​ } - + { + "area": "1,8,15", + "channelid": 6001, + "gameid": 1004, + "id": 1007, + "mode": 1, + "type": 2 + } ] - } - #### 6、添加位置服务信息 ##### 接口地址 @@ -346,7 +322,7 @@ http://154.8.214.202:5015/interface/location?id=1015 ##### 接口地址 -http://154.8.214.202:5015/interface/ad +http://154.8.214.202:5015/interface/prometion ##### 返回格式:json @@ -354,7 +330,7 @@ http://154.8.214.202:5015/interface/ad ##### 请求示范 -http://154.8.214.202:5015/interface/ad?name=abc&gameid=1003&locationid=1&ad_title=hello&ad_body=hi world&ad_image=http://1&ad_url=http://2&companyid=2 +http://154.8.214.202:5015/interface/prometion?name=abc&gameid=1003&locationid=1&ad_title=hello&ad_body=hi world&ad_image=http://1&ad_url=http://2&companyid=2 ##### 请求参数说明 @@ -391,7 +367,7 @@ http://154.8.214.202:5015/interface/ad?name=abc&gameid=1003&locationid=1&ad_titl ##### 接口地址 -http://154.8.214.202:5015/interface/ad +http://154.8.214.202:5015/interface/prometion ##### 返回格式:json @@ -399,7 +375,7 @@ http://154.8.214.202:5015/interface/ad ##### 请求示范 -http://154.8.214.202:5015/interface/ad?name=abc&gameid=1003&locationid=1&ad_title=hello&ad_body=hi world&ad_image=http://1&ad_url=http://2&begin_time=2019-06-01&end_time=2019-12-01&ad_num=300&ad_sort=1&status=1&id=1001&companyid=2 +http://154.8.214.202:5015/interface/prometion?name=abc&gameid=1003&locationid=1&ad_title=hello&ad_body=hi world&ad_image=http://1&ad_url=http://2&begin_time=2019-06-01&end_time=2019-12-01&ad_num=300&ad_sort=1&status=1&id=1001&companyid=2 ##### 请求参数说明 @@ -439,7 +415,7 @@ http://154.8.214.202:5015/interface/ad?name=abc&gameid=1003&locationid=1&ad_titl ##### 接口地址 -http://154.8.214.202:5015/interface/ad +http://154.8.214.202:5015/interface/prometion ##### 返回格式:json @@ -447,7 +423,7 @@ http://154.8.214.202:5015/interface/ad ##### 请求示范 -http://154.8.214.202:5015/interface/ad +http://154.8.214.202:5015/interface/prometion ##### 请求参数说明 @@ -471,7 +447,7 @@ http://154.8.214.202:5015/interface/ad ##### 接口地址 -http://154.8.214.202:5015/interface/ad +http://154.8.214.202:5015/interface/prometion ##### 返回格式:json @@ -479,11 +455,11 @@ http://154.8.214.202:5015/interface/ad ##### 请求示范 -http://154.8.214.202:5015/interface/ad?id=1002 +http://154.8.214.202:5015/interface/prometion?id=1002 -http://154.8.214.202:5015/interface/ad?companyid=0 +http://154.8.214.202:5015/interface/prometion?companyid=0 -http://154.8.214.202:5015/interface/ad?status=0 +http://154.8.214.202:5015/interface/prometion?status=0 ##### 请求参数说明 diff --git a/ad_Readme.md b/ad_Readme.md index 3bcb318..c93a7f8 100644 --- a/ad_Readme.md +++ b/ad_Readme.md @@ -2,7 +2,7 @@ ##### 接口地址 -http://ad.kingsome.cn/webapp/index.php +http://prometion.kingsome.cn/webapp/index.php ##### 返回格式:json @@ -10,8 +10,8 @@ http://ad.kingsome.cn/webapp/index.php ##### 请求示范 -http://ad.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1003","channelid":6001,"locationid":1001} -http://ad.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1004:6001","channelid":6001,"area":1} +http://prometion.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1003","channelid":6001,"locationid":1001} +http://prometion.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1004:6001","channelid":6001,"area":1} ##### 请求参数说明 @@ -71,7 +71,7 @@ http://ad.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1004:60 ##### 接口地址 -http://ad.kingsome.cn/webapp/index.php +http://prometion.kingsome.cn/webapp/index.php ##### 返回格式:json @@ -79,7 +79,7 @@ http://ad.kingsome.cn/webapp/index.php ##### 请求示范 -http://ad.kingsome.cn/webapp/index.php?c=Ops&a=upAdRecording&adid=1009 +http://prometion.kingsome.cn/webapp/index.php?c=Ops&a=upAdRecording&adid=1009 ##### 请求参数说明 diff --git a/server.py b/server.py index d463000..0578bfa 100644 --- a/server.py +++ b/server.py @@ -21,7 +21,7 @@ api = Api(app) api.add_resource(Company, '/interface/company') api.add_resource(Location, '/interface/location') -api.add_resource(Ad, '/interface/ad') +api.add_resource(Ad, '/interface/prometion') api.add_resource(Cos_sdk, '/interface/cos_upload')