New Function #101
closed[ADMIN] 앱 푸쉬 메시지 발송 (App PUSH message)
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
Updated by bryant bryant over 1 year ago
- Status changed from New to Resolved
- Assignee changed from bryant bryant to Deca Park
Updated by Deca Park over 1 year ago
- Status changed from Resolved to Feedback
- Assignee changed from Deca Park to bryant bryant
[Logic Change]
1.fcm_token
- DELETE fcm_token from properties
- set by st_user.fcm_token (NEW) of st_order.user_seq
- if fcm_token is empty(NULL), SKIP to send push message
Updated by bryant bryant over 1 year ago
- Status changed from Feedback to Resolved
- Assignee changed from bryant bryant to Deca Park
Updated by Deca Park over 1 year ago
- Description updated (diff)
- Status changed from Resolved to Feedback
- Assignee changed from Deca Park to bryant bryant
Updated by bryant bryant over 1 year ago
- Status changed from Feedback to Resolved
- Assignee changed from bryant bryant to Deca Park
Updated by Deca Park over 1 year ago
[Push Message]
1.sendPushMessage
1) logic (add)
a) create DB(st_message_box) after send fcm
- push_type : "buy"
- send_result: fcm send result
- reg_date: current datetime
- others: set by fcm info
Updated by Deca Park over 1 year ago
- Status changed from Resolved to Feedback
- Assignee changed from Deca Park to bryant bryant
Updated by bryant bryant over 1 year ago
- Status changed from Feedback to Resolved
- Assignee changed from bryant bryant to Deca Park