站点工具

New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
Hotfix release available: 2018-04-22a "Greebo". upgrade now! [50.1] (what's this?)
New release available: 2018-04-22 "Greebo". upgrade now! [50] (what's this?)
Hotfix release available: 2017-02-19g "Frusterick Manners". upgrade now! [49.7] (what's this?)
Hotfix release available: 2017-02-19f "Frusterick Manners". upgrade now! [49.6] (what's this?)
Hotfix release available: 2017-02-19e "Frusterick Manners". upgrade now! [49.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2017-02-19d "Frusterick Manners". upgrade now! [49.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2017-02-19c "Frusterick Manners". upgrade now! [49.3] (what's this?)
Hotfix release available fixing security token and media manager: 2017-02-19b "Frusterick Manners". upgrade now! [49.2] (what's this?)
Hotfix release available fixing install and media manager issues: 2017-02-19a "Frusterick Manners". upgrade now! [49.1] (what's this?)
New release available: 2017-02-19 "Frusterick Manners". upgrade now! [49] (what's this?)
Hotfix release available: 2016-06-26e "Elenor of Tsort". upgrade now! [48.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2016-06-26d "Elenor of Tsort". upgrade now! [48.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2016-06-26c "Elenor of Tsort". upgrade now! [48.3] (what's this?)
Hotfix release available fixing security token: 2016-06-26b "Elenor of Tsort". upgrade now! [48.2] (what's this?)
Hotfix release available fixing authad issues: 2016-06-26a "Elenor of Tsort". upgrade now! [48.1] (what's this?)
New release available: 2016-06-26 "Elenor of Tsort". upgrade now! [48] (what's this?)
Hotfix release available: 2015-08-10a "Detritus". upgrade now! [47.1] (what's this?)
New release available: 2015-08-10 "Detritus". upgrade now! [47] (what's this?)
Hotfix release available: 2014-09-29d "Hrun". upgrade now! [46.4] (what's this?)
Hotfix release available: 2014-09-29c "Hrun". upgrade now! [46.3] (what's this?)
Hotfix release available to prevent XSS attack via SWF uploads: 2014-09-29b "Hrun". upgrade now! [46.2] (what's this?)
Hotfix release available: 2014-09-29a "Hrun". upgrade now! [46.1] (what's this?)
New release available: 2014-09-29 "Hrun". upgrade now! [46] (what's this?)
Hotfix release available: 2014-05-05e "Ponder Stibbons". upgrade now! [44.5] (what's this?)
Hotfix release available: 2014-05-05d "Ponder Stibbons". upgrade now! [44.4] (what's this?)
Hotfix release available to prevent XSS attack via SWF uploads: 2014-05-05c "Ponder Stibbons". upgrade now! [44.3] (what's this?)
Security Hotfix 2014-05-05b to prevent zero byte attacks on external auth systems is available. upgrade now! [44.2] (what's this?)
Security Hotfix 2014-05-05a for Issue 765 available. upgrade now! [44.1] (what's this?)

menu_category

热拍商品类目接口

1、客户端调用接口

https://m.repai.com/menu/menu_category_api/appkey/事业部密钥编号/app_id/应用编号

输入参数说明:

  • appkey 【热拍事业部买家版HTML5为100001,iOS为100002,Android为100003;浅蓝事业部iOS为100012,Android为100013;随身购事业部iOS为100022,Android为100023;超值购事业部iOS为100032,Android为100033;折扣宝事业部iOS为100042,Android为100043;购美事业部iOS为100052,Android为100053】

输出参数说明:

  • JSON格式输出,示例如下:
{
  "menu": [
      {
          "cur": {
              "name": "女装",
              "cid": 0
          },
          "sub": [
              {
                  "cur": {
                      "name": "T恤",
                      "cid": 50029627
                  },
                  "sub": [
                      {
                          "cur": {
                              "name": "T恤新品",
                              "cid": 52118001
                          }
                      },
                      ...更多内容省略...

备注:其中的女装是一级分类,T恤是女装下属二级分类,T恤新品是T恤下属三级分类。


2、PHP内部引用调用接口

<?php
require_once("/Data/webapps/m.repai.com/m/phpapi.php"); //PHP引用方式,需要引用的框架入口文件
$result = phpapi_mvc("user", "user_info_api", array("appkey" => "事业部密钥"));
if (empty($result["error"])) {
	var_dump($result); //打印出返回内容,此处输出为PHP数组,格式与客户端调用接口输出的JSON数组json_decode后的内容一样
} else {
	var_dump($result["error"]); //打印出错误内容
}
?>

输入参数说明:

  • appkey 【热拍事业部买家版HTML5为100001,iOS为100002,Android为100003;浅蓝事业部iOS为100012,Android为100013;随身购事业部iOS为100022,Android为100023;超值购事业部iOS为100032,Android为100033;折扣宝事业部iOS为100042,Android为100043;购美事业部iOS为100052,Android为100053】

输出参数说明:

  • PHP数组输出,PHP数组var_dump后的示例如下:
array(15) {
[0]=>
array(2) {
  ["cur"]=>
  array(2) {
    ["name"]=>
    string(6) "女装"
    ["cid"]=>
    int(0)
  }
  ["sub"]=>
  array(12) {
    [0]=>
    array(2) {
      ["cur"]=>
      array(2) {
        ["name"]=>
        string(4) "T恤"
        ["cid"]=>
        int(50029627)
      }
      ["sub"]=>
      array(8) {
        [0]=>
        array(1) {
          ["cur"]=>
          array(2) {
            ["name"]=>
            string(10) "T恤新品"
            ["cid"]=>
            int(52118001)
          }
        }
        ...更多内容省略...

图片格式为:

http://pic.repaiapp.com/image/menu/分类cid.jpg

示例:

http://pic.repaiapp.com/image/menu/50029627.jpg
http://pic.repaiapp.com/image/menu/50025227.jpg

返回首页

menu_category.txt · 最后更改: 2014/06/30 11:10 由 106.2.171.114