$order_no]; $goodsIds = Db::name('StoreOrderList')->where($map)->column('goods_id'); foreach (array_unique($goodsIds) as $goodsId) if (!GoodsService::syncStock($goodsId)) return false; return true; } /** * 订单利润计算 * @param string $order_no * @return boolean */ public static function profit($order_no = '') { // @todo 计算订单返佣 } }