public function addProductStock($productId, $quantity, array $skuInfo = null) { $result = $this->httpRaw(self::WECHAT_SHOP_PRODUCT_STOCK_ADD_URL . 'access_token=' . $this->getAccessToken(), ['product_id' => $productId, 'quantity' => $quantity, 'sku_info' => $skuInfo === null ? $skuInfo : implode(':', $skuInfo)]); return isset($result['errmsg']) && $result['errmsg'] == 'success'; }