Project

General

Profile

Actions

Non-Function #124

closed

[ADMIN] kakao 알림톡 (kakao message)

Added by Deca Park 12 months ago. Updated 9 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
09/29/2023
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

[Scheduler - kakao send message]

1.kakao send message

  • crontab: 2 AM (every day)

[process logic]

1.dormant user (msg_template_id = 'ap0003') case

  1) get target dormant user list
    [logic]
    DB: st_user
    conditions:
      - auth='AU02' AND user_status != 'US04' AND last_login_date (Date) <= {curren Date - 335 days} // because message is sent before 30days from 1 year

  2) send message process
    a) if {hp} of target user_no is empty(NULL), SKIP
    a-1) if kakao message was sent into taget user within recent 30 days, SKIP
      [check logic]
      DB: st_kakao_message_send
      conditions: msg_template_id='ap0003' AND receive_user_seq = {taget user_seq} AND current DATE <= user_dormant_date 

    b) get message template 
        - DB: st_kakao_message_template
        - conditions: msg_template_id='ap0003'
    c) call kakao message send
      c-1) get message after set values of {st_kakao_message_template.msg_content}
        - "userName" : user name of target user_no
        - "dormantDate" : last_login_date (yyyymmdd) + 365 days (format: 'yyyy-mm-dd')
      c-2) call ORACLE procedure
         - refer to attach txt file 
         - use ORACLE DB properites of config
    d) INSERT DB (st_kakao_message_send)
        - msg_template_id: 'ap0003'
        - receive_user_seq: target user_no
        - receive_tel_no: {hp} of target user_no
        - msg_send_date : current datetime
        - msg_content : send message content
        - user_dormant_date : {dormantDate}
        - user_dormant_proc_yn: 'N'

  3) server log
    - level: INFO
    - message: "[Scheduler] 알림톡 휴면회원안내(ap0003): " + "total Kakao message send count: {total count}"


Files

Actions

Also available in: Atom PDF