thinkphp 连贯操作between
2023-03-29 23:03:03
231
{{single.collect_count}}
 if (!empty($param["start"]) && empty($param["end"])) {$where['paytime'] = ['>', strtotime($param["start"])];}if (!empty($param["end"]) && empty($param["start"])) {$where['paytime'] = ['<', strtotime($param["end"])];}if (!empty($param["start"]) && !empty($param['end'])) {$start = strtotime($param["start"]);$end = strtotime($param["end"]);$where['paytime'] = ['between' , "$start,$end"];}

总觉得不是这样的 但是目前没找到好的方法 希望有好的方法的告诉一下 谢谢

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}