zoukankan      html  css  js  c++  java
  • 温故而知新 微信公众号调试和开发套路指南

    准备材料:

    1、微信web开发者工具

    2、菜单json

    第一步,打开微信开发者工具,切换为【公众号网页调试】

    第二步、菜单json

    如果后端是由你开发的,你理所当然认识以下这些内容,如果你不认识,那么发给你们的后端,他们肯定认识。让他们给你即可。

    {
        "button": [
    
            {
                "name": "产品服务",
                "sub_button": [
                    {
                        "type": "view",
                        "name": "汽车拍卖",
                        "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe0228496eb677148&redirect_uri=http://baidu.com:31001/main/carsell&response_type=code&scope=snsapi_base&state=123#wechat_redirectscope"
                    },
                    {
                        "type": "view",
                        "name": "一点车贷",
                        "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe0228496eb677148&redirect_uri=http://baidu.com:31001/main/carBusinessInfo&response_type=code&scope=snsapi_base&state=123#wechat_redirectscope"
                    },
                    {
                        "type": "view",
                        "name": "鸿特微贷",
                        "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe0228496eb677148&redirect_uri=http://baidu.com:31001/main/houseBusinessInfo&response_type=code&scope=snsapi_base&state=123#wechat_redirectscope"
                    }
                ]
            },        
            {
                "name": "鸿特金服",
                "sub_button":[{
                        "type": "view",
                        "name": "公司介绍",
                        "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe0228496eb677148&redirect_uri=http://baidu.com:31001/main/about&response_type=code&scope=snsapi_base&state=123#wechat_redirectscope"
                    }
                ]
            },
            {
                "name": "个人中心",
                "sub_button": [
                   {
                    
                        "type": "view",
                        "name": "合同确认",
                        "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe0228496eb677148&redirect_uri=http://baidu.com:31001/main/contractSign&response_type=code&scope=snsapi_base&state=123#wechat_redirectscope"
                    },
                   {
                    
                        "type": "view",
                        "name": "拍卖记录",
                        "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe0228496eb677148&redirect_uri=http://baidu.com:31001/main/carSellHistory&response_type=code&scope=snsapi_base&state=123#wechat_redirectscope"
                    },
                    {
                    
                        "type": "view",
                        "name": "我的还款",
                        "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe0228496eb677148&redirect_uri=http://baidu.com:31001/main/repay&response_type=code&scope=snsapi_base&state=123#wechat_redirectscope"
                    },
                    {
                    
                        "type": "view",
                        "name": "我的借款",
                        "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe0228496eb677148&redirect_uri=http://baidu.com:31001/main/borrow&response_type=code&scope=snsapi_base&state=123#wechat_redirectscope"
                    }
                ]
            }
        ]
    }
    
    {
        "button": [
    
            {
                "name": "产品服务",
                "sub_button": [
                    {
                        "type": "view",
                        "name": "汽车拍卖",
                        "url": "http://baidu.com:31001/main/carsell"
                    }
                ]
            },
            
            {
                "name": "个人中心",
                "sub_button": [
                   {
                    
                        "type": "view",
                        "name": "拍卖纪录",
                        "url": "http://baidu.com:31001/main/carSellHistory"
                    }
                ]
            }
        ]
    }
    
    
    
    
    {
        "button": [
    
            {
                "name": "产品服务",
                "sub_button": [
                    {
                        "type": "view",
                        "name": "汽车拍卖",
                        "url": "http://p20m258128.imwork.net/main/carsell"
                    }
                ]
            },
            
            {
                "name": "个人中心",
                "sub_button": [
                   {
                    
                        "type": "view",
                        "name": "拍卖纪录",
                        "url": "http://p20m258128.imwork.net/main/user/carSellHistory"
                    }
                ]
            }
        ]
    }

    第三步:拿到菜单json后,我们关键要的,是 url 这个字段。只要把该字段的url在 【微信web开发者工具】 中加载即可。如图所示

  • 相关阅读:
    疫情环境下的网络学习笔记 python 5.8 数据库入门终章
    疫情环境下的网络学习笔记 python 5.7 navicat数据库,例题,sql注入
    疫情环境下的网络学习笔记 python 5.6 暂时看看
    疫情环境下的网络学习笔记 python 5.5 MYSql 表关系,外键
    疫情环境下的网络学习笔记 python 5.4 数据库基础
    疫情环境下的网络学习笔记 python 4.30 初识数据库
    疫情环境下的网络学习笔记 python 4.29 网络小项目
    XJOI 夏令营501-511测试11 游戏
    XJOI 夏令营501-511测试11 统计方案
    CF1197D Yet Another Subarray Problem
  • 原文地址:https://www.cnblogs.com/CyLee/p/9101175.html
Copyright © 2011-2022 走看看