空间H5游戏-后台接口

/v3/pet/get_mall_category_list

pf=qzone pf=wanba_ts

拉取宠物商城分类列表。

URL

https://api.urlshare.cn/v3/pet/get_mall_item

私有参数

参数名称 是否必须 类型 描述
mallId int 宠物商城类型id,1000-宠物商城,1001-宠物装扮商城
hostPetId int 查询物品所属的宠物物品ID,如白猫为10116,非用户所拥有宠物的UUID
ids string 英文逗号分割的id串,表示要查询的物品

请求示例

以下请求拉取宠物11206的第1阶段装扮,每个分类中指定拉取第一项。

https://api.urlshare.cn/v3/pet/get_mall_item?
openid=B624064BA065E01CB73F835017FE96FA&
zoneid=1&
openkey=5F154D7D2751AEDC8527269006F290F70297B7E54667536C&
appid=2&qua=V1_AND_QZ_4.9.3_148_RDM_T&
mallId=1001&hostPetId=10116&ids=11046,11858&
sig=VrN%2BTn5J%2Fg4IIo0egUdxq6%2B0otk%3D&
pf=wanba_ts&
format=json&
userip=112.90.139.30

返回参数说明

items中关键参数说明。

参数名称 描述
item_id item项的id
name item项的名称
thumb item项的缩略图
images 该装扮item需要替换的模型附件名。key为附件名,value为对应的文件信息
iUserQualType 用户是否拥有该装扮的使用权

正确返回示例

{
    "code": 0,
    "subcode": 0,
    "message": "",
    "default": 0,
    "data": {
        "items": [{
            "charm": 4,
            "description": "",
            "extend_info": {
                "iCharm": "4",
                "iUnlockLevel": "1",
                "iUserPetPhase": "1",
                "iUserQualType": "1",
                "strCateType": "cloth",
                "strRare": "S"
            },
            "images": {
                "lianyiqun": {
                    "file_id": 3915,
                    "file_type": 10,
                    "height": 303,
                    "md5": "7dc7cb9e21ac3e8480161743ed766ffd",
                    "name": "lianyiqun_1129.png",
                    "size": 132,
                    "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetSkin/org/6/11046/lianyiqun_1129.png",
                    "width": 214
                },
                "shangyizhuangban": {
                    "file_id": 3916,
                    "file_type": 10,
                    "height": 243,
                    "md5": "d8b5f525e019b3bb2198a85269a85365",
                    "name": "shangyizhuangban_0227.png",
                    "size": 9944,
                    "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetSkin/org/6/11046/shangyizhuangban_0227.png",
                    "width": 219
                },
                "yshou2": {
                    "file_id": 3917,
                    "file_type": 10,
                    "height": 200,
                    "md5": "bdf10c91c8d56aa94bc172a6b375def2",
                    "name": "yshou2_0227.png",
                    "size": 5380,
                    "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetSkin/org/6/11046/yshou2_0227.png",
                    "width": 101
                },
                "zshou2": {
                    "file_id": 3918,
                    "file_type": 10,
                    "height": 185,
                    "md5": "c5b2eb7224c6a16a8e4aa0b39c0f5edb",
                    "name": "zshou2_0227.png",
                    "size": 5503,
                    "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetSkin/org/6/11046/zshou2_0227.png",
                    "width": 107
                }
            },
            "item_id": 11046,
            "item_type": 301,
            "name": "宇航服",
            "price": 888,
            "settle_time": 1489560219,
            "sub_type": "PetPartItem",
            "summary": "",
            "thumb": {
                "file_id": 3914,
                "file_type": 10,
                "height": 114,
                "md5": "08d1d813be205ed41c7fc4f7e375b17f",
                "name": "114x114.png",
                "size": 4521,
                "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetSkin/org/6/11046/114x114.png",
                "width": 114
            },
            "trace": "",
            "type_id": 1001,
            "unlock_level": 1
        },
        {
            "charm": 0,
            "description": "",
            "extend_info": {
                "iCharm": "0",
                "iUnlockLevel": "1",
                "iUserPetPhase": "1",
                "iUserQualType": "1",
                "strCateType": "cloth"
            },
            "images": {
                "lianyiqun": {
                    "file_id": 5446,
                    "file_type": 10,
                    "height": 303,
                    "md5": "7dc7cb9e21ac3e8480161743ed766ffd",
                    "name": "lianyiqun_0410.png",
                    "size": 132,
                    "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetSkin/org/2/11858/lianyiqun_0410.png",
                    "width": 214
                },
                "shangyizhuangban": {
                    "file_id": 5447,
                    "file_type": 10,
                    "height": 243,
                    "md5": "44b30ac748883172c0854bb9192110bf",
                    "name": "shangyizhuangban_0410.png",
                    "size": 7705,
                    "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetSkin/org/2/11858/shangyizhuangban_0410.png",
                    "width": 219
                },
                "yshou2": {
                    "file_id": 5448,
                    "file_type": 10,
                    "height": 200,
                    "md5": "2a135948793b9bea782cbc81aed8d2b8",
                    "name": "yshou2_0410.png",
                    "size": 3062,
                    "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetSkin/org/2/11858/yshou2_0410.png",
                    "width": 101
                },
                "zshou2": {
                    "file_id": 5449,
                    "file_type": 10,
                    "height": 185,
                    "md5": "49cb06b548decdab8f0712dd3a9b0dd6",
                    "name": "zshou2_0410.png",
                    "size": 4544,
                    "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetSkin/org/2/11858/zshou2_0410.png",
                    "width": 107
                }
            },
            "item_id": 11858,
            "item_type": 301,
            "name": "黄蜂机甲",
            "price": 2000,
            "settle_time": 1493195882,
            "sub_type": "PetPartItem",
            "summary": "",
            "thumb": {
                "file_id": 5445,
                "file_type": 10,
                "height": 114,
                "md5": "20b90d0f3ec7ab68c49c2f567cb18411",
                "name": "114X114.png",
                "size": 4465,
                "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetSkin/org/2/11858/114X114.png",
                "width": 114
            },
            "trace": "",
            "type_id": 1001,
            "unlock_level": 1
        }]
    }
}