McDonalds(麦当劳)
    McDonalds(麦当劳)
    • 根据经纬度获取店铺
      GET
    • 店铺信息
      GET
    • 店铺菜单
      GET
    • 加入购物车
      PUT
    • 获取最近的店铺
      POST
    • 提交订单
      POST
    • 订单列表
      GET

      根据经纬度获取店铺

      开发中
      GET
      https://api.mcd.cn/bff/store/stores/vicinity

      请求参数

      Query 参数
      latitude
      string 
      必需
      示例值:
      28.157175064086914
      longitude
      string 
      必需
      示例值:
      112.9796371459961
      distance
      string 
      必需
      示例值:
      10000
      keyword
      string 
      必需
      hotTagCode
      string 
      必需
      showType
      string 
      必需
      示例值:
      2
      beType
      string 
      必需
      Header 参数
      Host
      string 
      必需
      示例值:
      api.mcd.cn
      language
      string 
      必需
      示例值:
      zh
      traceId
      string 
      必需
      示例值:
      2bebcfd6-956f-4dd4-8aa2-09cff663235c
      d
      string 
      必需
      示例值:
      BNTPhRkLnNkPJif54DjtPesceQXEYP76/NFr6Aqy7tHR51p1TeIc/QG//bpWQ3yQvNYxrl+xRZKrvdKHG0VhJ7g==
      User-Agent
      string 
      必需
      示例值:
      Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E217 MicroMessenger/6.8.0(0x16080000) NetType/WIFI Language/en Branch/Br_trunk MiniProgramEnv/Mac
      sv
      string 
      必需
      示例值:
      v3
      tid
      string 
      必需
      示例值:
      00003TuL
      Referer
      string 
      必需
      示例值:
      https://servicewechat.com/wx25f982a55e60a540/285/page-frame.html
      biz_from
      string 
      必需
      示例值:
      1006
      request-timestamp
      string 
      必需
      示例值:
      1677467435889
      xid
      string 
      必需
      biz_scenario
      string 
      必需
      示例值:
      103
      v
      string 
      必需
      示例值:
      6.0.53.0
      ct
      string 
      必需
      示例值:
      31
      nonce
      string 
      必需
      示例值:
      1677467435889683219
      sid
      string 
      必需
      sign
      string 
      必需
      示例值:
      de15ffcecd88ee38f385b07ada982b8b
      Accept-Language
      string 
      必需
      示例值:
      zh-CN,zh-Hans;q=0.9
      Accept
      string 
      必需
      示例值:
      */*
      Content-Type
      string 
      必需
      示例值:
      application/json
      st
      string 
      必需
      示例值:
      1677467436

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://api.mcd.cn/bff/store/stores/vicinity?latitude=28.157175064086914&longitude=112.9796371459961&distance=10000&keyword=&hotTagCode=&showType=2&beType=' \
      --header 'Host: api.mcd.cn' \
      --header 'language: zh' \
      --header 'traceId: 2bebcfd6-956f-4dd4-8aa2-09cff663235c' \
      --header 'd: BNTPhRkLnNkPJif54DjtPesceQXEYP76/NFr6Aqy7tHR51p1TeIc/QG//bpWQ3yQvNYxrl+xRZKrvdKHG0VhJ7g==' \
      --header 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E217 MicroMessenger/6.8.0(0x16080000) NetType/WIFI Language/en Branch/Br_trunk MiniProgramEnv/Mac' \
      --header 'sv: v3' \
      --header 'tid: 00003TuL' \
      --header 'Referer: https://servicewechat.com/wx25f982a55e60a540/285/page-frame.html' \
      --header 'biz_from: 1006' \
      --header 'request-timestamp: 1677467435889' \
      --header 'xid;' \
      --header 'biz_scenario: 103' \
      --header 'v: 6.0.53.0' \
      --header 'ct: 31' \
      --header 'nonce: 1677467435889683219' \
      --header 'sid;' \
      --header 'sign: de15ffcecd88ee38f385b07ada982b8b' \
      --header 'Accept-Language: zh-CN,zh-Hans;q=0.9' \
      --header 'Accept: */*' \
      --header 'st: 1677467436' \
      --header 'Content-Type: application/json' \
      --data-raw ''

      返回响应

      🟢200成功
      application/json
      Body
      success
      boolean 
      必需
      code
      integer 
      必需
      message
      string 
      必需
      datetime
      string 
      必需
      traceId
      string 
      必需
      data
      null 
      必需
      示例
      {
          "success": true,
          "code": 200,
          "message": "请求成功",
          "datetime": "2023-02-27 11:10:36",
          "traceId": null,
          "data": {
              "datetime": "2023-02-27 11:10:35",
              "stores": [
                  {
                      "code": "3390143",
                      "name": "麦当劳长沙万润时光里餐厅",
                      "shortName": "长沙万润时光里餐厅",
                      "telephone": "0731-85225905",
                      "distance": 524,
                      "distanceText": "524m",
                      "address": "赤岭路与新建西路交汇处万润时光里。餐厅电话0731-85225905",
                      "latitude": 28.15247,
                      "longitude": 112.979277,
                      "cityCode": "430100",
                      "cityName": "长沙市",
                      "communityQrcode": "https://menu-img.mcd.cn/store/prod/store/communityQrcode/3390143-577251288ac14066a35c27de1436733b.png",
                      "deliveryFeeCode": null,
                      "duration": null,
                      "deliveryTime": null,
                      "estimatedDeliveryTime": null,
                      "hotTagCodes": [
                          "breakfast",
                          "wifi",
                          "family",
                          "childrenPlayground",
                          "mcCafe",
                          "mds",
                          "gm"
                      ],
                      "businessHours": null,
                      "dayparts": [
                          {
                              "daypartCode": 1,
                              "daypartName": "早餐",
                              "startTime": "05:00:00",
                              "endTime": "10:29:59",
                              "daypartFlag": false
                          },
                          {
                              "daypartCode": 4,
                              "daypartName": "下午茶",
                              "startTime": "14:30:00",
                              "endTime": "16:59:59",
                              "daypartFlag": false
                          },
                          {
                              "daypartCode": 5,
                              "daypartName": "夜市",
                              "startTime": "17:00:00",
                              "endTime": "04:59:59",
                              "daypartFlag": false
                          },
                          {
                              "daypartCode": 8,
                              "daypartName": "午餐",
                              "startTime": "10:30:00",
                              "endTime": "14:29:59",
                              "daypartFlag": true
                          }
                      ],
                      "startTime": "07:00",
                      "endTime": "23:00",
                      "businessStatus": 1,
                      "beCode": null,
                      "beType": null,
                      "isActive": true,
                      "tags": [
                          {
                              "label": "距离最近",
                              "value": "nearest"
                          }
                      ],
                      "businessStartDay": "2022-04-29",
                      "newStore": 0,
                      "newStoreEndDate": null,
                      "newBe": null,
                      "newBeEndDate": null,
                      "welcomeMsg": null,
                      "isDt": null,
                      "isCollected": null,
                      "tips": null,
                      "needPop": null,
                      "popText": null,
                      "onlineBusinessStatus": true,
                      "storeFrontPic": "https://store-img.mcd.cn/store-pictures/3390143/3390143-9c914fa4428f490b86d43bf8ae5a028d.png",
                      "storePictures": null,
                      "mainPic": "https://store-img.mcd.cn/store-pictures/3390143/3390143-9c914fa4428f490b86d43bf8ae5a028d.png",
                      "themeType": 1,
                      "themeImageUrl": "https://img.mcd.cn/gallery/a484940b4d365f58.png",
                      "themeBgImageUrl": "https://img.mcd.cn/gallery/395153c26163bd92.png",
                      "themeJumpUrl": "/address/pages/restaurant/restaurantList/index?selectStoreCheckType=2&storeCode=3390143",
                      "themeLogo": "https://img.mcd.cn/gallery/b69969cacfedb09c.png",
                      "storeStatus": null,
                      "orderChannelCodes": null,
                      "announcementInfo": null,
                      "frequent": null
                  },
                  {
                      "code": "3390021",
                      "name": "麦当劳长沙雨花亭餐厅",
                      "shortName": "长沙雨花亭餐厅",
                      "telephone": "0731-85350611",
                      "distance": 1503,
                      "distanceText": "1.5km",
                      "address": "韶山中路412号宏轩花苑一栋101房    餐厅电话073185350611",
                      "latitude": 28.155492,
                      "longitude": 112.994849,
                      "cityCode": "430100",
                      "cityName": "长沙市",
                      "communityQrcode": "https://menu-img.mcd.cn/store/prod/store/communityQrcode/3390021-d5cfd260dc20472eb1e467429531da2c.png",
                      "deliveryFeeCode": "7030",
                      "duration": null,
                      "deliveryTime": null,
                      "estimatedDeliveryTime": null,
                      "hotTagCodes": [
                          "breakfast",
                          "wifi",
                          "family",
             
      修改于 2023-02-27 03:15:22
      下一页
      店铺信息
      Built with