You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
591 B
PHTML

<?php
namespace Base\Service;
use Base\Facade\Request;
class PackageDownloadLogService
{
public function add(array $params)
{
$userId = intval($params['user_id'] ?? 0);
$gameId = intval($params['game_id'] ?? 0);
$promoteId = intval($params['promote_id'] ?? 0);
$type = intval($params['type'] ?? 0);
return M('package_download_log', 'tab_')->add([
'user_id' => $userId,
'game_id' => $gameId,
'promote_id' => $promoteId,
'type' => $type,
'create_time' => time()
]);
}
}