Project

General

Profile

Actions

New Function #101

closed

[ADMIN] 앱 푸쉬 메시지 발송 (App PUSH message)

Added by Deca Park about 1 year ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
08/25/2023
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

[ADMIN] 스토리 오더 관리 > 주문 관리 > 상세 (/storeOrder/)

1.저장(save)
  1) Process
    a) if 주문 상태 (smart_order_status) is UPDATED with 'SS02' (주문확정)
      - send App PUSH message
    b) if 주문 상태 (smart_order_status) is UPDATED with 'SS03' (수령대기중)
      - send App PUSH message
    c) if 주문 상태 (smart_order_status) is UPDATED with 'SS10' (매장취소(주문취소)) OR 'SS11' (매장취소(환불))
      - send App PUSH message

[FCM App PUSH message]

1.Source
  - refer to sendFcmBuy() of attach sample source

2.PUSH message
  1) define as properties
    - fcm_token : "erN3tlVoRlygkBeDMjiuZ-:APA91bFS8Smm9Co2cnJSibsMY4-wXRdfAJ8tplJAB3kfwWKivZstDX51YyMlIeIPBX5hLS99dMjaLJKP_otQMirgG4A_NzwQ0lS_5NlaaBHigUXfD1b5O46hWTq1dTA-aHJbHhiPofh4"
    - fcm_url : "http://3.38.142.200:3000"
  2) message values
    a) pushType : "buy"
    b) title / content
      b-1) if smart_order_status = 'SS02' (주문확정)
        - title : "주문확정"
        - content : "주문이 확정되었습니다."
      b-2) if smart_order_status = 'SS03' (수령대기중)
        - title : "상품준비완료"
        - content : "상품 준비가 완료되었습니다."
      b-3) if smart_order_status = 'SS10' (매장취소(주문취소)) OR 'SS11' (매장취소(환불))
        - title : "주문취소"
        - content : "주문이 취소되었습니다."
    c) mall_code : set by mall_code of the st_order
    d mall_name : set by mall_name of the st_order
    e) product_info : 
      - refer to [API] GET /api/agent/store_order_list - Response > product_desc
      - ex) "상품 1개 외 2건"


Files

fcm.zip (33.6 KB) fcm.zip Deca Park, 08/25/2023 01:53 PM
Actions

Also available in: Atom PDF