小程序码生成,提示data format error hint
代码部分
$url = ‘https://api.weixin.qq.com/wxa/getwxacodeunlimit?access\_token='.$token\['access\_token’];
$data = array(
‘path’=>‘pages/logs/logs’,
‘width’=>280,
‘scene’=>$room_id.“,”.$rand_code,
‘line_color’=>‘{“r”:“0”,“g”:“0”,“b”:“0”}’
);
$result = $this->curl($url,json_encode($data));
执行结果
{“errcode”:47001,“errmsg”:“data format error hint: [oUKtrA0772xa11]”}
请问是哪里不正确
