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

64 lines
1.7 KiB

<?php
namespace App\Console\Commands;
use App\Services\CommonScrapeService;
use App\Services\FileService;
use App\Utils\FileUtils;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Redis;
class CommonTest extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'common:test';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$commonScrapeService = new CommonScrapeService();
$commonScrapeService->scrapeBeautyLegImage();exit;
dump(FileUtils::scanDuplicateDir("/Volumes/intel660p/image/xg/ycc"));exit;
$fileService = new FileService();
$fileService->segmentFiles("/Volumes/Samsung/weibo/old_image");
exit;
// Redis::set("hello", "123");
echo Redis::get("fullSet");
exit;
echo mb_strlen("霸气欣欣爷,内地画师,兼职推女神模特,毕业于广州美术学院国画系,自称广州沙画师彩绘师欣儿,一位猫咪爱好%E8");exit;
setlocale(LC_ALL,array('zh_CN.gbk','zh_CN.gb2312','zh_CN.gb18030'));
setlocale(LC_ALL, "zh_CN.UTF-8");
$p1 = pathinfo('D:\\atlas\\这是文件夹\\可爱胖胖是怎么变帅的#超能陆战队.mp4');
$p2 = pathinfo('D:\\atlas\\dirname\\sssss#ddddd.mp4');
print_r($p1);
print_r($p2);
//
}
}