123456789101112131415161718 |
- <?php
- namespace app\index\model;
- use think\Model;
- class TokenModel extends Model
- {
- protected $table='token';
- public function getInfo($token,$company_code=''){
- $where['start_time'] = ['elt',time()];
- $where['end_time'] = ['egt',time()];
- $where['status'] = 1;
- $where['token'] = $token;
- $where['company_code'] = $company_code;
- $info = $this->where($where)->cache(30)->find();
- return $info;
- }
- }
|