Skip to content

Commit fdac6a3

Browse files
committed
更新自述文件
1 parent e6c3ab5 commit fdac6a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ public function callback($ch, $data) {
107107
// 0、把上次缓冲区内数据拼接上本次的data
108108
$buffer = $this->data_buffer.$data;
109109

110+
//拼接完之后,要把缓冲字符串清空
111+
$this->data_buffer = '';
112+
110113
// 1、把所有的 'data: {' 替换为 '{' ,'data: [' 换成 '['
111114
$buffer = str_replace('data: {', '{', $buffer);
112115
$buffer = str_replace('data: [', '[', $buffer);

0 commit comments

Comments
 (0)