|
|
@@ -7,8 +7,6 @@ import com.cyksj.service.ticket.UserReceiveTrialTicketRecordService;
|
|
|
import com.cyksj.web.util.StpUserUtil;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@@ -28,7 +26,7 @@ public class MidJourneyGuideController {
|
|
|
/**
|
|
|
* 领取mj试用车票
|
|
|
*/
|
|
|
- @PostMapping("/receive/trial")
|
|
|
+// @PostMapping("/receive/trial")
|
|
|
public Result<String> receiveTrialTicket() {
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
userReceiveTrialTicketRecordService.sendTicketAndRecord(userId, Constant.MIDJOURNEY_TRIAL_SKU_ID);
|
|
|
@@ -38,7 +36,7 @@ public class MidJourneyGuideController {
|
|
|
/**
|
|
|
* 是否已领取mj试用车票
|
|
|
*/
|
|
|
- @GetMapping("/hasReceived")
|
|
|
+// @GetMapping("/hasReceived")
|
|
|
public Result<Boolean> isReceiveTrialTicket() {
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
Boolean flag = userReceiveTrialTicketRecordService.isReceiveTrialTicket(userId, Constant.MIDJOURNEY_TRIAL_SKU_ID);
|