|
@@ -6,14 +6,10 @@ import com.sqx.modules.app.annotation.Login;
|
|
|
import com.sqx.modules.member.service.VipService;
|
|
import com.sqx.modules.member.service.VipService;
|
|
|
import com.sqx.modules.member.vo.VipReduceVO;
|
|
import com.sqx.modules.member.vo.VipReduceVO;
|
|
|
import com.sqx.modules.pay.vo.PayTransactionsVO;
|
|
import com.sqx.modules.pay.vo.PayTransactionsVO;
|
|
|
|
|
+import icu.xuyijie.secureapi.annotation.DecryptParam;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestAttribute;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @author codingliang
|
|
* @author codingliang
|
|
@@ -37,7 +33,7 @@ public class AppVipController {
|
|
|
@Login
|
|
@Login
|
|
|
@ApiOperation(value = "获取购买vip支付参数", notes = "promoCode 为推荐码")
|
|
@ApiOperation(value = "获取购买vip支付参数", notes = "promoCode 为推荐码")
|
|
|
@GetMapping(value = "get-pay-param")
|
|
@GetMapping(value = "get-pay-param")
|
|
|
- public Result getPayParam(@RequestAttribute("userId") Long userId, @RequestParam(value = "promoCode") String promoCode){
|
|
|
|
|
|
|
+ public Result getPayParam(@RequestAttribute("userId") Long userId, @DecryptParam(value = "promoCode") String promoCode){
|
|
|
PayTransactionsVO payParamVO = vipService.getPayParam(userId, promoCode);
|
|
PayTransactionsVO payParamVO = vipService.getPayParam(userId, promoCode);
|
|
|
|
|
|
|
|
return Result.success(BeanUtil.beanToMap(payParamVO, false, true));
|
|
return Result.success(BeanUtil.beanToMap(payParamVO, false, true));
|
|
@@ -46,7 +42,7 @@ public class AppVipController {
|
|
|
@Login
|
|
@Login
|
|
|
@ApiOperation(value = "余额购买vip", notes = "promoCode 为推荐码")
|
|
@ApiOperation(value = "余额购买vip", notes = "promoCode 为推荐码")
|
|
|
@GetMapping(value = "balance-pay")
|
|
@GetMapping(value = "balance-pay")
|
|
|
- public Result balancePay(@RequestAttribute("userId") Long userId, @RequestParam(value = "promoCode") String promoCode){
|
|
|
|
|
|
|
+ public Result balancePay(@RequestAttribute("userId") Long userId, @DecryptParam(value = "promoCode") String promoCode){
|
|
|
vipService.balancePay(userId, promoCode);
|
|
vipService.balancePay(userId, promoCode);
|
|
|
return Result.success();
|
|
return Result.success();
|
|
|
}
|
|
}
|