|
@@ -46,6 +46,7 @@ public class UserShareController extends BaseApiController {
|
|
|
public AjaxResult generateInviteCode(@RequestBody JSONObject jsonObject) {
|
|
|
String boxId = jsonObject.getString("boxId"); // 票组ID
|
|
|
String type = jsonObject.getString("type"); // 分享类型,1/2
|
|
|
+ String poster = jsonObject.getString("poster"); // 海报分享标识
|
|
|
String appId = AppSourceEnum.MSDQ.getAppId();
|
|
|
Long userId = SecurityUtils.getUserId();
|
|
|
if (UserShareVO.SHARE_TYPE_SITE.equals(type) && StringUtils.isBlank(boxId)) {
|
|
@@ -53,7 +54,10 @@ public class UserShareController extends BaseApiController {
|
|
|
String rst = wxUrlLinkService.generateUnlimitCode("", userId + "&" + type, appId);
|
|
|
return new AjaxResult(Type.SUCCESS, "", rst);
|
|
|
}
|
|
|
- String rst = wxUrlLinkService.generateUnlimitCode("pages/index/index", boxId + "&" + userId + "&" + type, appId);
|
|
|
+ String rst = wxUrlLinkService.generateUnlimitCode("packagePrize/goods/index", boxId + "&" + userId + "&" + type, appId);
|
|
|
+ if ("1".equals(poster)) {
|
|
|
+ rst = wxUrlLinkService.generateUnlimitCode("pages/index/index", boxId + "&" + userId + "&" + type, appId);
|
|
|
+ }
|
|
|
return new AjaxResult(Type.SUCCESS, "", rst);
|
|
|
}
|
|
|
}
|