[关闭]
@JackieQu 2018-09-21T18:38:47.000000Z 字数 1011 阅读 288

【爸妈营】批量生成订单、解锁

儿童编程


注册、生成订单

Method and Url Structure

Method Resource URL
POST /server/userinfo/fix_group_userinfo/

cURL Example

  1. curl -X POST -H 'Authorization: Token admin123' -d data{...}
  2. localhost:8000/server/userinfo/fix_group_userinfo/

Request Data

  1. # 正式服上对应的pk
  2. # 买scratch的
  3. {
  4. "owners": ["1111", "2222", "3333"],
  5. "activity": 2,
  6. "price": 99
  7. }
  8. # 买python的
  9. {
  10. "owners": ["1111", "2222", "3333"],
  11. "activity": 18,
  12. "price": 99
  13. }
  14. # 买游戏的
  15. {
  16. "owners": ["1111", "2222", "3333"],
  17. "activity": 10,
  18. "price": 59
  19. }

解锁课程或游戏

Method and Url Structure

Method Resource URL
POST /program_face2face/userinfo/fix_group_record/

cURL Example

  1. curl -X POST -H 'Authorization: Token admin123' -d data{...}
  2. localhost:8000/program_face2face/userinfo/fix_group_record/

Request Data

  1. # 正式服上对应的pk
  2. # 买scratch的
  3. {
  4. "owners": ["1111", "2222", "3333"],
  5. "tag": "Scratch1st",
  6. "content": "Scratch特辑",
  7. "kind": "course"
  8. }
  9. # 买python的
  10. {
  11. "owners": ["1111", "2222", "3333"],
  12. "tag": "Python5th",
  13. "content": "Python语言入门(上)",
  14. "kind": "course"
  15. }
  16. # 买游戏的
  17. {
  18. "owners": ["1111", "2222", "3333"],
  19. "tag": "Game1st",
  20. "content": "编程冒险岛",
  21. "kind": "game"
  22. }

发短信通知

目前是统计好列表通过脚本发的
server/scripts/notify_bamaying.py

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注