21 lines
614 B
PHP
21 lines
614 B
PHP
<?php
|
|
|
|
namespace app\chukebao\controller;
|
|
|
|
use library\ResponseHelper;
|
|
use think\Db;
|
|
|
|
class WechatFriendController extends BaseController
|
|
{
|
|
|
|
public function getList(){
|
|
$page = $this->request->param('page', 1);
|
|
$limit = $this->request->param('limit', 10);
|
|
$accountId = $this->getUserInfo('s2_accountId');
|
|
if (empty($accountId)){
|
|
return ResponseHelper::error('请先登录');
|
|
}
|
|
$list = Db::table('s2_wechat_friend')->where('accountId',$accountId)->order('id desc')->page($page, $limit)->select();
|
|
return ResponseHelper::success($list);
|
|
}
|
|
} |