|
@@ -38,7 +38,7 @@ FROM
|
|
|
WHERE
|
|
|
BINARY wrk.key = ? AND wrr.state = 1
|
|
|
AND wrr.start_time <= NOW()
|
|
|
- AND wrr.end_time >= NOW();`, TableWxReplyKeys, TableWxReplyRule, TableWxReplyContent)
|
|
|
+ AND wrr.end_time >= NOW() order by id;`, TableWxReplyKeys, TableWxReplyRule, TableWxReplyContent)
|
|
|
rs := tools.Mysql.SelectBySql(query, keys)
|
|
|
// 没匹配上规则
|
|
|
if rs == nil || len(*rs) == 0 {
|