getFactory() getFactory( $user, $goodsList, integer $orderSource = \app\common\enum\order\OrderSource::MASTER) : mixed 根据订单来源获取商品库存类 Parameters $user $goodsList integer $orderSource Returns mixed