|
@@ -7,6 +7,7 @@ import com.cyksj.common.util.Xmls;
|
|
|
import com.cyksj.dto.Result;
|
|
import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
import com.cyksj.mapper.AppleAutoRegisterDataMapper;
|
|
import com.cyksj.mapper.AppleAutoRegisterDataMapper;
|
|
|
|
|
+import com.cyksj.mapper.manage.coupon.CouponSkuMapper;
|
|
|
import com.cyksj.model.dto.H5JsPayParams;
|
|
import com.cyksj.model.dto.H5JsPayParams;
|
|
|
import com.cyksj.model.entity.AppleAutoRegisterData;
|
|
import com.cyksj.model.entity.AppleAutoRegisterData;
|
|
|
import com.cyksj.model.entity.RegisterOrderDon;
|
|
import com.cyksj.model.entity.RegisterOrderDon;
|
|
@@ -49,6 +50,8 @@ public class RegisterController {
|
|
|
|
|
|
|
|
private final AppleAutoRegisterDataMapper appleAutoRegisterDataMapper;
|
|
private final AppleAutoRegisterDataMapper appleAutoRegisterDataMapper;
|
|
|
|
|
|
|
|
|
|
+ private final CouponSkuMapper couponSkuMapper;
|
|
|
|
|
+
|
|
|
@PostMapping
|
|
@PostMapping
|
|
|
public Result<RegisterOrderDon> register(@RequestBody RegisterReq req) throws Exception {
|
|
public Result<RegisterOrderDon> register(@RequestBody RegisterReq req) throws Exception {
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
@@ -172,6 +175,10 @@ public class RegisterController {
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
spotifyUnLimitRecord.setUserId(userId);
|
|
spotifyUnLimitRecord.setUserId(userId);
|
|
|
CouponUserView couponUserView = registerOrderDonService.spotifyUnLimit(spotifyUnLimitRecord);
|
|
CouponUserView couponUserView = registerOrderDonService.spotifyUnLimit(spotifyUnLimitRecord);
|
|
|
|
|
+ if (couponUserView != null) {
|
|
|
|
|
+ String str = couponSkuMapper.selectGoodsSkuStr(couponUserView.getCouponId());
|
|
|
|
|
+ couponUserView.setGoodsSkuStr(str.replaceAll(",", "/").replaceAll(";", ""));
|
|
|
|
|
+ }
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(couponUserView);
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(couponUserView);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|