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

addShelf() public method

增加货架
public addShelf ( array $data ) : boolean
$data array
return boolean
    public function addShelf(array $data)
    {
        $result = $this->httpRaw(self::WECHAT_SHOP_SHELF_ADD_URL . 'access_token=' . $this->getAccessToken(), $data);
        return isset($result['errmsg']) && $result['errmsg'] == 'success' ? $result['shelf_id'] : false;
    }
Wechat