チェックインデータがCSVで投入されたことを記録できるようにした
This commit is contained in:
@@ -12,6 +12,9 @@ class Ejaculation extends Model
|
||||
{
|
||||
use HasEagerLimit;
|
||||
|
||||
const SOURCE_WEB = 'web';
|
||||
const SOURCE_CSV = 'csv';
|
||||
|
||||
protected $fillable = [
|
||||
'user_id', 'ejaculated_date',
|
||||
'note', 'geo_latitude', 'geo_longitude', 'link',
|
||||
|
@@ -69,6 +69,7 @@ class CheckinCsvImporter
|
||||
$ejaculation->ejaculated_date = Carbon::createFromFormat('!Y/m/d H:i+', $record['日時']);
|
||||
$ejaculation->note = str_replace(["\r\n", "\r"], "\n", $record['ノート'] ?? '');
|
||||
$ejaculation->link = $record['オカズリンク'] ?? '';
|
||||
$ejaculation->source = Ejaculation::SOURCE_CSV;
|
||||
|
||||
try {
|
||||
$tags = $this->parseTags($line, $record);
|
||||
|
Reference in New Issue
Block a user