...
|
...
|
@@ -189,7 +189,7 @@ class PublicController extends RestBaseController |
|
|
$openid = $this->request->param('openid');
|
|
|
$third_party_user = Db::name('third_party_user')->where(array('openid'=>$openid))->find();
|
|
|
if(empty($third_party_user)){
|
|
|
$this->error('查无此人!');
|
|
|
$this->success('查无此人!',['code'=>20000,'msg'=>'查无此人!']);
|
|
|
}
|
|
|
$data = Db::name('user_token')->where(array('user_id'=>$third_party_user['user_id']))->find();
|
|
|
if($data['expire_time']<time()){
|
...
|
...
|
|