Hamilton 3 years ago
parent
commit
ae05a758bf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      readme.md

+ 2 - 2
readme.md

@@ -15,11 +15,11 @@ curl -X POST -H "Content-Type:multipart/form-data" -F "file=@keyboard.jpeg" http
 上传成功后, 访问 http://cirraybucket.oss-cn-shanghai.aliyuncs.com/coffeetalk/keyboard.jpeg
 
 ## 创建活动
-curl -X POST -d '{"title":"Coffee Talk","location":"愚园路1107号1号楼509","starttime":"2020-07-23 09:00:00","endtime":"2020-07-23 15:30:00","deadline":"2020-07-23 09:00:00","capacity":50,"content":"这是一个有趣的活动,enjoy yourself!","images":"hello.jpg;world.jpg","attendfee":30,"organizer":"15692138642","private":1}' https://talk.cirray.cn/api/activity/create
+curl -X POST -d '{"title":"Coffee Talk","location":"愚园路1107号1号楼509","longitude":0,"latitude":0,"starttime":"2020-07-23 09:00:00","endtime":"2020-07-23 15:30:00","deadline":"2020-07-23 09:00:00","capacity":50,"content":"这是一个有趣的活动,enjoy yourself!","images":"hello.jpg;world.jpg","attendfee":30,"organizer":"15692138642","private":1}' https://talk.cirray.cn/api/activity/create
 (deadline(默认starttime),attendfee(默认0),private(默认0)非必须)
 
 ## 修改活动
-curl -X PUT -d '{actid,location,starttime,endtime,deadline,capacity,content,images,attendfee,private}' https://talk.cirray.cn/api/activity/update
+curl -X PUT -d '{actid,location,longitude,latitude,starttime,endtime,deadline,capacity,content,images,attendfee,private}' https://talk.cirray.cn/api/activity/update
 
 ## 所有public活动列表
 curl https://talk.cirray.cn/api/activity/list_public