We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae70992 commit d05bfa7Copy full SHA for d05bfa7
component/SwooleAsyncComponent.php
@@ -160,11 +160,11 @@ public function mongodbTask($data){
160
*/
161
public function pushMsg($fd,$data){
162
$settings = Yii::$app->params['swooleAsync'];
163
- $data['type'] = self::TYPE_SOCKET;
164
- $datas['data'] = $data;
+ $datas['type'] = self::TYPE_SOCKET;
+ $datas['data'] = json_encode($data);
165
$datas['fd'] = $fd;
166
$curl = new Curl();
167
- return $curl->setPostParams($data)->post($settings['swoole_http']);
+ return $curl->setPostParams($datas)->post($settings['swoole_http']);
168
}
169
170
-}
+}
0 commit comments