Commit 68df0fa7 by mushishixian

限制

parent d13f1539
......@@ -122,9 +122,9 @@ class SupplierApiController extends Controller
$list = $query->paginate($limit)->toArray();
$transformer = new SupplierTransformer();
$list['data'] = $transformer->transformList($list['data']);
// if (env('LOGIN_DOMAIN') == 'user.liexin.net') {
// $list['total'] = $list['total'] > 10 ? 10 : $list['total'];
// }
if (env('LOGIN_DOMAIN') == 'user.liexin.net') {
$list['total'] = $list['total'] > 10 ? 50 : $list['total'];
}
$this->response(0, 'ok', $list['data'], $list['total']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment