今天来讲讲QQ里怎么设置DIY名片,首先你需要一个DIY名片网站,这里我随便搜一个拿来使用DIY名片,然后打开网站会显示扫码登录里有一个二维码,在手机上登录要设置名片的QQ然后扫这个二维码,登录后会显示一个粘贴代码的地方和一个上传背景的按钮,把你要设置的背景上传上去就行了,然后复制粘贴我下面放的这个名片代码最后点击保存就行了。

{
    "style_id": 22,
    "bg_id": 0,
    "card_id": 3807,
    "card_md5": "d37f1c233aa888b125fbc4f8a6666790",
    "render_info": {
        "bg_info": {
            "base64_bg_pic": "",
            "mask_view": "#00000000",
            "lottie_id": "2014",
            "animation_md5": "54eda9010bcc0df1287475053666b4db",
            "animation_loop": "1"
        },
        "head_info": {
            "head_items": {
                "1001": {
                    "position_info": {
                        "x_axis": "-36000w",
                        "y_axis": "0h",
                        "height": "100050w",
                        "position_limit": {
                            "top": "88px",
                            "bottom": "88px"
                        }
                    },
                    "int_kv": {
                        "style": 1,
                        "lpd": 120000,
                        "rpd": 12
                    },
                    "str_kv": {
                        "id": "1001",
                        "type": "pf_like"
                    }
                },
                "1002": {
                    "position_info": {
                        "x_axis": "52000w",
                        "y_axis": "71000h",
                        "gravity": "center_horizontal",
                        "position_limit": {
                            "top": "88px",
                            "bottom": "88px"
                        }
                    },
                    "int_kv": {
                        "border": 1
                    },
                    "str_kv": {
                        "id": "1002",
                        "type": "pf_avatar"
                    }
                },
                "1003": {
                    "position_info": {
                        "x_axis": "283300w",
                        "y_axis": "920000h",
                        "width": "800w",
                        "height": "",
                        "gravity": "center_horizontal",
                        "position_limit": {
                            "top": "88px",
                            "bottom": "120px",
                            "left": "32px",
                            "right": "32px"
                        }
                    },
                    "int_kv": {
                        "f": 0,
                        "ft": 1
                    },
                    "str_kv": {
                        "id": "1003",
                        "type": "pf_name"
                    }
                },
                "1-2068": {
                    "position_info": {
                        "x_axis": "33766w",
                        "y_axis": "28099h",
                        "width": "4000w",
                        "height": "4000w",
                        "gravity": "center_horizontal"
                    },
                    "str_kv": {
                        "id": "1",
                        "type": "image_view"
                    },
                    "int_kv": {
                        "stickerId": 2068
                    }
                },
                "1-2069": {
                    "position_info": {
                        "height": "fill",
                        "width": "fill"
                    },
                    "str_kv": {
                        "id": "1",
                        "content": "https://r.photo.store.qq.com/psc?/V50pYTX80d46Sd4MQvJE2l8pFZ2ZQwIe/heyUv10nwEJXJa0yD1KntrtSe4LEazKW7kO6n0Vra3pdMqTjBlLpfmpchNbxVSuKp1XLBef1RJHr*dT9aoYEuPDK.EHWKNHhY.y8WCu0qdY!/b&bo=sAT0AbAE9AEDKQw!&rf=viewer_4&t=5",
                        "loop": "1",
                        "type": "lottie_view"
                    }
                }
            }
        },
        "body_info": {
            "color": "#00000000",
            "cpd": 0,
            "line_color": "#00000000",
            "ts": 0
        }
    }
}

目前动态名片已经完全找不到方法设置了,现在只能设置静态名片,如果有想修改的地方可以参考以下代码。

            "1002": {
                "position_info": {
                    "x_axis": "52000w",
                    "y_axis": "71000h",
                    "gravity": "center_horizontal",
                    "position_limit": {
                        "top": "88px",
                        "bottom": "88px"
                    }
                },
                "int_kv": {
                    "border": 1
                },
                "str_kv": {
                    "id": "1002",
                    "type": "pf_avatar"
                }
            }

pf_avatar这个是头像的意思,默认修改头像到屏幕外面以达到隐藏头像的效果。

"x_axis": "52000w",
"y_axis": "71000h",

这2行代表头像的位置,慢慢测试修改就好了。

好了,教程到此结束,想修改其他位置可以看上面最长的代码慢慢摸索,看不懂英文翻译一下就懂了。


Ich☆liebe☆dich