<?php


namespace App\Models;


use App\Http\helper\NumConfig;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class ChannelSaveLog extends Model
{
    const TABLE = 'agent.dbo.ChannelSaveLog';
    protected $table = self::TABLE;
    public $timestamps = false;

    // 渠道操作日志
    public function add($adminID, $channel, $ChannelIndex, $ReviewState, $VersionValue, $AndroidVersion)
    {
        $data = [
            'admin_id' => $adminID,
            'channel' => $channel,
            'ChannelIndex' => $ChannelIndex,
            'ReviewState' => $ReviewState,
            'VersionValue' => $VersionValue,
            'AndroidVersion' => $AndroidVersion,
        ];
        self::insert($data);
    }
}
