- 在xfb_list方法中添加type参数必填验证 - 当type参数为空时返回参数错误提示 - 避免因缺少必要参数导致的潜在查询异常
@@ -628,6 +628,9 @@ class User extends BaseController
public function xfb_list()
{
$type = $this->request->param('type');
+ if (!$type) {
+ return app('json')->fail('参数错误');
+ }
[$page, $limit] = $this->getPage();
$uid = $this->request->uid();
$where['uid'] = $uid;