蚂蚁验证码,可以注册淘宝,微信 http://www.66yzm.com/
2
3
4
public function index(){ if(request()->isPost()) { $key = input('post.key'); $this->assign('testkey', $key); $page =input('page')?input('page'):1; $pageSize =input('limit')?input('limit'):config('pageSize'); $list = Db::table(config('database.prefix') . 'proxy')->alias('a') ->join(config('database.prefix') . 'ad_type at', 'a.type_id = at.type_id', 'left') ->field('a.*,at.name as typename') ->where('a.name', 'like', "%" . $key . "%") ->order('a.sort') ->paginate(array('list_rows'=>$pageSize,'page'=>$page)) ->toArray(); foreach ($list['data'] as $k=>$v){ $list['data'][$k]['addtime'] = date('Y-m-d H:s',$v['addtime']); } return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$list['data'],'count'=>$list['total'],'rel'=>1]; } return $this->fetch(); }