Skip to content

Commit

Permalink
MOA-510: 쿠폰취소를 위한 api 인증없이 사용가능하도록 변경, 메세지에서 이모지 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
shin-mallang committed Mar 4, 2024
1 parent f7e231b commit 403d94e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion api/src/main/java/moa/order/OrderController.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
Expand Down Expand Up @@ -54,7 +55,7 @@ public ResponseEntity<Void> cancelCoupon(

@GetMapping
public ResponseEntity<PageResponse<OrderResponse>> findOrders(
@Auth(permit = {SIGNED_UP}) Long memberId,
@RequestParam("memberId") Long memberId,
@PageableDefault(size = 10, sort = "createdDate", direction = DESC) Pageable pageable
) {
Page<OrderResponse> result = orderQueryService.findMyOrders(memberId, pageable);
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/java/moa/client/sms/SmsMessageFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public String generateFundingFinishMessage(
String productDescription
) {
return PREFIX + """
%s님의 선물 펀딩이 달성되어 주문 상품이 도착했어요🎁
앞으로도 모아를 통해 모두가 행복한 새로운 선물 문화를 누려보세요🤗
행복한 하루 보내세요🍀
%s님의 선물 펀딩이 달성되어 주문 상품이 도착했어요
앞으로도 모아를 통해 모두가 행복한 새로운 선물 문화를 누려보세요
행복한 하루 보내세요
- 상품 이름: %s
- 유효 기간: ~ %s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WincubeProductResponse getProductList(
/**
* 쿠폰 발행
*/
@PostExchange(url = "/request.do", contentType = "application/json;charset=UTF-8")
@PostExchange(url = "/request.do")
WincubeIssueCouponResponse issueCoupon(
@RequestParam("mdcode") String mdCode, // 매체코드, 윈큐브에서 발급 후 전달
@RequestParam("msg") String msg, // MMS 전송할 메시지
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/moa/client/wincube/WincubeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public void issueCoupon(
@Nullable String optionId
) {
String authToken = authClient.getAuthToken();
log.info("쿠폰 메세지: {}", message);
WincubeIssueCouponResponse response = client.issueCoupon(
wincubeProperty.mdCode(),
message,
Expand Down

0 comments on commit 403d94e

Please sign in to comment.