feat: 优化腾讯地图地址选点插件,完善订单管理与分销服务
这个提交包含在:
@@ -221,7 +221,7 @@ class Distribution extends V1
|
||||
/**
|
||||
* D4 分销海报生成要素
|
||||
* GET /api/v1/distribution/poster
|
||||
* 获取用于前端合成或分享专属推广海报的元数据
|
||||
* 获取用于前端合成或分享专属推广海报的元数据(含官方小程序码 URL,支持传入 postId 生成详情页小程序码)
|
||||
*
|
||||
* @return void 输出海报配置与素材信息的JSON
|
||||
*/
|
||||
@@ -234,6 +234,16 @@ class Distribution extends V1
|
||||
$siteName = (string)$this->cfg('app.name', '同城分类信息');
|
||||
$slogan = (string)$this->cfg('dist.slogan', '同城便民生活 · 随时随地发布与求助');
|
||||
$code = (string)$ext['invite_code'];
|
||||
$postId = (int)$this->input('postId', 0);
|
||||
|
||||
if ($postId > 0) {
|
||||
$scene = 'id_' . $postId . '_u_' . $uid;
|
||||
$page = 'pages/detail/detail';
|
||||
} else {
|
||||
$scene = 'ic_' . $code;
|
||||
$page = 'pages/index/index';
|
||||
}
|
||||
$wxacodeUrl = \app\common\library\WxMini::wxacodeUnlimit($scene, $page, 280);
|
||||
|
||||
$this->ok([
|
||||
'inviteCode' => $code,
|
||||
@@ -241,7 +251,8 @@ class Distribution extends V1
|
||||
'slogan' => $slogan,
|
||||
'nickname' => (string)(isset($user['nickname']) && $user['nickname'] !== '' ? $user['nickname'] : '同城合伙人'),
|
||||
'avatar' => (string)(isset($user['avatar']) ? $user['avatar'] : ''),
|
||||
'path' => 'pages/index/index?ic=' . $code,
|
||||
'path' => $postId > 0 ? ('pages/detail/detail?id=' . $postId . '&ic=' . $code) : ('pages/index/index?ic=' . $code),
|
||||
'wxacodeUrl' => $wxacodeUrl,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户