返回示例:

正确时返回:


  0 => array:5 [
    "id" => "M1600237512721"
    "component_key" => "U_community"
    "component_title" => "微社区"
    "template_id" => 24
    "remote_data" => array:7 [
      "get_number" => 1
      "preview_color" => "#ffffff"
      "tab_bg" => "#ffffff"
      "title_color" => "#ffffff"
      "title_active_color" => "#ff2c29"
      "list" => array:9 [
        "total" => 3
        "per_page" => 12
        "current_page" => 1
        "last_page" => 1
        "next_page_url" => null
        "prev_page_url" => null
        "from" => 1
        "to" => 3
        "data" => array:3 [
          0 => array:10 [
            "id" => 3
            "praise_num" => 1
            "user_id" => 163779
            "title" => "222"
            "ylng" => "113.265251"
            "ylat" => "23.197393"
            "cat_id" => 1
            "has_one_stick_user" => array:3 [
              "avatar" => "https://thirdwx.qlogo.cn/mmopen/ajNVdqHZLLCKcv76uhjUbhwz6kSdz8Ftr9JicXMBWpNI55Gx0ylDHLRPicrubdFZ9Mg9rLKe0XcWaBaWevspU7XQtsGIyLOKlupBvUC4XeHOw/132"
              "nickname" => "huan"
              "uid" => 163779
            ]
            "has_one_category" => array:3 [
              "id" => 1
              "name" => "22"
              "icon" => "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/10/D4uZa999psputsapuDASza5WAWfs9p.jpg"
            ]
            "has_many_image" => array:1 [
              0 => array:3 [
                "id" => 3
                "stick_id" => 3
                "url" => "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/fcd11fba92d8214930df69af898d7b5b.jpg"
              ]
            ]
          ]
          1 => array:10 [
            "id" => 2
            "praise_num" => 1
            "user_id" => 163809
            "title" => "标题"
            "ylng" => "113.265221"
            "ylat" => "23.197378"
            "cat_id" => 1
            "has_one_stick_user" => array:3 [
              "avatar" => "https://thirdwx.qlogo.cn/mmopen/PxCkzIh1a9Gtda5zMz26z1XPxE6fsiacXWmgvRcjcZmQIn3GYhSxmoxFplw2mklibC699icIcAnpuoibYicnayen5FC2uIxjpw0Zf/132"
              "nickname" => "售后客服-栗子"
              "uid" => 163809
            ]
            "has_one_category" => array:3 [
              "id" => 1
              "name" => "22"
              "icon" => "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/10/D4uZa999psputsapuDASza5WAWfs9p.jpg"
            ]
            "has_many_image" => array:1 [
              0 => array:3 [
                "id" => 2
                "stick_id" => 2
                "url" => "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/6923f050575c094ed1605da1db13c064.jpg"
              ]
            ]
          ]
          2 => array:10 [
            "id" => 1
            "praise_num" => 0
            "user_id" => 163779
            "title" => "11"
            "ylng" => "113.265267"
            "ylat" => "23.197383"
            "cat_id" => 1
            "has_one_stick_user" => array:3 [
              "avatar" => "https://thirdwx.qlogo.cn/mmopen/ajNVdqHZLLCKcv76uhjUbhwz6kSdz8Ftr9JicXMBWpNI55Gx0ylDHLRPicrubdFZ9Mg9rLKe0XcWaBaWevspU7XQtsGIyLOKlupBvUC4XeHOw/132"
              "nickname" => "huan"
              "uid" => 163779
            ]
            "has_one_category" => array:3 [
              "id" => 1
              "name" => "22"
              "icon" => "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/10/D4uZa999psputsapuDASza5WAWfs9p.jpg"
            ]
            "has_many_image" => array:1 [
              0 => array:3 [
                "id" => 1
                "stick_id" => 1
                "url" => "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/dfe8a0274ce503c7740dcfe35d43324f.gif"
              ]
            ]
          ]
        ]
      ]
      "cate" => array:1 [
        0 => array:3 [
          "id" => 1
          "name" => "22"
          "icon" => "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/10/D4uZa999psputsapuDASza5WAWfs9p.jpg"
        ]
      ]
    ]
  ]
]

错误时返回:

  {
    "errcode": 500,
    "errmsg": "invalid appid"
  }

返回参数说明:

参数名 类型 说明
remote_data['cate] array 分类
remote_data['list']['has_one_stick_user'] array 作者信息
remote_data['list']['has_many_image'] array 帖子图片(多个)
remote_data['list']['praise_num'] int 点赞数量
remote_data['list']['title'] string 标题

备注:

  • 更多返回错误代码请看首页的错误代码描述