|
@@ -40,9 +40,9 @@ public class UserShareController extends BaseApiController {
|
|
|
@PostMapping("/code/generate")
|
|
|
public AjaxResult generateInviteCode(@RequestBody JSONObject jsonObject) {
|
|
|
String boxId = jsonObject.getString("boxId"); // 票组ID
|
|
|
- String type = jsonObject.getString("type"); // 分享类型,channel/user
|
|
|
+ String type = jsonObject.getString("type"); // 分享类型,1/2
|
|
|
Long userId = SecurityUtils.getUserId();
|
|
|
- String rst = wxUrlLinkService.generateUnlimitCode("pages/ticketBox/detail", "boxId=" + boxId + "&suid=" + userId + "&type=" + type, userAppId);
|
|
|
+ String rst = wxUrlLinkService.generateUnlimitCode("pages/ticketBox/detail", boxId + "&" + userId + "&" + type, userAppId);
|
|
|
return new AjaxResult(Type.SUCCESS, "", rst);
|
|
|
}
|
|
|
}
|