$access_token = Yii::$service->wxmicro->getAccessTokenFromCache();
$param = [
'start'=> $start,
'limit' => $limit,
];
$qcode = "http://api.weixin.qq.com/wxa/business/getliveinfo?access_token=$access_token";
$result = Yii::$service->wxmicro->curlPost($qcode, $param);
// result string format : string(491) "{"errcode":0,"errmsg":"ok","room_info":[{"name":"Fecmall 直播测试","cover_img":"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/STm9wTFusUYgeIPXiaMRYcSTtwLquBxp79G89icHubk4dx60WKNfZChoQrResce2nSl5XKokbiaYjmv79QbuJfD0Q\/0","start_time":1589162400,"end_time":1589198400,"anchor_name":"Terry","roomid":1,"goods":[],"live_status":102,"share_img":"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/STm9wTFusUYgeIPXiaMRYcSTtwLquBxp7jJ6aAs1BZomiacKAm9Q14qYdZQOYfRMg1CT5NVzJduESJfmatYVmEgw\/0"}],"total":1,"live_replay":[]}"
$result = json_decode($result, true);
if ($result['errcode'] != 0) {
$errmsg = $result['errcode'];
Yii::$service->helper->errors->add($errmsg);
return null;
}