url.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import os
  2. headers = {'Content-Type': 'application/json'}
  3. os_env = os.getenv('LYY_DEV', 'unknown')
  4. debug_url = "http://139.186.134.115:8806/jeecg-boot/"
  5. product_url = 'http://api.tjyourong.com.cn/jeecg-boot/'
  6. dev_server_port = 'http://139.186.165.84:31012/'
  7. product_server_port = 'http://139.186.27.96:31012/'
  8. # 创建计划url
  9. create_campaign_url = (debug_url if os_env == 'dev' else product_url) + 'kuaishou/create/campaignCreate'
  10. # 修改广告计划状态url
  11. # 入参:accountId 账户id Long
  12. # putStatus 状态 1-投放、2-暂停、3-删除 int
  13. # userId 操作人id string
  14. # campaignIds 计划id集合 array
  15. # 返回结果
  16. # {
  17. # "success": true,
  18. # "message": "操作成功!",
  19. # "code": 0,
  20. # "result": {
  21. # "failCount": 1,
  22. # "failInfo": [
  23. # {
  24. # "message": "access token错误"
  25. # }
  26. # ],
  27. # "totalCount": 1
  28. # },
  29. # "timestamp": 1630030314462
  30. # }
  31. update_campaign_status_url = (debug_url if os_env == 'dev' else product_url) + 'kuaishou/batch/batchUpdateStatus'
  32. # 创建组和创意url
  33. create_group_and_creative_url = (debug_url if os_env == 'dev' else product_url) + 'kuaishou/create/createUnitAndCreative'
  34. # ai_target_combine 服务的接口
  35. target_combine_url = (dev_server_port if os_env == 'dev' else product_server_port) + 'ai_target_combine'
  36. # 定向人群预估查询
  37. estimate_people_number_url = (debug_url if os_env == 'dev' else product_url) + 'estimatePeopleNumber/getCount'