@addons\fecmall\fecyo\services\wxmicro\Liveplayer.php,这段代码中的$qcode拼接的字符串是不是写错了?

问题咨询 · qwzjoyr · 于 2年前 发布 · 1003 次阅读
$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;
        }
共收到 1 条回复
Fecmall#12年前 0 个赞

既然你认为写错了,那你的论据呢?正确的应该是什么?

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics