卡包 php,微信卡券,在卡包中跳转到小程序的字段怎么填写

期望实现的功能微信卡券领取到卡包之后,点立即兑换按钮跳转到小程序

这是官方文档的说明:

卡券内跳转小程序

场景介绍

商户创建卡券时可以将卡、券内的服务入口设置进入小程序服务。

步骤

1.开发者须将小程序绑定在公众号下,绑定说明请见绑定公众号与小程序

2.创建卡券,并将卡内的cell设置小程序对应的path;

3.处理跳转小程序时获取到的信息;

custom_app_brand_user_name 自定义使用入口跳转小程序的user_name,格式为原始id+@app gh_86a091e50ad4@app

custom_app_brand_pass 自定义使用入口小程序页面地址 API/cardPage

center_app_brand_user_name 小程序的user_name gh_86a091e50ad4@app

center_app_brand_pass 自定义居中使用入口小程序页面地址 API/cardPage

{ "card": {

"card_type": "MEMBER_CARD",

"member_card": {

"base_info": {

"custom_url_name": "立即使用",

"custom_url": "http://www.qq.com",

"custom_app_brand_user_name": "gh_86a091e50ad4@app",

"custom_app_brand_pass":"API/cardPage",

"custom_url_sub_title": "6个汉字tips",

"promotion_url_name": "更多优惠",

"promotion_url": "http://www.qq.com",

"promotion_app_brand_user_name": "gh_86a091e50ad4@app",

"promotion_app_brand_pass":"API/cardPage"

}

}

}

请问这几个字段是怎么使用的

"custom_url": "http://www.qq.com",

"custom_app_brand_pass":"API/cardPage",

custom_url这个字段不知道有什么用,是填的什么地址

custom_app_brand_pass API/cardPage, API是什么

文档上写的 “page/index/index” 直接写的这个提示缺少id,id是怎么传的

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值