author:咔咔
wechat:fangkangfk
在之前使用tp5进行时间查询的时候,使用的条件一直都是
where['time'] = ['>',time()];
但是在tp5.1使用这个就查询不出来数据了,所以在tp5.1进行查询时需要使用
$res = $this->userExchangeModel->where($where1)->whereTime('ue_validTime','>',time())->find();
author:咔咔
wechat:fangkangfk
在之前使用tp5进行时间查询的时候,使用的条件一直都是
where['time'] = ['>',time()];
但是在tp5.1使用这个就查询不出来数据了,所以在tp5.1进行查询时需要使用
$res = $this->userExchangeModel->where($where1)->whereTime('ue_validTime','>',time())->find();