Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f4c8ca61
authored
Mar 23, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
8f4daa2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
app/Http/Controllers/Api/SupplierShareApplyApiController.php
app/Http/Controllers/Api/SupplierShareApplyApiController.php
View file @
f4c8ca61
...
@@ -130,19 +130,35 @@ class SupplierShareApplyApiController extends Controller
...
@@ -130,19 +130,35 @@ class SupplierShareApplyApiController extends Controller
$userId
=
$request
->
user
->
userId
;
$userId
=
$request
->
user
->
userId
;
$list
=
$applyService
->
getAuditSupplierShareApplyList
(
$userId
);
$list
=
$applyService
->
getAuditSupplierShareApplyList
(
$userId
);
// 设置响应头,避免chunked encoding
// 清除之前的输出缓冲
$response
=
json_encode
([
if
(
ob_get_level
())
{
ob_end_clean
();
}
// 开启新的输出缓冲
ob_start
();
$response
=
[
'err_code'
=>
0
,
'err_code'
=>
0
,
'code'
=>
0
,
'code'
=>
0
,
'err_msg'
=>
'ok'
,
'err_msg'
=>
'ok'
,
'data'
=>
$list
[
'data'
],
'data'
=>
$list
[
'data'
],
'count'
=>
$list
[
'total'
],
'count'
=>
$list
[
'total'
],
'total'
=>
$list
[
'total'
],
'total'
=>
$list
[
'total'
],
]);
];
echo
json_encode
(
$response
);
// 获取缓冲内容长度
$content
=
ob_get_contents
();
$length
=
strlen
(
$content
);
// 清除缓冲并设置响应头
ob_end_clean
();
header
(
'Content-Type: application/json'
);
header
(
'Content-Type: application/json
; charset=utf-8
'
);
header
(
'Content-Length: '
.
strlen
(
$response
)
);
header
(
'Content-Length: '
.
$length
);
echo
$
response
;
echo
$
content
;
exit
();
exit
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment