Taebu / prq

prq.co.kr
MIT License
1 stars 0 forks source link

리뷰문자(GCM) 조건 추가 요청 #69

Closed moonsungjun closed 7 years ago

moonsungjun commented 7 years ago

조건

  1. 매장통화 -> 2. cid로그 -> 3. GCM 발송 -> 4. MMS 발송 -----> 조건추가
  2. 40분 후 GCM 발송 (특정값추가 happycall) 이유 : 톡톡메세지 APP 에서 중복제한 발송 문제를 해결하기 위해서 특정값을 추가함.

문구 [광고] [매장명] 사진찍고 리뷰 쓰면 2,000 포인트 드려요! http://prq.co.kr/prq/blog/write/60/

수신거부 080-130-8119

Taebu commented 7 years ago

happycall log등 우선 로그를 발생 할 수 있도록 설계

create table prq_happycall_log(
hc_no int unsigned auto_increment,
hc_unixtime int unsigned default 0,
hc_hp varchar(20) default '',
st_no int unsigned default 0,
hc_status varchar(20) default '0',
primary key(hc_no));

kr.co.prq_cdr.PRQ_CDR 고치기

Taebu commented 7 years ago

중복로그 발생 가능성 때문에 유니크 키 발생.

create table prq_happycall_log(
hc_no int unsigned auto_increment,
hc_date varchar(10) not null default '0000-00-00',
hc_unixtime int unsigned default 0,
hc_hp varchar(20) default '',
st_no int unsigned default 0,
hc_status varchar(20) default '0',
primary key(hc_no),
unique key(hc_date,hc_hp,st_no)
);
Taebu commented 7 years ago

//prq.co.kr/prq/set_gcm.php 도 수정 테스트 happycall_log까지 진행 완료