diff --git a/plugin/webman/gateway/Events.php b/plugin/webman/gateway/Events.php index 32c7e73..1dde9a3 100644 --- a/plugin/webman/gateway/Events.php +++ b/plugin/webman/gateway/Events.php @@ -249,7 +249,7 @@ class Events (!empty($product) && $product[0]['is_auto_sold_stock'] == 1) ) { $gate_way = GateWay::class; - $tb_prod_cons = Db::name('prod_cons_relation') + $tb_prod_cons = Db::table('prod_cons_relation') ->alias('r') ->join('tb_cons_info cons', 'r.cons_info_id = cons.id AND cons.is_stock = 1', 'inner') ->where('r.product_id', $message['product_id'])