1111
This commit is contained in:
@@ -907,9 +907,11 @@ class ChannelController extends BaseController
|
||||
$scene = substr(md5($token), 0, 32);
|
||||
|
||||
// 调用接口生成小程序码
|
||||
// 注意:page 必须是小程序里已经存在且发布过的页面路径
|
||||
// 根据你的前端约定,改为和 H5 一致的添加渠道页面
|
||||
$response = $app->app_code->getUnlimit($scene, [
|
||||
'page' => 'pages/distribution/register', // 小程序页面路径,需要根据实际项目调整
|
||||
'width' => 430, // 二维码的宽度
|
||||
'page' => 'pages/channel/add', // 请确保小程序里存在该页面
|
||||
'width' => 430, // 二维码的宽度
|
||||
]);
|
||||
|
||||
// 成功时返回的是 StreamResponse,失败时通常返回数组(包含 errcode/errmsg)
|
||||
|
||||
Reference in New Issue
Block a user