Commit 8f4daa2d by 杨树贤

fix

parent 9a5de20e
......@@ -129,7 +129,21 @@ class SupplierShareApplyApiController extends Controller
$applyService = new SupplierShareApplyService();
$userId = $request->user->userId;
$list = $applyService->getAuditSupplierShareApplyList($userId);
$this->response(0, 'ok', $list['data'], $list['total']);
// 设置响应头,避免chunked encoding
$response = json_encode([
'err_code' => 0,
'code' => 0,
'err_msg' => 'ok',
'data' => $list['data'],
'count' => $list['total'],
'total' => $list['total'],
]);
header('Content-Type: application/json');
header('Content-Length: ' . strlen($response));
echo $response;
exit();
}
//审核
......
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