callmez\wechat\sdk\Wechat::getShelf PHP Method

getShelf() public method

根据货架ID获取货架信息
public getShelf ( $shelfId ) : array | boolean
$shelfId
return array | boolean
    public function getShelf($shelfId)
    {
        $result = $this->httpRaw(self::WECHAT_SHOP_SHELF_ID_GET_URL . 'access_token=' . $this->getAccessToken(), ['shelf_id' => $shelfId]);
        if (isset($result['errmsg']) && $result['errmsg'] == 'success') {
            unset($result['errcode'], $result['errmsg']);
            return $result;
        }
        return false;
    }
Wechat