$item['spec_sku_id'], 'sharp_goods_id' => $sharpGoodsId, 'wxapp_id' => self::$wxapp_id, ]); } return $this->allowField(true)->saveAll($data); } /** * 移除指定商品的所有sku * @param $sharpGoodsId * @return int */ public function removeAll($sharpGoodsId) { return $this->where('sharp_goods_id', '=', $sharpGoodsId)->delete(); } }