mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
text align tag + update/edit get desc + rating improve
This commit is contained in:
@@ -36,6 +36,7 @@ use Illuminate\Support\Facades\Storage;
|
||||
use JeroenG\Explorer\Domain\Syntax\Matching;
|
||||
use JeroenG\Explorer\Infrastructure\Scout\ElasticEngine;
|
||||
use Nexus\Database\NexusDB;
|
||||
use Nexus\Imdb\Imdb;
|
||||
use Rhilip\Bencode\Bencode;
|
||||
|
||||
class Test extends Command
|
||||
@@ -118,14 +119,17 @@ class Test extends Command
|
||||
// $r = $searchRep->deleteBookmark(1);
|
||||
// $r = $searchRep->addBookmark(1);
|
||||
|
||||
$rep = new AttendanceRepository();
|
||||
$uid = 1;
|
||||
$attendance = $rep->getAttendance($uid);
|
||||
// $rep = new AttendanceRepository();
|
||||
// $uid = 1;
|
||||
// $attendance = $rep->getAttendance($uid);
|
||||
// $r = $rep->migrateAttendanceLogs($uid);
|
||||
// $r = $rep->getContinuousDays($attendance);
|
||||
$r = $rep->getContinuousPoints(11);
|
||||
dd($r);
|
||||
// $r = $rep->getContinuousPoints(11);
|
||||
|
||||
$url = 'https://www.imdb.com/title/tt4574334/?ref_=vp_vi_tt';
|
||||
$imdb = new Imdb();
|
||||
$rating = $imdb->getRating($url);
|
||||
dd($rating);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -4,9 +4,19 @@ namespace App\Models;
|
||||
|
||||
class Language extends NexusModel
|
||||
{
|
||||
const DEFAULT_ENABLED = ['en', 'chs', 'cht'];
|
||||
|
||||
protected $table = 'language';
|
||||
|
||||
protected $fillable = [
|
||||
'lang_name', 'site_lang_folder',
|
||||
];
|
||||
|
||||
public static function listEnabled($withoutCache = false)
|
||||
{
|
||||
if ($withoutCache) {
|
||||
return Setting::getFromDb('main.site_language_enabled', self::DEFAULT_ENABLED);
|
||||
}
|
||||
return Setting::get('main.site_language_enabled', self::DEFAULT_ENABLED);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,8 @@ class Torrent extends NexusModel
|
||||
const BANNED_NO = 'no';
|
||||
|
||||
protected $casts = [
|
||||
'added' => 'datetime'
|
||||
'added' => 'datetime',
|
||||
'pt_gen' => 'array',
|
||||
];
|
||||
|
||||
public static $commentFields = [
|
||||
|
||||
Reference in New Issue
Block a user