messager icon indicating copy to clipboard operation
messager copied to clipboard

pullRemind方法疑惑

Open vangxh opened this issue 7 years ago • 1 comments

里面是不是要写判断是否插入提醒记录的代码呢? 否则是不是会向UserNotify表多次插入相同记录呢? 我看pullAnounce方法里面有判断UserNotify表max notify_id,而pullRemind里没有。望大神回复..谢谢

vangxh avatar Aug 16 '17 09:08 vangxh

恩,这个当时就是示例性的代码,防止重复一般会外部生成一个唯一的消息id,然后mysql中以消息id建立唯一索引,防止重复

zhuanxuhit avatar Sep 13 '17 09:09 zhuanxuhit