赞
踩
百度营销基木鱼落地页跳转微信小程序,需要获取微信urlScheme地址,通以下代码实现,填写appid和secret即可,亲测
index.php文件
<?php include('bd.php'); include('common.php'); $appid = ''; //自己填 $secret = ''; //自己填 $bd = new Bd($appid,$secret); $token = $bd->getAccessToken(); $access_token = $token['access_token']; $url = "https://api.weixin.qq.com/wxa/generatescheme?access_token=" . $access_token; $path = 'pages/users/users'; $query = ''; //参数 没有参数就空 $post_data = [ 'jump_wxa' => [ 'path' => $path, 'env_version' => 'release', 'query' => $query ],
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。