multi-store/app/common/logic/ChangePriceLogLogic.php

21 lines
491 B
PHP
Raw Normal View History

<?php
namespace app\common\logic;
use app\common\model\change_price_log\ChangePriceLog;
class ChangePriceLogLogic extends BaseLogic
{
public function insert($product_id=0, $group_id=0, $before_price=0,$after_price=0):void
{
ChangePriceLog::create([
'product_id' => $product_id,
'group_id' => $group_id,
'before_price' => $before_price,
'after_price' => $after_price,
'create_time' => time()
]);
}
}