|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
import com.qs.mp.common.core.domain.AjaxResult;
|
|
import com.qs.mp.common.core.domain.AjaxResult;
|
|
import com.qs.mp.common.core.domain.AjaxResult.Type;
|
|
import com.qs.mp.common.core.domain.AjaxResult.Type;
|
|
import com.qs.mp.framework.service.IWxUrlLinkService;
|
|
import com.qs.mp.framework.service.IWxUrlLinkService;
|
|
|
|
+import com.qs.mp.user.domain.vo.UserShareVO;
|
|
import com.qs.mp.utils.SecurityUtils;
|
|
import com.qs.mp.utils.SecurityUtils;
|
|
import com.qs.mp.web.controller.common.BaseApiController;
|
|
import com.qs.mp.web.controller.common.BaseApiController;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
@@ -42,6 +43,11 @@ public class UserShareController extends BaseApiController {
|
|
String boxId = jsonObject.getString("boxId"); // 票组ID
|
|
String boxId = jsonObject.getString("boxId"); // 票组ID
|
|
String type = jsonObject.getString("type"); // 分享类型,1/2
|
|
String type = jsonObject.getString("type"); // 分享类型,1/2
|
|
Long userId = SecurityUtils.getUserId();
|
|
Long userId = SecurityUtils.getUserId();
|
|
|
|
+ if (UserShareVO.SHARE_TYPE_SITE.equals(type)) {
|
|
|
|
+ // 经销商分享,默认到盲票小程序首页
|
|
|
|
+ String rst = wxUrlLinkService.generateUnlimitCode("", userId + "&" + type, userAppId);
|
|
|
|
+ return new AjaxResult(Type.SUCCESS, "", rst);
|
|
|
|
+ }
|
|
String rst = wxUrlLinkService.generateUnlimitCode("pages/ticketBox/detail", boxId + "&" + userId + "&" + type, userAppId);
|
|
String rst = wxUrlLinkService.generateUnlimitCode("pages/ticketBox/detail", boxId + "&" + userId + "&" + type, userAppId);
|
|
return new AjaxResult(Type.SUCCESS, "", rst);
|
|
return new AjaxResult(Type.SUCCESS, "", rst);
|
|
}
|
|
}
|