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

getCategoryProperty() public method

获取指定分类的所有属性
public getCategoryProperty ( $cateId ) : array | boolean
$cateId 分类ID
return array | boolean
    public function getCategoryProperty($cateId)
    {
        $result = $this->httpRaw(self::WECHAT_SHOP_CATEGORY_PROPERTY_GET_URL . 'access_token=' . $this->getAccessToken(), ['cate_id' => $cateId]);
        return isset($result['errmsg']) && $result['errmsg'] == 'success' ? $result['properties'] : false;
    }
Wechat