|
@@ -163,7 +163,7 @@ public class WxJsjpController extends BaseController {
|
|
|
@PostMapping(value = "/getPrepareGoodsOrder")
|
|
|
@ApiOperation("微信商品下单")
|
|
|
public Response<WxParamEntity> getPrepareGoodsOrder(@RequestBody WxOrderGoodsDTO wxOrderGoodsDTO) throws Exception{
|
|
|
- if(wxOrderGoodsDTO.getGoodsType()==1) {
|
|
|
+ if(wxOrderGoodsDTO.getGoodsType()==2) {
|
|
|
int count = vipUserExamService.getUserExamByUserIdAndGoodsId(wxOrderGoodsDTO.getUserId(), wxOrderGoodsDTO.getGoodsId());
|
|
|
if (count > 0) {
|
|
|
throw new CustomException("您已购买过该考场,退回上个页面,重新进入。");
|
|
@@ -182,7 +182,7 @@ public class WxJsjpController extends BaseController {
|
|
|
order.setOrderStatus(OrderStatusEnum.PROCESSING.getCode());
|
|
|
wxJsOrderService.save(order);
|
|
|
return Response.success(placeWxOrder(order, examInfo.getName()));
|
|
|
- } else if (wxOrderGoodsDTO.getGoodsType()==2) {
|
|
|
+ } else if (wxOrderGoodsDTO.getGoodsType()==3) {
|
|
|
throw new CustomException("请正确传入GoodsType,GoodsType=2未开发");
|
|
|
} else {
|
|
|
throw new CustomException("请正确传入GoodsType。");
|