1 $postBody = [ 2 'access_token' => $l_info['acctoken'], 3 'oauth_consumer_key' => Yii::$app->params['qq_oauth_consumer_key'], 4 'openid' => $l_info['openid'], 5 'format' => 'json', 6 'content' => $t_info['info'], 7 'clientip' => Yii::$app->request->getUserIP(), 8 //使用 crulfile 即可 9 'pic' => new CURLFile( realpath( $img_dir ) ) 10 ];
http://wiki.open.qq.com/wiki/website/add_pic_t