Commit 60b5dc25 by 李洋

Initial commit

parents
Showing with 4736 additions and 0 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

* text=auto
*.css linguist-vendored
*.less linguist-vendored
Homestead.yaml
Homestead.json
.env
.ieda
app/Tools/Cache.php
app/Tools/Redisrw.php
doc/~$系统数据库文档V3.docx
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="JSHint" enabled="true" level="ERROR" enabled_by_default="true" />
</profile>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/FootStone.iml" filepath="$PROJECT_DIR$/.idea/FootStone.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
class Add_field extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'add:field';
/**
* 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()
{
// if($choice=='spu'){
// $db=DB::connection('spu');
// for($table=0;$table<10;$table++){
// $sql='ALTER TABLE `lie_spu_'.$table.'` ADD COLUMN `'.$this->argument('field_name').'` '.$this->argument('type').'('.$this->argument('lg').','.(int)$this->argument('dm').')'.' NOT NULL DEFAULT '.$this->argument('df').' COMMENT '.$this->argument('remark');
// $result=$db->statement($sql);
// }
// }else{
// for ($dbcode = 0;$dbcode < 10; $dbcode++ ) {
// $db = DB::connection('sku_' . $dbcode);
// for ($table = 0; $table < 10; $table++) {
// $sql = 'ALTER TABLE `lie_sku_'.$table.'` ADD COLUMN `' . $this->argument('field_name') . '` ' . $this->argument('type') . '(' . $this->argument('lg') . ',' . (int)$this->argument('dm') . ')' . ' NOT NULL DEFAULT ' . $this->argument('df') . ' COMMENT ' . $this->argument('remark');
// $db->statement($sql);
// }
// }
// }
for ($dbcode = 0;$dbcode < 10; $dbcode++ ) {
$db = DB::connection('sku_' . $dbcode);
for ($table = 0; $table < 10; $table++) {
$sql = "ALTER TABLE `lie_sku_{$table}` ADD COLUMN `goods_sn` varchar(50) NOT NULL DEFAULT '' COMMENT 'goods_sn' AFTER `goods_images`";
$result=$db->statement($sql);
echo 'db->sku_' . $dbcode.'->table->lie_sku_'.$table;
if($result){
echo ' Success ';
}else{
echo ' fail ';
}
}
}
echo ' complete';
}
}
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class Handle_Mouser extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'hd_mouser';
/**
* 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()
{
$art=microtime(true);
set_time_limit(0);
$info=$request->input('data')?$request->input('data'):[];
$sign=$request->input('sign');
if(empty($info) || !is_array($info)){
$data['empty'][]='data';
}
if(empty($sign)){
$data['empty'][]='sign';
$info=[];
}
$Verification=md5(http_build_query($info).env('API_KEY', ''));
if($sign!=$Verification){
$data['sign']='fail';
$info=[];
}
if(!empty($info)){
$return=Handle_Mouser($info);
}
if(isset($return['sku']) && !empty($return['sku'])){
$code=0;
}else{
$code=1;
}
$end=microtime(true);
$data['time']=$end-$art;
$data['sku']= isset($return['sku'])?$return['sku']:'';
$data['errinfo']=isset($data['errinfo'])?$data['errinfo']:'';
$this->Export($code,'',$data);
}
}
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Redis;
use Illuminate\Support\Facades\DB;
class Initialization extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'Initialization';
/**
* 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()
{
$Redis= Redis::connection();
echo 'Start initialization supplier->';
$info= DB::connection('spu')->table('lie_supplier')->select('supplier_id','supplier_name')->get();
$datas=[];
foreach ($info as $k=>$v){
$datas[$v->supplier_id]=$v->supplier_name;
}
$result=$Redis->hmset('supplier',$datas);
if(!$result){
echo 'fail->';
}else{
echo 'Success->';
}
echo 'Start initialization brand->';
$info=[];
$datas=[];
$info= DB::connection('spu')->table('lie_brand')->select('brand_id','brand_name')->get();
foreach ($info as $k=>$v){
$datas[$v->brand_id]=$v->brand_name;
}
$result=null;
$result=$Redis->hmset('brand',$datas);
if(!$result){
echo 'fail->';
}else{
echo 'Success->';
}
echo 'Start initialization class->';
$info= DB::connection('spu')->table('lie_classify')->select('class_id','class_name')->get();
foreach ($info as $k=>$v){
$datas[$v->class_id]=$v->class_name;
}
$result=$Redis->hmset('class',$datas);
if(!$result){
echo 'fail->';
}else{
echo 'Success->';
}
echo 'Start initialization class_mapping->';
$list=DB::connection('spu')->table('lie_classify')->get();
$class=tree_class($list);
foreach ($class as $k1=>$v1){
$class[$k1]=(array)$class[$k1];
foreach ($class[$k1]['lower'] as $k2=>$v2){
$data=[];
$class[$k1]['lower'][$k2]=(array)$class[$k1]['lower'][$k2];
foreach ($class[$k1]['lower'][$k2]['lower'] as $k3=>$v3){
$class[$k1]['lower'][$k2]['lower'][$k3]=(array)$class[$k1]['lower'][$k2]['lower'][$k3];
$value=$v1->class_id.','.$v2->class_id;
$data[$v3->class_id]=$value;
}
$Redis->hmset('class_ing',$data);
}
}
echo 'complete';
}
}
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
class Inspire extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'inspire';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Display an inspiring quote';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
}
}
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
class Sku_mongo extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'sku:mongo';
/**
* 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()
{
set_time_limit(0);
$starttime = explode(' ',microtime());
$mongo=new \MongoClient(env('MONGO_HOST', ''));
$mongodb=$mongo->ichunt->sku;
$count=100;
for ($dbcode=0;$dbcode<10;$dbcode++){
$db=DB::connection('sku_'.$dbcode);
$i=0;
for($table=0;$table<10;$table++){
for ($p=1;$p<$count+1;$p++){
$data=[];
$list=$db->table('lie_sku_'.$table)->select('goods_id','spu_id','moq','supplier_id')->paginate(10000,['*'],'',$p);
foreach ($list as $k=>$v){
$data[]=[
'goods_id'=>intval($v->goods_id),
'spu_id' =>intval($v->spu_id),
'supplier_id'=>intval($v->supplier_id),
'moq'=>intval($v->moq)
];
$i++;
}
$mongodb->batchInsert($data);
$count=$list->lastPage();
echo $i.'->';
}
}
}
//程序运行时间
$endtime = explode(' ',microtime());
$thistime = $endtime[0]+$endtime[1]-($starttime[0]+$starttime[1]);
$thistime = round($thistime,3);
echo "本程序执行耗时:".$thistime." 秒。";
}
}
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Redis;
use Illuminate\Support\Facades\DB;
class Sku_redis extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'sku:redis';
/**
* 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()
{
$redis=Redis::connection();
$count=100;
$i=0;
for ($dbcode = 0;$dbcode < 10; $dbcode++ ) {
$db=DB::connection('sku_'.$dbcode);
for ($table = 0; $table < 10; $table++) {
for ($p = 1; $p < $count + 1; $p++) {
$data = [];
$list = $db->table('lie_sku_' . $table)
->select('goods_id', 'spu_id', 'old_goods_id', 'goods_name', 'goods_type', 'supplier_id', 'goods_status', 'encoded', 'batch_sn', 'moq', 'mpq', 'stock', 'hk_delivery_time', 'cn_delivery_time', 'goods_details', 'ladder_price', 'single_price', 'former_price', 'sale_time', 'create_time','update_time','remark','goods_images','goods_sn')
->paginate(1000, ['*'], '', $p);
foreach ($list as $k => $v) {
$info=[];
$info = (array)$v;
$spu=json_decode($redis->hget('spu',$info['spu_id']),true);
if(!$spu){
$dbinfo = resolve($info['spu_id']);
$spu = DB::connection($dbinfo['db'])->table($dbinfo['table'])->where('spu_id', $info['spu_id'])->first();
if ($spu){
$spu = Handle_spu($spu);
}
}
$info['brand_name']=$spu['brand_name'];
$info['pdf']=$spu['pdf'];
$info['sku_img']=$spu['images_l'];
if(empty($info['goods_name'])){
$info['goods_name']=$spu['spu_name'];
}
$spu=null;//注销
$info['supplier_name']=generate_supplier($info['supplier_id']);
$info['ladder_price']=json_decode($info['ladder_price'],true);
switch ($info['goods_status']){
case 0:
$info['status_name']='审核中';
break;
case 1:
$info['status_name']='上架';
break;
case 2:
$info['status_name']='审核不通过';
break;
case 3:
$info['status_name']='下架';
break;
default :
$info['status_name']='未知';
}
switch ($info['goods_type']){
case 0:
$info['type_name']='自营';
break;
case 1:
$info['type_name']='联营';
break;
case 2:
$info['type_name']='专卖';
break;
default :
$info['type_name']='未知';
}
$info['create_time_s']=date('Y-m-d H:i',$info['create_time']);
$data[$info['goods_id']] = json_encode($info);
$i++;
}
$result = $redis->hmset('sku', $data);
$count = $list->lastPage();
echo $i . '->';
}
}
}
echo '初始化完成';
}
}
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
class Spu_mongo extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'spu:mongo';
/**
* 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()
{
set_time_limit(0);
$starttime = explode(' ',microtime());
$mongo=new \MongoClient(env('MONGO_HOST', ''));
$mongodb=$mongo->ichunt->spu;
$count=100;
$db=DB::connection('spu');
$i=0;
for($table=0;$table<10;$table++){
for ($p=1;$p<$count+1;$p++){
$data=[];
$list=$db->table('lie_spu_'.$table)->select('spu_name','brand_id','spu_id')->paginate(1000,['*'],'',$p);
foreach ($list as $k=>$v){
$data[]=[
'spu_id'=>(int)$v->spu_id,
'spu_name'=>$v->spu_name,
'brand_id'=>(int)$v->brand_id
];
$i++;
}
$result=$mongodb->batchInsert($data);
$count=$list->lastPage();
echo $i.'->';
}
}
//程序运行时间
$endtime = explode(' ',microtime());
$thistime = $endtime[0]+$endtime[1]-($starttime[0]+$starttime[1]);
$thistime = round($thistime,3);
echo "本程序执行耗时:".$thistime." 秒。";
}
}
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Redis;
use Illuminate\Support\Facades\DB;
class Spu_redis extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'spu:redis';
/**
* 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()
{
set_time_limit(0);
$redis=Redis::connection();
$count=100;
$db=DB::connection('spu');
$i=0;
for($table=0;$table<10;$table++){
for ($p=1;$p<$count+1;$p++){
$data=[];
$list=$db->table('lie_spu_'.$table)
->select('spu_id','class_id1','class_id2','brand_id','class_id3','spu_name','status','images_l','images_s','encap','pdf','spu_brief','has_rohs','attrs','spu_detail','sale_time','create_time','update_time','remark','bussiness_area')
->paginate(1000,['*'],'',$p);
foreach ($list as $k=>$v){
$info=[];
$info=(array)$v;
if(!empty($info['class_id1'])){
$info['class_id']=$info['class_id1'];
}
if(!empty($info['class_id2'])){
$info['class_id']=$info['class_id2'];
}
if(!empty($info['class_id3'])){
$info['class_id']=$info['class_id3'];
}
$info['class_name']=$redis->hget('class',$info['class_id']);
if(!isset($info['class_name'])){
$info['class_name']=generate_class($info['class_id']);
}
$info['brand_name']=$redis->hget('brand',$info['brand_id']);
if(!isset($info['brand_name'])){
$info['brand_name']=generate_brand($info['brand_id']);
}
switch ($info['status']){
case 0:
$info['status_name']='审核中';
break;
case 1:
$info['status_name']='上架';
break;
case 2:
$info['status_name']='审核不通过';
break;
case 3:
$info['status_name']='下架';
break;
default :
$info['status_name']='未知';
}
$info['create_time_s']=date('Y-m-d H:i',$info['create_time']);
$data[$info['spu_id']]=json_encode($info);
$i++;
}
$result=$redis->hmset('spu',$data);
$count=$list->lastPage();
echo $i.'->';
}
}
echo '初始化完成';
}
}
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class qj_sf extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'qj:sf';
/**
* 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()
{
$arr=[
'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
'1','2','3','4','5','6','7','8','9','0'
];
$data=$this->getSequenceStr($arr);
echo count($data);
}
function getSequenceAry($arr)
{
if (count($arr) == 1) {
return array($arr);
}
$arrRet = array();
foreach ($arr as $k => $v) {
$arr2 = $arr;
unset($arr2[$k]);
$arrOrderList = $this->getSequenceAry($arr2);
foreach ($arrOrderList as $order) {
array_unshift($order, $v);
$arrRet[] = $order;
}
}
return $arrRet;
}
function getSequenceStr($arr)
{
if (count($arr) == 1) {
return $arr;
}
$arrRet = array();
foreach ($arr as $k => $v) {
$arr2 = $arr;
unset($arr2[$k]);
$arrOrderList = $this->getSequenceStr($arr2);
foreach ($arrOrderList as $order) {
$arrRet[] = $v . $order;
if(strlen($v.$order)>5){
echo $v.$order.'->';
}
}
}
return $arrRet;
}
}
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
Commands\Inspire::class,
Commands\Spu_redis::class,
Commands\Spu_mongo::class,
Commands\Sku_mongo::class,
Commands\Sku_redis::class,
Commands\qj_sf::class,
Commands\Initialization::class,
Commands\Add_field::class,
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('inspire')
->hourly();
}
}
<?php
namespace App\Events;
abstract class Event
{
//
}
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Illuminate\Foundation\Validation\ValidationException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that should not be reported.
*
* @var array
*/
protected $dontReport = [
AuthorizationException::class,
HttpException::class,
ModelNotFoundException::class,
ValidationException::class,
];
/**
* Report or log an exception.
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $e
* @return void
*/
public function report(Exception $e)
{
return parent::report($e);
}
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $e
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $e)
{
return parent::render($request, $e);
}
}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use DB;
use RedisDB;
class BatchController extends Controller
{
public function Entrance(Request $request, $id ){
//统一入口
$this->$id($request, $id);
}
private function Export($errcode=0,$errmsg='成功',$data=''){
echo json_encode(['errcode'=>$errcode,'errmsg'=>$errmsg,'data'=>$data]);
exit();
}
//生成spu唯一识别信息
private function create_spu_mongo()
{
set_time_limit(0);
$starttime = explode(' ',microtime());
echo microtime();
$mongo=new \MongoClient(env('MONGO_HOST', ''));
$mongodb=$mongo->ichunt->spu;
$count=100;
$db=DB::connection('spu');
for($table=0;$table<10;$table++){
for ($p=1;$p<$count+1;$p++){
$data=[];
$list=$db->table('lie_spu_'.$table)->select('spu_name','brand_id','spu_id')->paginate(1000,['*'],'',$p);
foreach ($list as $k=>$v){
$data[]=[
'spu_id'=>$v->spu_id,
'spu_name'=>$v->spu_name,
'brand_id'=>$v->brand_id
];
}
$result=$mongodb->batchInsert($data);
$count=$list->lastPage();
}
}
//程序运行时间
$endtime = explode(' ',microtime());
$thistime = $endtime[0]+$endtime[1]-($starttime[0]+$starttime[1]);
$thistime = round($thistime,3);
echo "本程序执行耗时:".$thistime." 秒。".time();
}
private function create_sku_mongo()
{
set_time_limit(0);
$starttime = explode(' ',microtime());
echo microtime();
$mongo=new \MongoClient(env('MONGO_HOST', ''));
$mongodb=$mongo->ichunt->sku;
$count=100;
for ($dbcode=0;$dbcode<10;$dbcode++){
$db=DB::connection('sku_'.$dbcode);
for($table=0;$table<10;$table++){
for ($p=1;$p<$count+1;$p++){
$data=[];
$list=$db->table('lie_sku_'.$table)->select('goods_id','spu_id','moq','supplier_id')->paginate(10000,['*'],'',$p);
foreach ($list as $k=>$v){
$data[]=[
'goods_id'=>intval($v->goods_id),
'spu_id' =>intval($v->spu_id),
'supplier_id'=>intval($v->supplier_id),
'moq'=>intval($v->moq)
];
}
$mongodb->batchInsert($data);
$count=$list->lastPage();
}
}
}
//程序运行时间
$endtime = explode(' ',microtime());
$thistime = $endtime[0]+$endtime[1]-($starttime[0]+$starttime[1]);
$thistime = round($thistime,3);
echo "本程序执行耗时:".$thistime." 秒。".time();
}
private function create_spu_redis($request){
set_time_limit(0);
$redis=RedisDB::connection();
$db=DB::connection('spu');
$table=$request->input('table');
$data=[];
$list=$db->table('lie_spu_'.$table)
->select('spu_id','class_id1','class_id2','brand_id','class_id3','spu_name','status','images_l','images_s','encap','pdf','spu_brief','has_rohs','attrs','spu_detail','sale_time','create_time','update_time','remark','bussiness_area')
->paginate(1000);
foreach ($list as $k=>$v){
$info=(array)$v;
$info['class_id']=0;
if(!empty($info['class_id1'])){
$info['class_id']=$info['class_id1'];
}
if(!empty($info['class_id2'])){
$info['class_id']=$info['class_id2'];
}
if(!empty($info['class_id3'])){
$info['class_id']=$info['class_id3'];
}
$info['class_name']=$redis->hget('class',$info['class_id']);
$info['brand_name']=$redis->hget('brand',$info['brand_id']);
switch ($info['status']){
case 0:
$info['status_name']='审核中';
break;
case 1:
$info['status_name']='上架';
break;
case 2:
$info['status_name']='审核不通过';
break;
case 3:
$info['status_name']='下架';
break;
default :
$info['status_name']='未知';
}
$info['create_time_s']=date('Y-m-d H:i',$info['create_time']);
$data[$v->spu_id]=json_encode($info);
}
$result=$redis->hmset('spu',$data);
$objdata['count']=$list->count();
$objdata['last_page']=$list->lastPage();
if($result=='OK'){
$this->Export(0,'',$objdata);
}else{
$this->Export(20001,'写入Redis出错');
}
}
//生成spu唯一识别信息
private function spu_redis()
{
echo 'kkk';die;
set_time_limit(0);
$starttime = explode(' ',microtime());
echo microtime();
$redis=RedisDB::connection();
$count=100;
$db=DB::connection('spu');
for($table=0;$table<10;$table++){
for ($p=1;$p<$count+1;$p++){
$data=[];
$list=$db->table('lie_spu_'.$table)
->select('spu_id','class_id1','class_id2','brand_id','class_id3','spu_name','status','images_l','images_s','encap','pdf','spu_brief','has_rohs','attrs','spu_detail','sale_time','create_time','update_time','remark','bussiness_area')
->paginate(1000,['*'],'',$p);
foreach ($list as $k=>$v){
$v=(array)$v;
$data[$v['spu_id']]=json_encode($v);
}
$result=$redis->hmset('spu',$data);
$count=$list->lastPage();
}
}
//程序运行时间
$endtime = explode(' ',microtime());
$thistime = $endtime[0]+$endtime[1]-($starttime[0]+$starttime[1]);
$thistime = round($thistime,3);
echo "本程序执行耗时:".$thistime." 秒。".time();
}
private function sku_redis(){
}
}
\ No newline at end of file
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;
use Config;
use Log;
class FavoriteController extends Controller
{
public function add(Request $request)
{
$type = $request->input('type', null);
$data_id = $request->input('data_id', null);
$args = $request->input('data_args', '');
if ($type === null)
return ['errcode' => 404, 'errmsg' => 'Bad Request: type not found'];
if ($type != 1 && $type != 2)
return ['errcode' => 404, 'errmsg' => 'Bad Request: invaild type ' . $type];
if ($data_id === null)
return ['errcode' => 404, 'errmsg' => 'Bad Request: data_id not found'];
if (!empty($args) && !json_decode($args))
return ['errcode' => 404, 'errmsg' => 'Bad Request: invaild data_args'];
$userId = $request->user->userId;
$sql = "REPLACE INTO favorites(data_type,data_id,data_args,user_id,ctime) VALUES(?,?,?,?,?)";
$data= [$type, $data_id, $args, $userId, date('Y-m-d H:i:s')];
// $sql = "REPLACE INTO favorites(data_type,data_id,user_id,ctime) VALUES(?,?,?,?)";
// $data= [$type, $data_id, $userId, date('Y-m-d H:i:s')];
try {
DB::connection('tableconfig')->insert($sql, $data);
return ['errcode' => 0, 'errmsg' => ''];
} catch (\Exception $e) {
return ['errcode' => 500, 'errmsg' => 'DB::insert failed:' . $e->getMessage()];
}
}
public function del(Request $request, $favorite_id)
{
if ($favorite_id <= 0)
return ['errcode' => 404, 'errmsg' => 'Bad Request: invaild favorite_id' . $favorite_id];
$userId = $request->user->userId;
try {
$ret = DB::connection('tableconfig')->table('favorites')
->where('favorite_id', $favorite_id)->where('user_id', $userId)->delete();
if ($ret) {
return ['errcode' => 0, 'errmsg' => ''];
} else {
return ['errcode' => 404, 'errmsg' => "Bad Request: not found favorite_id {$favorite_id}"];
}
} catch (\Exception $e) {
return ['errcode' => 500, 'errmsg' => 'DB::insert ' . $e->getMessage()];
}
}
public function getList(Request $request, $type=null)
{
$page = $request->input('page', 1);
$count= $request->input('count', 20);
$userId= $request->user->userId;
try {
$q = DB::connection('tableconfig')->table('favorites')
->where('user_id', $userId);
if ($type !== null)
$q->where('data_type', $type);
$total = $q->count();
$data = ['errcode' => 0, 'data' => ['page' => $page, 'count' => $count, 'total' => $total, 'list' => [] ] ];
if ($total == 0)
return $data;
$ret = $q->skip(($page-1) * $count)->take($count)->orderBy('ctime', 'DESC')->get();
if (!$ret)
return $data;
$types = [];
foreach ($ret as $item)
$types[$item->data_type][] = $item->data_id;
$urls = [];
if (isset($types[1])) {
$table = DB::connection('tableconfig')->table('tableconfig')->whereIn('table_id', $types[1])->get();
if ($table) {
foreach ($table as $item) {
$urls[1][$item->table_id] = ['url'=> '/database/' . $item->table_id, 'title' => $item->title];
}
}
}
if (isset($types[2])) {
$config = DB::connection('tableconfig')->table('config')->whereIn('config_id', $types[2])->get();
if ($config) {
foreach ($config as $item) {
$urls[2][$item->config_id] = ['url'=> '/setting/' . $item->config_id, 'title' => $item->config_title];
}
}
}
if (isset($types[3])) {
$config = DB::connection('tableconfig')->table('relation_config')->whereIn('relation_id', $types[3])->get();
if ($config) {
foreach ($config as $item) {
$urls[3][$item->config_id] = ['url'=> '/relation/' . $item->relation_id, 'title' => $item->title];
}
}
}
$outdata = [];
foreach ($ret as $item) {
if (!isset($urls[$item->data_type][$item->data_id]))
continue;
$arr = $urls[$item->data_type][$item->data_id];
$item->url = $arr['url'];
$item->title = $arr['title'];
if (isset($item->args))
$item->args = json_decode($item->args);
$outdata[] = $item;
}
$data['data']['list'] = $outdata;
return $data;
} catch (\Exception $e) {
return ['errcode' => 500, 'errmsg' => 'DB::insert failed: ' . $e->getMessage()];
}
}
}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Contracts\Validation\Validator;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Config;
use DB;
use Exception;
use Log;
class SQLEnumController extends Controller
{
private function buildSelectStatement(Request $request, $field, $config, $datas, $schema)
{
$vals = [];
if (isset($schema->adv_config->filter) && isset($schema->adv_config->filter->$field))
$vals[] = $schema->adv_config->filter->$field;
foreach ($datas as $data) {
$val = null;
if (is_array($data) && isset($data[$field])) {
$val = $data[$field];
} else if (isset($data->$field)) {
$val = $data->$field;
}
if (is_array($val)) {
foreach ($val as $v)
$vals[] = $v;
} else if ($val !== null) {
$vals[] = $val;
}
}
if (count($vals) == 0)
return [null, null];
$sql = preg_replace('/{[^\}]+}/', implode(',', array_fill(0, count($vals), '?')), $config->mapSql);
return [$sql, $vals];
}
private function buildUnionStatement(Request $request, $field, $config, $datas, $schema)
{
$sql = $config->sql;
$vals = [];
$sqls = [];
preg_match_all('/{([^\}]+)}/', $sql, $fields);
$sql = preg_replace('/{[^\}]+}/', '?', $sql);
if ($sql != $config->sql) {
foreach ($datas as $data) {
foreach ($fields[1] as $f) {
if (is_array($data))
$vals[] = $data[$f];
else
$vals[] = $data->$f;
}
$sqls[] = $sql;
}
$sql = implode(' UNION ALL ', $sqls);
}
return [$sql, $vals];
}
private function fillEnumsData(Request $request, $field, $schema, $datas)
{
$config = $schema->adv_config->sqlDicts->$field;
// 不需要转换
if ($config->type == 0)
return true;
// datas是object(数据库接口)或则是array(history接口转换过来的), 所以对取值需要兼容
// 对于history接口的数据,field对应的字段可能不存在
// (数据库增加了字段,老的历史数据会不存在这个字段)
$host = $config->host;
$port = $config->port;
$user = $config->user;
$passwd = $config->passwd;
$dbname = $config->dbname;
$sql = '';
$vals = [];
if (isset($config->mapSql)) {
list($sql, $vals) = $this->buildSelectStatement($request, $field, $config, $datas, $schema);
} else {
list($sql, $vals) = $this->buildUnionStatement($request, $field, $config, $datas, $schema);
}
if ($sql == null)
return true;
$confname = $host . ':' . $port;
$conn = [
'driver' => 'mysql',
'host' => $host,
'port' => $port,
'database' => $dbname,
'username' => $user,
'password' => $passwd,
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
];
Config::set('database.connections.' . $confname, $conn);
$result = DB::connection($confname)->select($sql, $vals);
$out = [];
$ret = [];
if (count($result) == 0)
return $ret;
if (count((array)($result[0])) == 1)
return $ret;
foreach ($result as $item) {
$arr = [];
foreach ($item as $k => $v) {
$arr[] = $v;
if (count($arr) == 2)
break;
}
$out[$arr[0]] = $arr[1];
}
foreach ($datas as $data) {
$val = is_array($data) ? (isset($data[$field]) ? $data[$field] : "") : $data->$field;
if (is_array($val)) {
foreach ($val as $v) {
if (isset($out[$v]))
$ret[$v] = $out[$v];
else
$ret[$v] = $v;
}
} else {
if (isset($out[$val]))
$ret[$val] = $out[$val];
else
$ret[$val] = $val;
}
}
if (isset($schema->adv_config->filter) && isset($schema->adv_config->filter->$field)) {
$v = $schema->adv_config->filter->$field;
if (isset($out[$v]))
$ret[$v] = $out[$v];
else
$ret[$v] = $v;
}
return $ret;
}
public function getEnumsByData(Request $request, $schema, $datas)
{
if (!isset($schema->adv_config) || !isset($schema->adv_config->sqlDicts))
return [];
$ret = [];
foreach ($schema->adv_config->sqlDicts as $f => $config)
$ret[$f] = $this->fillEnumsData($request, $f, $schema, $datas);
return $ret;
}
public function getEnumsByQuery(Request $request)
{
$ret = $this->getEnums($request);
if ($ret['errcode'] != 0)
return ['q' => $request->input('q', ''), 'results' => []];
$result = [];
foreach ($ret['data'] as $data) {
$result[] = ['id' => $data['key'], 'text' => $data['name']];
}
return ['q' => $request->input('q', ''), 'results' => $result];
}
public function getEnums(Request $request)
{
$host = $request->input('host', '');
$port = $request->input('port', '');
$user = $request->input('user', '');
$passwd = $request->input('passwd', '');
$dbname = $request->input('dbname', '');
$sql = $request->input('sql', '');
$type = $request->input('type', 0);
if (empty($host) || empty($port) || empty($user) || empty($passwd) || empty($dbname) || empty($sql))
return ["errcode" => 404, "errmsg" => "Bad request"];
$vals = [];
$q = null;
if (preg_match_all('/{([^\}]+)}/', $sql, $fields) > 0) {
foreach ($fields[1] as $f) {
if ($f == 'user.email') {
$vals[] = $request->user->email;
} else if ($f == 'user.userId') {
$vals[] = $request->user->userId;
} else {
if ($f == 'request.q') {
$q = $request->input('q', '');
if ($q == '')
return ['errcode' => 404, "errmsg" => "Bad request"];
$q = str_replace(['%', '_', '\'', '"', ';'], ['\%', '\_', '', '', ''], $q);
continue;
}
$v = $request->input($f, '');
if (strlen($v) == 0)
return ["errcode" => 404, "errmsg" => "Bad request: {$f}的值为空"];
$vals[] = $v;
}
}
}
if (!empty($q))
$sql = preg_replace('/{request.q}/', $q, $sql);
$sql = preg_replace('/{[^\}]+}/', '?', $sql);
$confname = $host . ':' . $port;
$conn = [
'driver' => 'mysql',
'host' => $host,
'port' => $port,
'database' => $dbname,
'username' => $user,
'password' => $passwd,
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
];
Config::set('database.connections.' . $confname, $conn);
$result = DB::connection($confname)->select($sql, $vals);
$out = [];
foreach ($result as $item) {
$arr = [];
foreach ($item as $k => $v) {
$arr[] = $v;
if ($type != 0 || count($arr) == 2)
break;
}
if (count($arr) == 1) {
$arr[] = $arr[0];
} else if (!empty($q)) {
$arr[1] = $arr[1] . '(' . $arr[0] . ')';
}
$out[] = [ 'key' => $arr[0], 'name' => $arr[1] ];
}
return ['errcode' => 0, 'data' => $out];
}
};
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use DB;
use RedisDB;
use App\Jobs\mouser;
class WebApiController extends Controller
{
public function Entrance(Request $request, $id ){
//统一入口
$this->$id($request, $id);
}
private function Export($errcode=0,$errmsg='成功',$data=''){
echo json_encode(['errcode'=>$errcode,'errmsg'=>$errmsg,'data'=>$data]);
exit();
}
private function Export_jsonp($request,$errcode=0,$errmsg='成功',$data=''){
$callback=$request->input('callback');
echo $callback.'('.json_encode(['errcode'=>$errcode,'errmsg'=>$errmsg,'data'=>$data]).')';
exit();
}
private function tree_class($request,$id){
$redis=RedisDB::connection();
$info=$redis->get('tree_class');
if(!$info){
$info=DB::connection('spu')->table('lie_classify')->where('status',1)->select('class_id','class_name','parent_id')->get();
$info=json_encode(tree_class($info));
$result=$redis->set('tree_class',$info);
$redis->expire('tree_class', 3600);
}
if(!$info){
$this->Export(50001,'未查找到分类');
}
if($info){
$this->Export(0,'成功',$info);
}else{
$this->Export(50002,'系统错误');
}
}
private function sku_list($request){
$list=[];
$data=[];
$page='';
$map=$request->input();
foreach ($map as $k=>$v){
if(empty($v) AND $v!='0'){
unset($map[$k]);
}
if(isset($map['_url'])){
unset($map['_url']);
}
if(isset($map['s'])){
unset($map['s']);
}
}
$map['p']=isset($map['p'])?$map['p']:1;
$url=env('ES_SKU_URL', '');
$return=curl($url,$map,1);
$data=json_decode($return,true);
if($data['error_code']==0) {
$redis=RedisDB::connection();
foreach ($data['data']['goods_id'] as $k => $v) {
$info = json_decode($redis->hget('sku',$v),true);
if (!$info) {
$dbinfo = resolve($v);
$info = DB::connection($dbinfo['db'])->table($dbinfo['table'])->where('goods_id', $v)->first();
$info=(array)$info;
if ($info) {
$info = Handle_sku($info);
} else {
break;
}
}
if($info['moq']>$info['stock'] || !is_array($info['ladder_price']) ){
$info['is_buy']=0;
}else{
$info['is_buy']=1;
}
$list[$k] = $info;
}
$page = generate_page($request, $data['data']['total'], 10,$map,true);
}
$datas['data']=$list;
$datas['page']=str_replace('href=','data-url=',$page);
$this->Export(0,'成功',$datas);
}
//商品详情页(没有redis时才读取)
private function goods_details($request){
$redis=RedisDB::connection();
$sku_id=$request->input('sku_id');
if(empty($sku_id)){
$this->Export(100001,'缺少必须参数');
}
$dbinfo = resolve($sku_id);
$info = DB::connection($dbinfo['db'])->table($dbinfo['table'])->where('goods_id', $sku_id)->first();
$info=(array)$info;
if ($info) {
$db_spu_info=resolve($info['spu_id']);
$spuinfo=DB::connection($db_spu_info['db'])->table($db_spu_info['table'])->where('spu_id',$info['spu_id'])->first();
if($spuinfo){
$spuinfo=Handle_spu($spuinfo);
}else{
$spuinfo=[];
}
$info = Handle_sku($info);
if($info['moq']>$info['stock'] || !is_array($info['ladder_price']) ){
$info['is_buy']=0;
}else{
$info['is_buy']=1;
}
$datas['sku']=$info;
$datas['spu']=$spuinfo;
$this->Export(0,'成功',$datas);
}else{
$this->Export(10002,'未查找到该商品');
}
}
//查询分类商品总数
private function query_class_sku_count($request){
$map=$request->input();
foreach ($map as $k=>$v){
if(empty($v)){
unset($map[$k]);
}
}
if(empty($map) || !is_array($map)){
$map['agg']='class_id1';
}
$url=env('ES_SKU_URL', '');
$return=curl($url,$map,1);
$data=json_decode($return,true);
if(empty($data['data']) || $data['error_code']!=0){
$this->Export(50003,'获取失败');
}else{
$this->Export(0,'',$data['data']);
}
}
//MOUSER新增接口
private function handle_mouser($request){
set_time_limit(0);
$info=$request->input('data')?$request->input('data'):[];
$sign=$request->input('sign');
if(empty($info) || !is_array($info)){
$data['empty'][]='data';
}
if(empty($sign)){
$data['empty'][]='sign';
$info=[];
}
$Verification=md5(http_build_query($info).env('API_KEY', ''));
if($sign!=$Verification){
$data['sign']='fail';
$info=[];
}
if(!empty($info)){
$return=$this->dispatch(new mouser($info));
}
if(isset($return) && !empty($return)){
$code=0;
}else{
$code=1;
}
$data['id']= isset($return)?$return:'';
$data['errinfo']=isset($data)?$data:'';
$this->Export($code,'',$data);
}
public function cs_ms(){
$url='http://footstone.liexin.com/webapi/handle_mouser';
$time=time();
$data[$time]=[
'goods_name'=>$time,
'goods_name_temp'=>$time,
'brand_name'=>'Wakefield-Vette',
'spu_brief'=>'散熱器 Spring ASSMB for COMPR Clmp Series145',
'goods_sn'=>$time,
'pdf'=>'http://www.mouser.com/ds/2/433/precision-clamps-wakefield-471757.pdf',
'url'=>'https://www.mouser.hk/ProductDetail/Wakefield-Vette/145-2/?qs=vgpl%252bgh%252biRNsiFg9TTUV7w%3d%3d',
'images'=>'https://www.mouser.com/images/wakefield/images/567-145-2_SPL.jpg',
'cat'=>'散熱器',
'stock'=>23,
'moq'=>1,
'mpq'=>1,
'ladder_price'=>json_encode([
[
"purchases"=>20,
"price_cn"=>0,
"price_us"=>2.45
]
]),
];
$sign=md5(http_build_query($data).env('API_KEY', ''));
$post['data']=$data;
$post['sign']=$sign;
$result=curl($url,http_build_query($post),1);
echo $result;
dump($result);
}
private function cs(){
$redis=RedisDB::connection();
$result=$redis->lpop('queues:mouser');
dump($result);
dump(json_decode($result,true));
}
}
\ No newline at end of file
<?php
namespace App\Http;
class Error
{
const E_RESET_PASSWD= -1; // 需要重置密码
const E_PARAM = -10001; // 参数错误
const E_SERVER = -10002; // 服务器错误
const E_NOT_MATCH = -10003; // 帐号不匹配存在
const E_FORBIDDEN = -10004; // 权限限制
const E_STATUS = -10005; // 数据状态不一致
const E_AUDIT_EXIST = -10006; // 有相同的权限申请
const E_NOT_LOGIN = -10007; // 未登陆
const E_DUP = -10008; // email,name重复
const E_NOT_EXISTS = -10009; // 不存在
};
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
];
/**
* The application's route middleware groups.
*
* @var array
*/
protected $middlewareGroups = [
'web' => [
\App\Http\Middleware\CheckLogin::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
],
'api' => [
\App\Http\Middleware\JsonpCallback::class
],
'webapi'=>[
]
];
/**
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
* @var array
*/
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
];
}
<?php
namespace App\Http\Middleware;
use Closure;
use App\Http\Output;
use App\Http\Error;
use Config;
class CheckLogin
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$userId = $request->cookie('oa_user_id');
$skey = $request->cookie('oa_skey');
$isApi = false;
$pos = strpos($request->path(), 'api/');
if ($pos === 0)
$isApi = true;
$login = Config::get('website.login');
if (!$userId || !$skey || (string)((int)$userId) != $userId || !preg_match('/^[a-zA-Z0-9]+$/', $skey)) {
if ($isApi)
return ["errcode" => 401, "errmsg" => "没有登录"];
return redirect($login['login'] . '?redirect=' . urlencode($request->url()));
}
$cookie = 'oa_user_id=' . $userId . '; oa_skey=' . $skey;
$client = new \GuzzleHttp\Client();
$rsp = $client->request('GET', $login['check'], [
'headers' => ['Cookie' => $cookie],
'connect_timeout' => 1,
'timeout' => 3
]);
if ($rsp->getStatusCode() != 200) {
Log::error("query {$login['check']} failed: code " . $rsp->getStatusCode());
if ($isApi)
return ['errcode' => -$rsp->getStatusCode(), 'errmsg' => '鉴权失败'];
abort(500);
}
$ret = json_decode($rsp->getBody());
if ($ret->retcode != 0) {
if ($isApi)
return ["errcode" => $ret->retcode, "errmsg" => $ret->errMsg];
return redirect($login['login'] . '?redirect=' . urlencode($request->url()));
}
$user = $ret->data;
$user->header = $request->cookie('oa_header');
$request->user = $user;
return $next($request);
}
}
<?php
namespace App\Http\Middleware;
use Closure;
use App\Http\Output;
use App\Http\Controllers\LoginController;
use App\Http\Error;
use Config;
class JsonpCallback
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$callback = $request->input('callback', null);
$result = $next($request);
if (!$callback)
return $result;
if (strpos($request->path(), 'api/') !== 0)
return $result;
if (!preg_match('/^[_A-Za-z0-9]+$/', $callback))
return $result;
if (is_array($result)) {
$result = $callback . '(' . json_encode($result) . ')';
} else {
$result->setContent($callback . '(' . $result->content() . ')');
}
return $result;
}
}
<?php
namespace App\Http;
use Illuminate\Http\Request;
use Log;
class Output
{
public static function makeResult(Request $req, $retcode, $errmsg=null, $data=null)
{
$ret = [ 'retcode' => $retcode ];
if ($errmsg !== null)
$ret['errMsg'] = $errmsg;
if ($data !== null)
$ret['data'] = $data;
if ($retcode != 0)
Log::error("path=`/" . $req->path() . "`, retcode=`{$retcode}`, errmsg=`{$errmsg}`, param=`" . json_encode($req->all()) . "`");
return $ret;
}
};
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
abstract class Request extends FormRequest
{
//
}
<?php
use Illuminate\Http\Request;
use App\Http\Controllers\TablePageController;
use App\Http\Controllers\DataController;
/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::pattern('table_id', '[0-9]+');
Route::pattern('id', '[0-9]+');
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
Route::group(['middleware' => 'batchapi'], function () {
Route::get('/batchapi/{key}', 'BatchController@Entrance');
});
Route::group(['middleware' => 'web'], function () {
// api接口
Route::get ('/api/dbmanager/get/{table_id}', 'DBManagerController@get');
Route::post('/api/dbmanager/get/{table_id}', 'DBManagerController@get');
Route::post('/api/dbmanager/create/{table_id}', 'DBManagerController@create');
Route::post('/api/dbmanager/update/{table_id}', 'DBManagerController@update');
Route::post('/api/dbmanager/rollback/{table_id}', 'DBManagerController@rollback');
Route::post('/api/dbmanager/delete/{table_id}', 'DBManagerController@delete');
Route::get ('/api/dbmanager/history/{table_id}', 'DBManagerController@history');
Route::get ('/api/dbmanager/config/{table_id}', 'DBManagerController@config');
Route::get ('/api/dbmanager/grouplist/{table_id}', 'DBManagerController@grouplist');
Route::get ('/api/dbmanager/schema', 'DBManagerController@schema');
Route::post('/api/dbmanager/setting_update/{id}', 'DBManagerController@setting_update');
Route::get ('/api/user/search', 'UserController@search');
Route::post('/api/user/login', 'LoginController@login');
Route::get ('/api/user/islogin', 'LoginController@islogin');
Route::get ('/api/user/logout', 'LoginController@logout');
Route::post('/api/user/register', 'LoginController@register');
//Message
Route::match(['get', 'post'],'/fsapi/{key}', 'MessageApiController@Entrance');
// 页面
Route::get('/page/{id?}', 'TablePageController@page');
Route::get('/page/edit/{id}/{key}/{type?}', 'TablePageController@editData');
Route::match(['get', 'post'], '/jsonschema', 'TablePageController@jsonschema');
Route::get('/', 'MessageController@index');
Route::get('/manage/{key}', 'MessageController@message');
Route::match(['get', 'post'],'/message/{key}', 'MessageController@info');
Route::match(['get', 'post'], '/my/', 'TablePageController@my');
Route::get ('/api/dbmanager/enums/', 'SQLEnumController@getEnums');
Route::get ('/api/dbmanager/enums_search/', 'SQLEnumController@getEnumsByQuery');
Route::post('/api/dbmanager/enums_search/', 'SQLEnumController@getEnumsByQuery');
Route::match(['get', 'post'], '/uploader', 'TablePageController@uploader');
Route::get('/oss-upload', 'TablePageController@oss_upload');
});
Route::resource('batchapi', 'BatchapiController');
Route::group(['middleware' => 'webapi'], function () {
Route::match(['get', 'post'],'/webapi/{key}', 'WebApiController@Entrance');
});
\ No newline at end of file
<?php
namespace App\Jobs;
use Illuminate\Bus\Queueable;
abstract class Job
{
/*
|--------------------------------------------------------------------------
| Queueable Jobs
|--------------------------------------------------------------------------
|
| This job base class provides a central location to place any logic that
| is shared across all of your jobs. The trait included with the class
| provides access to the "onQueue" and "delay" queue helper methods.
|
*/
use Queueable;
}
<?php
namespace App\Jobs;
use App\Jobs\Job;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Facades\Redis;
class mouser extends Job implements ShouldQueue
{
use InteractsWithQueue, SerializesModels;
protected $info;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct($info)
{
//
$this->info=$info;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
$redis=Redis::connection();
$return=Handle_Mouser($this->info);
if(empty($return['sku'])){
$return['errcode']=1;
}else{
$return['errcode']=0;
}
$redis->hset('handle_mouser_log',time(),json_encode($return));
}
}
File mode changed
File mode changed
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}
<?php
namespace App\Providers;
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies = [
'App\Model' => 'App\Policies\ModelPolicy',
];
/**
* Register any application authentication / authorization services.
*
* @param \Illuminate\Contracts\Auth\Access\Gate $gate
* @return void
*/
public function boot(GateContract $gate)
{
$this->registerPolicies($gate);
//
}
}
<?php
namespace App\Providers;
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
'App\Events\SomeEvent' => [
'App\Listeners\EventListener',
],
];
/**
* Register any other events for your application.
*
* @param \Illuminate\Contracts\Events\Dispatcher $events
* @return void
*/
public function boot(DispatcherContract $events)
{
parent::boot($events);
//
}
}
<?php
namespace App\Providers;
use Illuminate\Routing\Router;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to the controller routes in your routes file.
*
* In addition, it is set as the URL generator's root namespace.
*
* @var string
*/
protected $namespace = 'App\Http\Controllers';
/**
* Define your route model bindings, pattern filters, etc.
*
* @param \Illuminate\Routing\Router $router
* @return void
*/
public function boot(Router $router)
{
//
parent::boot($router);
}
/**
* Define the routes for the application.
*
* @param \Illuminate\Routing\Router $router
* @return void
*/
public function map(Router $router)
{
$router->group(['namespace' => $this->namespace], function ($router) {
require app_path('Http/routes.php');
});
}
}
#!/usr/bin/env php
<?php
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
require __DIR__.'/bootstrap/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Artisan Application
|--------------------------------------------------------------------------
|
| When we run the console application, the current CLI command will be
| executed in this console and the response sent back to a terminal
| or another output device for the developers. Here goes nothing!
|
*/
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);
/*
|--------------------------------------------------------------------------
| Shutdown The Application
|--------------------------------------------------------------------------
|
| Once Artisan has finished running. We will fire off the shutdown events
| so that any final work may be done by the application before we shut
| down the process. This is the last thing to happen to the request.
|
*/
$kernel->terminate($input, $status);
exit($status);
<?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of Laravel, and is
| the IoC container for the system binding all of the various parts.
|
*/
$app = new Illuminate\Foundation\Application(
realpath(__DIR__.'/../')
);
/*
|--------------------------------------------------------------------------
| Bind Important Interfaces
|--------------------------------------------------------------------------
|
| Next, we need to bind some important interfaces into the container so
| we will be able to resolve them when needed. The kernels serve the
| incoming requests to this application from both the web and CLI.
|
*/
$app->singleton(
Illuminate\Contracts\Http\Kernel::class,
App\Http\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Console\Kernel::class,
App\Console\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
App\Exceptions\Handler::class
);
/*
|--------------------------------------------------------------------------
| Return The Application
|--------------------------------------------------------------------------
|
| This script returns the application instance. The instance is given to
| the calling script so we can separate the building of the instances
| from the actual running of the application and sending responses.
|
*/
return $app;
<?php
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
require __DIR__.'/../vendor/autoload.php';
require __DIR__.'/../app/Http/function.php';
/*
|--------------------------------------------------------------------------
| Include The Compiled Class File
|--------------------------------------------------------------------------
|
| To dramatically increase your application's performance, you may use a
| compiled class file which contains all of the classes commonly used
| by a request. The Artisan "optimize" is used to create this file.
|
*/
$compiledPath = __DIR__.'/cache/compiled.php';
if (file_exists($compiledPath)) {
require $compiledPath;
}
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"justinrainbow/json-schema": "~1.3"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"symfony/css-selector": "2.8.*|3.0.*",
"symfony/dom-crawler": "2.8.*|3.0.*"
},
"autoload": {
"classmap": [
"vendor/justinrainbow/json-schema/src/",
"database"
],
"psr-4": {
"App\\": "app/",
"JsonSchema\\": "vendor/justinrainbow/json-schema/src/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist"
}
}
This diff could not be displayed because it is too large.
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This may determine how you prefer to configure various
| services your application utilizes. Set this in your ".env" file.
|
*/
'env' => env('APP_ENV', 'production'),
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/
'debug' => env('APP_DEBUG', false),
/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks.
|
*/
'url' => 'http://localhost',
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/
'timezone' => 'Asia/Shanghai',
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
*/
'locale' => 'en',
/*
|--------------------------------------------------------------------------
| Application Fallback Locale
|--------------------------------------------------------------------------
|
| The fallback locale determines the locale to use when the current one
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
*/
'fallback_locale' => 'en',
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is used by the Illuminate encrypter service and should be set
| to a random, 32 character string, otherwise these encrypted strings
| will not be safe. Please do this before deploying an application!
|
*/
'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC',
/*
|--------------------------------------------------------------------------
| Logging Configuration
|--------------------------------------------------------------------------
|
| Here you may configure the log settings for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
|
| Available Settings: "single", "daily", "syslog", "errorlog"
|
*/
'log' => env('APP_LOG', 'single'),
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/
'providers' => [
/*
* Laravel Framework Service Providers...
*/
Illuminate\Auth\AuthServiceProvider::class,
Illuminate\Broadcasting\BroadcastServiceProvider::class,
Illuminate\Bus\BusServiceProvider::class,
Illuminate\Cache\CacheServiceProvider::class,
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
Illuminate\Cookie\CookieServiceProvider::class,
Illuminate\Database\DatabaseServiceProvider::class,
Illuminate\Encryption\EncryptionServiceProvider::class,
Illuminate\Filesystem\FilesystemServiceProvider::class,
Illuminate\Foundation\Providers\FoundationServiceProvider::class,
Illuminate\Hashing\HashServiceProvider::class,
Illuminate\Mail\MailServiceProvider::class,
Illuminate\Pagination\PaginationServiceProvider::class,
Illuminate\Pipeline\PipelineServiceProvider::class,
Illuminate\Queue\QueueServiceProvider::class,
Illuminate\Redis\RedisServiceProvider::class,
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
Illuminate\Session\SessionServiceProvider::class,
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
/*
* Application Service Providers...
*/
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
],
/*
|--------------------------------------------------------------------------
| Class Aliases
|--------------------------------------------------------------------------
|
| This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/
'aliases' => [
'App' => Illuminate\Support\Facades\App::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class,
'Cache' => Illuminate\Support\Facades\Cache::class,
'Config' => Illuminate\Support\Facades\Config::class,
'Cookie' => Illuminate\Support\Facades\Cookie::class,
'Crypt' => Illuminate\Support\Facades\Crypt::class,
'DB' => Illuminate\Support\Facades\DB::class,
'Eloquent' => Illuminate\Database\Eloquent\Model::class,
'Event' => Illuminate\Support\Facades\Event::class,
'File' => Illuminate\Support\Facades\File::class,
'Gate' => Illuminate\Support\Facades\Gate::class,
'Hash' => Illuminate\Support\Facades\Hash::class,
'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class,
'Password' => Illuminate\Support\Facades\Password::class,
'Queue' => Illuminate\Support\Facades\Queue::class,
'Redirect' => Illuminate\Support\Facades\Redirect::class,
'RedisDB' => Illuminate\Support\Facades\Redis::class,
'Request' => Illuminate\Support\Facades\Request::class,
'Response' => Illuminate\Support\Facades\Response::class,
'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
],
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| here which uses session storage and the Eloquent user provider.
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| Supported: "session", "token"
|
*/
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
],
],
/*
|--------------------------------------------------------------------------
| User Providers
|--------------------------------------------------------------------------
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| If you have multiple user tables or models you may configure multiple
| sources which represent each model / table. These sources may then
| be assigned to any extra authentication guards you have defined.
|
| Supported: "database", "eloquent"
|
*/
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
/*
|--------------------------------------------------------------------------
| Resetting Passwords
|--------------------------------------------------------------------------
|
| Here you may set the options for resetting passwords including the view
| that is your password reset e-mail. You may also set the name of the
| table that maintains all of the reset tokens for your application.
|
| You may specify multiple password reset configurations if you have more
| than one user table or model in the application and you want to have
| separate password reset settings based on the specific user types.
|
| The expire time is the number of minutes that the reset token should be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
*/
'passwords' => [
'users' => [
'provider' => 'users',
'email' => 'auth.emails.password',
'table' => 'password_resets',
'expire' => 60,
],
],
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an event needs to be broadcast. You may set this to
| any of the connections defined in the "connections" array below.
|
*/
'default' => env('BROADCAST_DRIVER', 'pusher'),
/*
|--------------------------------------------------------------------------
| Broadcast Connections
|--------------------------------------------------------------------------
|
| Here you may define all of the broadcast connections that will be used
| to broadcast events to other systems or over websockets. Samples of
| each available type of connection are provided inside this array.
|
*/
'connections' => [
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_KEY'),
'secret' => env('PUSHER_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
//
],
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
],
'log' => [
'driver' => 'log',
],
],
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache connection that gets used while
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
*/
'default' => env('CACHE_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| Cache Stores
|--------------------------------------------------------------------------
|
| Here you may define all of the cache "stores" for your application as
| well as their drivers. You may even define multiple stores for the
| same cache driver to group types of items stored in your caches.
|
*/
'stores' => [
'apc' => [
'driver' => 'apc',
],
'array' => [
'driver' => 'array',
],
'database' => [
'driver' => 'database',
'table' => 'cache',
'connection' => null,
],
'file' => [
'driver' => 'file',
'path' => storage_path('framework/cache'),
],
'memcached' => [
'driver' => 'memcached',
'servers' => [
[
'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100,
],
],
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
],
],
/*
|--------------------------------------------------------------------------
| Cache Key Prefix
|--------------------------------------------------------------------------
|
| When utilizing a RAM based store such as APC or Memcached, there might
| be other applications utilizing the same cache. So, we'll specify a
| value to get prefixed to all our keys so we can avoid collisions.
|
*/
'prefix' => 'laravel',
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Additional Compiled Classes
|--------------------------------------------------------------------------
|
| Here you may specify additional classes to include in the compiled file
| generated by the `artisan optimize` command. These should be classes
| that are included on basically every request into the application.
|
*/
'files' => [
//
],
/*
|--------------------------------------------------------------------------
| Compiled File Providers
|--------------------------------------------------------------------------
|
| Here you may list service providers which define a "compiles" function
| that returns additional files that should be compiled, providing an
| easy way to get common files from any packages you are utilizing.
|
*/
'providers' => [
//
],
];
<?php
return [
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
| stdClass object; however, you may desire to retrieve records in an
| array format for simplicity. Here you can tweak the fetch style.
|
*/
'fetch' => PDO::FETCH_CLASS,
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as your default connection for all database work. Of course
| you may use many connections at once using the Database library.
|
*/
'default' => env('DB_CONNECTION', 'mysql'),
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
| Here are each of the database connections setup for your application.
| Of course, examples of configuring each database platform that is
| supported by Laravel is shown below to make development simple.
|
|
| All database work in Laravel is done through the PHP PDO facilities
| so make sure you have the driver for your particular database of
| choice installed on your machine before you begin development.
|
*/
'connections' => [
'tableconfig' => [
'driver' => 'mysql',
'host' => env('DB_HOST_CMS', ''),
'database' => env('DB_DATABASE_CMS', ''),
'username' => env('DB_USERNAME_CMS', ''),
'password' => env('DB_PASSWORD_CMS', ''),
'port' => env('DB_PORT_CMS', 3306),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST_CMS', ''),
'database' => env('DB_DATABASE_CMS', ''),
'username' => env('DB_USERNAME_CMS', ''),
'password' => env('DB_PASSWORD_CMS', ''),
'port' => env('DB_PORT_CMS', 3306),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
'mouser' => [
'driver' => 'mysql',
'host' => env('DB_MOUSER_HOST', ''),
'database' => env('DB_MOUSER_DATABASE', ''),
'username' => env('DB_MOUSER_USERNAME', ''),
'password' => env('DB_MOUSER_PASSWORD', ''),
'port' => env('DB_MOUSER_PORT', 3306),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
'sqlite' => [
'driver' => 'sqlite',
'database' => database_path('database.sqlite'),
'prefix' => '',
],
'pgsql' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
],
'message' => [
'driver' => 'mysql',
'host' => env('DB_HOST', ''),
'database' => env('MESSAGE_DB_DATABASE', ''),
'username' => env('DB_USERNAME', ''),
'password' => env('DB_PASSWORD', ''),
'port' => env('DB_PORT', 3306),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
],
/*
|--------------------------------------------------------------------------
| Migration Repository Table
|--------------------------------------------------------------------------
|
| This table keeps track of all the migrations that have already run for
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run in the database.
|
*/
'migrations' => 'migrations',
/*
|--------------------------------------------------------------------------
| Redis Databases
|--------------------------------------------------------------------------
|
| Redis is an open source, fast, and advanced key-value store that also
| provides a richer set of commands than a typical key-value systems
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
*/
'redis' => [
'cluster' => false,
'default' => [
'host' => env('REDIS_HOST', ''),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
],
'api'=>[
'host' => env('API_REDIS_HOST', ''),
'password' => env('API_REDIS_PASSWORD', null),
'port' => env('API_REDIS_PORT', 6379),
'database' => 0,
]
],
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. A "local" driver, as well as a variety of cloud
| based drivers are available for your choosing. Just store away!
|
| Supported: "local", "ftp", "s3", "rackspace"
|
*/
'default' => 'local',
/*
|--------------------------------------------------------------------------
| Default Cloud Filesystem Disk
|--------------------------------------------------------------------------
|
| Many applications store files both locally and in the cloud. For this
| reason, you may specify a default "cloud" driver here. This driver
| will be bound as the Cloud disk implementation in the container.
|
*/
'cloud' => 's3',
/*
|--------------------------------------------------------------------------
| Filesystem Disks
|--------------------------------------------------------------------------
|
| Here you may configure as many filesystem "disks" as you wish, and you
| may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options.
|
*/
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'ftp' => [
'driver' => 'ftp',
'host' => 'ftp.example.com',
'username' => 'your-username',
'password' => 'your-password',
// Optional FTP Settings...
// 'port' => 21,
// 'root' => '',
// 'passive' => true,
// 'ssl' => true,
// 'timeout' => 30,
],
's3' => [
'driver' => 's3',
'key' => 'your-key',
'secret' => 'your-secret',
'region' => 'your-region',
'bucket' => 'your-bucket',
],
'rackspace' => [
'driver' => 'rackspace',
'username' => 'your-username',
'key' => 'your-key',
'container' => 'your-container',
'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/',
'region' => 'IAD',
'url_type' => 'publicURL',
],
],
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may specify which one you're using throughout
| your application here. By default, Laravel is setup for SMTP mail.
|
| Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "ses", "log"
|
*/
'driver' => env('MAIL_DRIVER', 'smtp'),
/*
|--------------------------------------------------------------------------
| SMTP Host Address
|--------------------------------------------------------------------------
|
| Here you may provide the host address of the SMTP server used by your
| applications. A default option is provided that is compatible with
| the Mailgun mail service which will provide reliable deliveries.
|
*/
'host' => env('MAIL_HOST', 'smtp.exmail.qq.com'),
/*
|--------------------------------------------------------------------------
| SMTP Host Port
|--------------------------------------------------------------------------
|
| This is the SMTP port used by your application to deliver e-mails to
| users of the application. Like the host we have set this value to
| stay compatible with the Mailgun e-mail application by default.
|
*/
'port' => env('MAIL_PORT', '25'),
/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all e-mails sent by your application to be sent from
| the same address. Here, you may specify a name and address that is
| used globally for all e-mails that are sent by your application.
|
*/
'from' => ['address' => env('MAIL_USERNAME', ''), 'name' => env('MAIL_FROM', '系统管理员')],
/*
|--------------------------------------------------------------------------
| E-Mail Encryption Protocol
|--------------------------------------------------------------------------
|
| Here you may specify the encryption protocol that should be used when
| the application send e-mail messages. A sensible default using the
| transport layer security protocol should provide great security.
|
*/
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
/*
|--------------------------------------------------------------------------
| SMTP Server Username
|--------------------------------------------------------------------------
|
| If your SMTP server requires a username for authentication, you should
| set it here. This will get used to authenticate with your server on
| connection. You may also set the "password" value below this one.
|
*/
'username' => env('MAIL_USERNAME', ''),
/*
|--------------------------------------------------------------------------
| SMTP Server Password
|--------------------------------------------------------------------------
|
| Here you may set the password required by your SMTP server to send out
| messages from your application. This will be given to the server on
| connection so that the application will be able to send messages.
|
*/
'password' => env('MAIL_PASSWORD', ''),
/*
|--------------------------------------------------------------------------
| Sendmail System Path
|--------------------------------------------------------------------------
|
| When using the "sendmail" driver to send e-mails, we will need to know
| the path to where Sendmail lives on this server. A default path has
| been provided here, which will work well on most of your systems.
|
*/
'sendmail' => '/usr/sbin/sendmail -bs',
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Driver
|--------------------------------------------------------------------------
|
| The Laravel queue API supports a variety of back-ends via an unified
| API, giving you convenient access to each back-end using the same
| syntax for each one. Here you may set the default queue driver.
|
| Supported: "null", "sync", "database", "beanstalkd",
| "sqs", "redis"
|
*/
'default' => env('QUEUE_DRIVER', 'sync'),
/*
|--------------------------------------------------------------------------
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection information for each server that
| is used by your application. A default configuration has been added
| for each back-end shipped with Laravel. You are free to add more.
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'expire' => 60,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'ttr' => 60,
],
'sqs' => [
'driver' => 'sqs',
'key' => 'your-public-key',
'secret' => 'your-secret-key',
'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
'queue' => 'your-queue-name',
'region' => 'us-east-1',
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => 'mouser',
'expire' => 60,
],
],
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control which database and table are used to store the jobs that
| have failed. You may change them to any database / table you wish.
|
*/
'failed' => [
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
],
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, Mandrill, and others. This file provides a sane
| default location for this type of information, allowing packages
| to have a conventional place to find your various credentials.
|
*/
'mailgun' => [
'domain' => env('MAILGUN_DOMAIN'),
'secret' => env('MAILGUN_SECRET'),
],
'mandrill' => [
'secret' => env('MANDRILL_SECRET'),
],
'ses' => [
'key' => env('SES_KEY'),
'secret' => env('SES_SECRET'),
'region' => 'us-east-1',
],
'stripe' => [
'model' => App\User::class,
'key' => env('STRIPE_KEY'),
'secret' => env('STRIPE_SECRET'),
],
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other wonderful drivers provided here.
|
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "array"
|
*/
'driver' => env('SESSION_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
'lifetime' => 120,
'expire_on_close' => false,
/*
|--------------------------------------------------------------------------
| Session Encryption
|--------------------------------------------------------------------------
|
| This option allows you to easily specify that all of your session data
| should be encrypted before it is stored. All encryption will be run
| automatically by Laravel and you can use the Session like normal.
|
*/
'encrypt' => false,
/*
|--------------------------------------------------------------------------
| Session File Location
|--------------------------------------------------------------------------
|
| When using the native session driver, we need a location where session
| files may be stored. A default has been set for you but a different
| location may be specified. This is only needed for file sessions.
|
*/
'files' => storage_path('framework/sessions'),
/*
|--------------------------------------------------------------------------
| Session Database Connection
|--------------------------------------------------------------------------
|
| When using the "database" or "redis" session drivers, you may specify a
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
|
*/
'connection' => null,
/*
|--------------------------------------------------------------------------
| Session Database Table
|--------------------------------------------------------------------------
|
| When using the "database" session driver, you may specify the table we
| should use to manage the sessions. Of course, a sensible default is
| provided for you; however, you are free to change this as needed.
|
*/
'table' => 'sessions',
/*
|--------------------------------------------------------------------------
| Session Sweeping Lottery
|--------------------------------------------------------------------------
|
| Some session drivers must manually sweep their storage location to get
| rid of old sessions from storage. Here are the chances that it will
| happen on a given request. By default, the odds are 2 out of 100.
|
*/
'lottery' => [2, 100],
/*
|--------------------------------------------------------------------------
| Session Cookie Name
|--------------------------------------------------------------------------
|
| Here you may change the name of the cookie used to identify a session
| instance by ID. The name specified here will get used every time a
| new session cookie is created by the framework for every driver.
|
*/
'cookie' => 'laravel_session',
/*
|--------------------------------------------------------------------------
| Session Cookie Path
|--------------------------------------------------------------------------
|
| The session cookie path determines the path for which the cookie will
| be regarded as available. Typically, this will be the root path of
| your application but you are free to change this when necessary.
|
*/
'path' => '/',
/*
|--------------------------------------------------------------------------
| Session Cookie Domain
|--------------------------------------------------------------------------
|
| Here you may change the domain of the cookie used to identify a session
| in your application. This will determine which domains the cookie is
| available to in your application. A sensible default has been set.
|
*/
'domain' => '.liexin.com',
/*
|--------------------------------------------------------------------------
| HTTPS Only Cookies
|--------------------------------------------------------------------------
|
| By setting this option to true, session cookies will only be sent back
| to the server if the browser has a HTTPS connection. This will keep
| the cookie from being sent to you if it can not be done securely.
|
*/
'secure' => false,
];
<?php
return [
/*
|--------------------------------------------------------------------------
| View Storage Paths
|--------------------------------------------------------------------------
|
| Most templating systems load templates from disk. Here you may specify
| an array of paths that should be checked for your views. Of course
| the usual Laravel view path has already been registered for you.
|
*/
'paths' => [
realpath(base_path('resources/views')),
],
/*
|--------------------------------------------------------------------------
| Compiled View Path
|--------------------------------------------------------------------------
|
| This option determines where all the compiled Blade templates will be
| stored for your application. Typically, this is within the storage
| directory. However, as usual, you are free to change this value.
|
*/
'compiled' => realpath(storage_path('framework/views')),
];
<?php
return [
'admin' => ['yyc@ichunt.com'],
'login' => [
'login' => 'http://' . env('LOGIN_DOMAIN', '') . '/login',
'logout'=> 'http://' . env('LOGIN_DOMAIN', '') . '/logout',
'check' => 'http://' . env('LOGIN_DOMAIN', '') . '/api/checklogin',
'search'=> 'http://' . env('LOGIN_DOMAIN', '') . '/api/search',
],
'data' => env('DATA_DOMAIN', 'message.liexin.com'),
"domain" => "liexin.com"
];
/*
Navicat Premium Data Transfer
Source Server : dev-192.168.202.90
Source Server Type : MySQL
Source Server Version : 50536
Source Host : 192.168.202.90
Source Database : data_manager
Target Server Type : MySQL
Target Server Version : 50536
File Encoding : utf-8
Date: 07/04/2017 16:55:29 PM
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `config`
-- ----------------------------
DROP TABLE IF EXISTS `config`;
CREATE TABLE `config` (
`config_id` int(11) NOT NULL DEFAULT '0' COMMENT '系统配置id',
`config_title` varchar(128) NOT NULL DEFAULT '' COMMENT '系统配置项的标题',
`config_schema` text NOT NULL COMMENT '系统配置的Json schema定义',
`config_data` text NOT NULL COMMENT '生成的配置',
`creater` varchar(64) NOT NULL DEFAULT '' COMMENT '创建者',
`writers` varchar(2048) DEFAULT NULL,
`readers` varchar(2048) DEFAULT NULL,
`ctime` datetime NOT NULL COMMENT '创建时间',
`mtime` datetime NOT NULL COMMENT '修改时间',
`last_author` varchar(64) NOT NULL DEFAULT '' COMMENT '最后一次修改人',
PRIMARY KEY (`config_id`),
KEY `creater_index` (`creater`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `favorites`
-- ----------------------------
DROP TABLE IF EXISTS `favorites`;
CREATE TABLE `favorites` (
`favorite_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '收藏id',
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
`data_type` int(11) NOT NULL DEFAULT '0' COMMENT '类型: 1 数据表, 2 配置项',
`data_id` int(11) NOT NULL DEFAULT '0' COMMENT '收场的数据id',
`ctime` datetime NOT NULL COMMENT '创建时间',
`data_args` varchar(1024) NOT NULL DEFAULT '',
PRIMARY KEY (`favorite_id`),
UNIQUE KEY `user_id` (`user_id`,`data_type`,`data_id`)
) ENGINE=InnoDB AUTO_INCREMENT=100012 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `table_op_history`
-- ----------------------------
DROP TABLE IF EXISTS `table_op_history`;
CREATE TABLE `table_op_history` (
`table_id` int(11) NOT NULL DEFAULT '0' COMMENT '操作的表id',
`table_key` varchar(128) NOT NULL DEFAULT '' COMMENT 'key的值, 主键字段排序后以:分隔拼接',
`optype` tinyint(4) NOT NULL DEFAULT '0' COMMENT '操作类型: 1 INSERT; 2 UPDATE; 3 DELETE',
`author` varchar(64) NOT NULL DEFAULT '' COMMENT '操作者帐号',
`mtime` datetime NOT NULL COMMENT '修改时间',
`new_content` mediumblob NOT NULL COMMENT '修改后的值; Json结构保存; DELETE 为空',
`old_content` mediumblob NOT NULL COMMENT '修改前的值; Json结构保存; INSERT 为空',
KEY `table_id` (`table_id`,`table_key`),
KEY `author_index` (`author`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `tableconfig`
-- ----------------------------
DROP TABLE IF EXISTS `tableconfig`;
CREATE TABLE `tableconfig` (
`table_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '配置表id, 自增值',
`title` varchar(128) NOT NULL DEFAULT '' COMMENT '标题',
`description` varchar(1024) NOT NULL DEFAULT '' COMMENT '配置描述',
`dbname` varchar(64) NOT NULL DEFAULT '' COMMENT '数据库名',
`tablename` varchar(64) NOT NULL DEFAULT '' COMMENT '数据表名',
`passwd` varchar(64) NOT NULL DEFAULT '' COMMENT '数据库用户密码',
`username` varchar(64) NOT NULL DEFAULT '' COMMENT '数据库用户名',
`host_type` int(11) NOT NULL DEFAULT '0' COMMENT 'host配置类型: 0 ip地址; 1 DNS ...',
`port` int(11) NOT NULL DEFAULT '0' COMMENT '数据库端口',
`host` varchar(128) NOT NULL DEFAULT '' COMMENT '数据库地址',
`fields` text NOT NULL COMMENT '数据库字段配置, Json结构: { "name":{"name":"","title":"","order":1,"def":"","desc":"","ishide":false,"islist":false,"need":false,"dict":[{"key":"", "name":""}],"type":1}}',
`keyfield` varchar(128) NOT NULL DEFAULT '' COMMENT '数据表的主键字段,或者联合主键字段, 字符串数组["xx","xxx"], 如果不设置不能做删除修改操作',
`sortfield` varchar(128) NOT NULL DEFAULT '' COMMENT '默认排序的字段列表: ["xxx"]',
`groupfield` varchar(128) NOT NULL DEFAULT '' COMMENT '分组字段字段列表: ["xxx"]',
`creater` varchar(64) NOT NULL DEFAULT '' COMMENT '创建者',
`writers` varchar(256) NOT NULL DEFAULT '' COMMENT '具有写权限的用户列表',
`readers` varchar(2048) DEFAULT NULL,
`ctime` datetime NOT NULL COMMENT '创建时间',
`mtime` datetime NOT NULL COMMENT '修改时间',
`last_author` varchar(64) NOT NULL DEFAULT '' COMMENT '最后一次修改人',
`adv_config` text NOT NULL,
PRIMARY KEY (`table_id`),
KEY `creater_index` (`creater`)
) ENGINE=InnoDB AUTO_INCREMENT=1034 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Triggers structure for table config
-- ----------------------------
DROP TRIGGER IF EXISTS `config_berfor_insert`;
delimiter ;;
CREATE TRIGGER `config_berfor_insert` BEFORE INSERT ON `config` FOR EACH ROW SET NEW.ctime = NOW(), NEW.mtime = NOW()
;;
delimiter ;
delimiter ;;
-- ----------------------------
-- Triggers structure for table tableconfig
-- ----------------------------
;;
delimiter ;
DROP TRIGGER IF EXISTS `tableconfig_berfor_insert`;
delimiter ;;
CREATE TRIGGER `tableconfig_berfor_insert` BEFORE INSERT ON `tableconfig` FOR EACH ROW SET NEW.ctime = NOW(), NEW.mtime = NOW();
;;
delimiter ;
SET FOREIGN_KEY_CHECKS = 1;
<?php
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding your
| database. Just tell the factory how a default model should look.
|
*/
$factory->define(App\User::class, function (Faker\Generator $faker) {
return [
'name' => $faker->name,
'email' => $faker->email,
'password' => bcrypt(str_random(10)),
'remember_token' => str_random(10),
];
});
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password', 60);
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePasswordResetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('password_resets', function (Blueprint $table) {
$table->string('email')->index();
$table->string('token')->index();
$table->timestamp('created_at');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('password_resets');
}
}
File mode changed
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// $this->call(UserTableSeeder::class);
}
}
No preview for this file type
No preview for this file type
APP_ENV=production
APP_DEBUG=false
APP_KEY=fasyzIUunp4HcLBudUmkMnDc5H4Z4rNW
DB_HOST=192.168.1.232
DB_DATABASE=ichuntcms
DB_USERNAME=root
DB_PASSWORD=123456
DB_PORT=3306
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=192.168.1.237
REDIS_PASSWORD=icDb29mLy2s
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST='smtp.exmail.qq.com'
MAIL_PORT=25
MAIL_FROM='系统管理员'
MAIL_USERNAME='admin-it@teshehui.com'
MAIL_PASSWORD='Admin$_it$_tsh$_k031iQk0'
MAIL_ENCRYPTION=tls
ADMIN=liuzhiyong@teshehui.com
LOGIN_DOMAIN='user.liexin.com'
APP_ENV=production
APP_DEBUG=false
APP_KEY=fasyzIUunp4HcLBudUmkMnDc5H4Z4rNW
DB_HOST=rm-bp11l231nju247449.mysql.rds.aliyuncs.com
DB_DATABASE=data_manager
DB_USERNAME=data_manager
DB_PASSWORD=6eIwlLWO
DB_PORT=3306
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=291e4456d61b4b95.redis.rds.aliyuncs.com
REDIS_PASSWORD=oVFhkU1d
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST='smtp.exmail.qq.com'
MAIL_PORT=25
MAIL_FROM='系统管理员'
MAIL_USERNAME='admin-it@teshehui.com'
MAIL_PASSWORD='Admin$_it$_tsh$_k031iQk0'
MAIL_ENCRYPTION=tls
ADMIN=liuzhiyong@teshehui.com
LOGIN_DOMAIN='admin.liexin.com'
APP_ENV=production
APP_DEBUG=false
APP_KEY=fasyzIUunp4HcLBudUmkMnDc5H4Z4rNW
DB_HOST=192.168.202.90
DB_DATABASE=data_manager
DB_USERNAME=dbuser
DB_PASSWORD=6bySSZhM
DB_PORT=3306
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=192.168.202.97
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST='smtp.exmail.qq.com'
MAIL_PORT=25
MAIL_FROM='系统管理员'
MAIL_USERNAME='admin-it@teshehui.com'
MAIL_PASSWORD='Admin$_it$_tsh$_k031iQk0'
MAIL_ENCRYPTION=tls
ADMIN=liuzhiyong@teshehui.com
LOGIN_DOMAIN='oalogin.teshehui.com'
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
|
*/
elixir(function(mix) {
mix.sass('app.scss');
});
{
"private": true,
"devDependencies": {
"gulp": "^3.8.8"
},
"dependencies": {
"laravel-elixir": "^4.0.0",
"bootstrap-sass": "^3.0.0"
}
}
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">app/</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
</php>
</phpunit>
This diff could not be displayed because it is too large.
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(/fonts/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTa-j2U0lmluP9RWlSytm3ho.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(/fonts/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTZX5f-9o1vgP2EXwfjgl7AY.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(/fonts/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTRWV49_lSm1NYrwo-zkhivY.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(/fonts/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTaaRobkAwv3vxw3jMhVENGA.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(/fonts/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTf8zf_FOSsgRmwsS7Aa9k2w.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(/fonts/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTT0LW-43aMEzIO6XUTLjad8.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(/fonts/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTegdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(/fonts/opensans/v13/K88pR3goAWT7BTt32Z01mxJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(/fonts/opensans/v13/RjgO7rYTmqiVp7vzi-Q5URJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(/fonts/opensans/v13/LWCjsQkB6EMdfHrEVqA1KRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(/fonts/opensans/v13/xozscpT2726on7jbcb_pAhJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(/fonts/opensans/v13/59ZRklaO5bWGqF5A9baEERJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(/fonts/opensans/v13/u-WUoqrET9fUeobQW7jkRRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(/fonts/opensans/v13/cJZKeOuBrn4kERxqtaUH3VtXRa8TVwTICgirnJhmVJw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(/fonts/opensans/v13/MTP_ySUJH_bn48VBG8sNSq-j2U0lmluP9RWlSytm3ho.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(/fonts/opensans/v13/MTP_ySUJH_bn48VBG8sNSpX5f-9o1vgP2EXwfjgl7AY.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(/fonts/opensans/v13/MTP_ySUJH_bn48VBG8sNShWV49_lSm1NYrwo-zkhivY.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(/fonts/opensans/v13/MTP_ySUJH_bn48VBG8sNSqaRobkAwv3vxw3jMhVENGA.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(/fonts/opensans/v13/MTP_ySUJH_bn48VBG8sNSv8zf_FOSsgRmwsS7Aa9k2w.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(/fonts/opensans/v13/MTP_ySUJH_bn48VBG8sNSj0LW-43aMEzIO6XUTLjad8.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(/fonts/opensans/v13/MTP_ySUJH_bn48VBG8sNSugdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(/fonts/opensans/v13/k3k702ZOKiLJc3WVjuplzK-j2U0lmluP9RWlSytm3ho.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(/fonts/opensans/v13/k3k702ZOKiLJc3WVjuplzJX5f-9o1vgP2EXwfjgl7AY.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(/fonts/opensans/v13/k3k702ZOKiLJc3WVjuplzBWV49_lSm1NYrwo-zkhivY.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(/fonts/opensans/v13/k3k702ZOKiLJc3WVjuplzKaRobkAwv3vxw3jMhVENGA.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(/fonts/opensans/v13/k3k702ZOKiLJc3WVjuplzP8zf_FOSsgRmwsS7Aa9k2w.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(/fonts/opensans/v13/k3k702ZOKiLJc3WVjuplzD0LW-43aMEzIO6XUTLjad8.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(/fonts/opensans/v13/k3k702ZOKiLJc3WVjuplzOgdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* cyrillic-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: local('Roboto Light'), local('Roboto-Light'), url(/fonts/roboto/v15/0eC6fl06luXEYWpBSJvXCBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: local('Roboto Light'), local('Roboto-Light'), url(/fonts/roboto/v15/Fl4y0QdOxyyTHEGMXX8kcRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: local('Roboto Light'), local('Roboto-Light'), url(/fonts/roboto/v15/-L14Jk06m6pUHB-5mXQQnRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: local('Roboto Light'), local('Roboto-Light'), url(/fonts/roboto/v15/I3S1wsgSg9YCurV6PUkTORJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: local('Roboto Light'), local('Roboto-Light'), url(/fonts/roboto/v15/NYDWBdD4gIq26G5XYbHsFBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: local('Roboto Light'), local('Roboto-Light'), url(/fonts/roboto/v15/Pru33qjShpZSmG3z6VYwnRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: local('Roboto Light'), local('Roboto-Light'), url(/fonts/roboto/v15/Hgo13k-tfSpn0qi1SFdUfVtXRa8TVwTICgirnJhmVJw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* cyrillic-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(/fonts/roboto/v15/ek4gzZ-GeXAPcSbHtCeQI_esZW2xOQ-xsNqO47m55DA.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(/fonts/roboto/v15/mErvLBYg_cXG3rLvUsKT_fesZW2xOQ-xsNqO47m55DA.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(/fonts/roboto/v15/-2n2p-_Y08sg57CNWQfKNvesZW2xOQ-xsNqO47m55DA.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(/fonts/roboto/v15/u0TOpm082MNkS5K0Q4rhqvesZW2xOQ-xsNqO47m55DA.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(/fonts/roboto/v15/NdF9MtnOpLzo-noMoG0miPesZW2xOQ-xsNqO47m55DA.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(/fonts/roboto/v15/Fcx7Wwv8OzT71A3E1XOAjvesZW2xOQ-xsNqO47m55DA.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(/fonts/roboto/v15/CWB0XYA8bzo0kSThX0UTuA.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* cyrillic-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: local('Roboto Medium'), local('Roboto-Medium'), url(/fonts/roboto/v15/ZLqKeelYbATG60EpZBSDyxJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: local('Roboto Medium'), local('Roboto-Medium'), url(/fonts/roboto/v15/oHi30kwQWvpCWqAhzHcCSBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: local('Roboto Medium'), local('Roboto-Medium'), url(/fonts/roboto/v15/rGvHdJnr2l75qb0YND9NyBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: local('Roboto Medium'), local('Roboto-Medium'), url(/fonts/roboto/v15/mx9Uck6uB63VIKFYnEMXrRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: local('Roboto Medium'), local('Roboto-Medium'), url(/fonts/roboto/v15/mbmhprMH69Zi6eEPBYVFhRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: local('Roboto Medium'), local('Roboto-Medium'), url(/fonts/roboto/v15/oOeFwZNlrTefzLYmlVV1UBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: local('Roboto Medium'), local('Roboto-Medium'), url(/fonts/roboto/v15/RxZJdnzeo3R5zSexge8UUVtXRa8TVwTICgirnJhmVJw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* cyrillic-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: local('Roboto Bold'), local('Roboto-Bold'), url(/fonts/roboto/v15/77FXFjRbGzN4aCrSFhlh3hJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: local('Roboto Bold'), local('Roboto-Bold'), url(/fonts/roboto/v15/isZ-wbCXNKAbnjo6_TwHThJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: local('Roboto Bold'), local('Roboto-Bold'), url(/fonts/roboto/v15/UX6i4JxQDm3fVTc1CPuwqhJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: local('Roboto Bold'), local('Roboto-Bold'), url(/fonts/roboto/v15/jSN2CGVDbcVyCnfJfjSdfBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: local('Roboto Bold'), local('Roboto-Bold'), url(/fonts/roboto/v15/PwZc-YbIL414wB9rB1IAPRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: local('Roboto Bold'), local('Roboto-Bold'), url(/fonts/roboto/v15/97uahxiqZRoncBaCEI3aWxJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: local('Roboto Bold'), local('Roboto-Bold'), url(/fonts/roboto/v15/d-6IYplOFocCacKzxwXSOFtXRa8TVwTICgirnJhmVJw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
.btn{
color: #fff;
background-color: #337ab7;
border-color: #2e6da4;
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
text-decoration: none;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
a.btn:hover{
background-color: #3366b7;
}
.progress{
margin-top:2px;
width: 200px;
height: 14px;
margin-bottom: 10px;
overflow: hidden;
background-color: #f5f5f5;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}
.progress-bar{
background-color: rgb(92, 184, 92);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.14902) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.14902) 50%, rgba(255, 255, 255, 0.14902) 75%, transparent 75%, transparent);
background-size: 40px 40px;
box-shadow: rgba(0, 0, 0, 0.14902) 0px -1px 0px 0px inset;
box-sizing: border-box;
color: rgb(255, 255, 255);
display: block;
float: left;
font-size: 12px;
height: 20px;
line-height: 20px;
text-align: center;
transition-delay: 0s;
transition-duration: 0.6s;
transition-property: width;
transition-timing-function: ease;
width: 266.188px;
}
\ No newline at end of file
.checkbox {
padding-left: 20px;
}
.checkbox label {
display: inline-block;
vertical-align: middle;
position: relative;
padding-left: 5px;
}
.checkbox label::before {
content: "";
display: inline-block;
position: absolute;
width: 17px;
height: 17px;
left: 0;
margin-left: -20px;
border: 1px solid #cccccc;
border-radius: 3px;
background-color: #fff;
-webkit-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
-o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
}
.checkbox label::after {
display: inline-block;
position: absolute;
width: 16px;
height: 16px;
left: 0;
top: 0;
margin-left: -20px;
padding-left: 3px;
padding-top: 1px;
font-size: 11px;
color: #555555;
}
.checkbox input[type="checkbox"],
.checkbox input[type="radio"] {
opacity: 0;
z-index: 1;
}
.checkbox input[type="checkbox"]:focus + label::before,
.checkbox input[type="radio"]:focus + label::before {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
.checkbox input[type="checkbox"]:checked + label::after,
.checkbox input[type="radio"]:checked + label::after {
font-family: "FontAwesome";
content: "\f00c";
}
.checkbox input[type="checkbox"]:disabled + label,
.checkbox input[type="radio"]:disabled + label {
opacity: 0.65;
}
.checkbox input[type="checkbox"]:disabled + label::before,
.checkbox input[type="radio"]:disabled + label::before {
background-color: #eeeeee;
cursor: not-allowed;
}
.checkbox.checkbox-circle label::before {
border-radius: 50%;
}
.checkbox.checkbox-inline {
margin-top: 0;
}
.checkbox-primary input[type="checkbox"]:checked + label::before,
.checkbox-primary input[type="radio"]:checked + label::before {
background-color: #337ab7;
border-color: #337ab7;
}
.checkbox-primary input[type="checkbox"]:checked + label::after,
.checkbox-primary input[type="radio"]:checked + label::after {
color: #fff;
}
.checkbox-danger input[type="checkbox"]:checked + label::before,
.checkbox-danger input[type="radio"]:checked + label::before {
background-color: #d9534f;
border-color: #d9534f;
}
.checkbox-danger input[type="checkbox"]:checked + label::after,
.checkbox-danger input[type="radio"]:checked + label::after {
color: #fff;
}
.checkbox-info input[type="checkbox"]:checked + label::before,
.checkbox-info input[type="radio"]:checked + label::before {
background-color: #5bc0de;
border-color: #5bc0de;
}
.checkbox-info input[type="checkbox"]:checked + label::after,
.checkbox-info input[type="radio"]:checked + label::after {
color: #fff;
}
.checkbox-warning input[type="checkbox"]:checked + label::before,
.checkbox-warning input[type="radio"]:checked + label::before {
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.checkbox-warning input[type="checkbox"]:checked + label::after,
.checkbox-warning input[type="radio"]:checked + label::after {
color: #fff;
}
.checkbox-success input[type="checkbox"]:checked + label::before,
.checkbox-success input[type="radio"]:checked + label::before {
background-color: #5cb85c;
border-color: #5cb85c;
}
.checkbox-success input[type="checkbox"]:checked + label::after,
.checkbox-success input[type="radio"]:checked + label::after {
color: #fff;
}
.radio {
padding-left: 20px;
}
.radio label {
display: inline-block;
vertical-align: middle;
position: relative;
padding-left: 5px;
}
.radio label::before {
content: "";
display: inline-block;
position: absolute;
width: 17px;
height: 17px;
left: 0;
margin-left: -20px;
border: 1px solid #cccccc;
border-radius: 50%;
background-color: #fff;
-webkit-transition: border 0.15s ease-in-out;
-o-transition: border 0.15s ease-in-out;
transition: border 0.15s ease-in-out;
}
.radio label::after {
display: inline-block;
position: absolute;
content: " ";
width: 11px;
height: 11px;
left: 3px;
top: 3px;
margin-left: -20px;
border-radius: 50%;
background-color: #555555;
-webkit-transform: scale(0, 0);
-ms-transform: scale(0, 0);
-o-transform: scale(0, 0);
transform: scale(0, 0);
-webkit-transition: -webkit-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
-moz-transition: -moz-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
-o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
}
.radio input[type="radio"] {
opacity: 0;
z-index: 1;
}
.radio input[type="radio"]:focus + label::before {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
.radio input[type="radio"]:checked + label::after {
-webkit-transform: scale(1, 1);
-ms-transform: scale(1, 1);
-o-transform: scale(1, 1);
transform: scale(1, 1);
}
.radio input[type="radio"]:disabled + label {
opacity: 0.65;
}
.radio input[type="radio"]:disabled + label::before {
cursor: not-allowed;
}
.radio.radio-inline {
margin-top: 0;
}
.radio-primary input[type="radio"] + label::after {
background-color: #337ab7;
}
.radio-primary input[type="radio"]:checked + label::before {
border-color: #337ab7;
}
.radio-primary input[type="radio"]:checked + label::after {
background-color: #337ab7;
}
.radio-danger input[type="radio"] + label::after {
background-color: #d9534f;
}
.radio-danger input[type="radio"]:checked + label::before {
border-color: #d9534f;
}
.radio-danger input[type="radio"]:checked + label::after {
background-color: #d9534f;
}
.radio-info input[type="radio"] + label::after {
background-color: #5bc0de;
}
.radio-info input[type="radio"]:checked + label::before {
border-color: #5bc0de;
}
.radio-info input[type="radio"]:checked + label::after {
background-color: #5bc0de;
}
.radio-warning input[type="radio"] + label::after {
background-color: #f0ad4e;
}
.radio-warning input[type="radio"]:checked + label::before {
border-color: #f0ad4e;
}
.radio-warning input[type="radio"]:checked + label::after {
background-color: #f0ad4e;
}
.radio-success input[type="radio"] + label::after {
background-color: #5cb85c;
}
.radio-success input[type="radio"]:checked + label::before {
border-color: #5cb85c;
}
.radio-success input[type="radio"]:checked + label::after {
background-color: #5cb85c;
}
input[type="checkbox"].styled:checked + label:after,
input[type="radio"].styled:checked + label:after {
font-family: 'FontAwesome';
content: "\f00c";
}
input[type="checkbox"] .styled:checked + label::before,
input[type="radio"] .styled:checked + label::before {
color: #fff;
}
input[type="checkbox"] .styled:checked + label::after,
input[type="radio"] .styled:checked + label::after {
color: #fff;
}
@charset "UTF-8";.blueimp-gallery,.blueimp-gallery>.slides>.slide>.slide-content{position:absolute;top:0;right:0;bottom:0;left:0;-moz-backface-visibility:hidden}.blueimp-gallery>.slides>.slide>.slide-content{margin:auto;width:auto;height:auto;max-width:100%;max-height:100%;opacity:1}.blueimp-gallery{position:fixed;z-index:999999;overflow:hidden;background:#000;background:rgba(0,0,0,.9);opacity:0;display:none;direction:ltr;-ms-touch-action:none;touch-action:none}.blueimp-gallery-carousel{position:relative;z-index:auto;margin:1em auto;padding-bottom:56.25%;box-shadow:0 0 10px #000;-ms-touch-action:pan-y;touch-action:pan-y}.blueimp-gallery-display{display:block;opacity:1}.blueimp-gallery>.slides{position:relative;height:100%;overflow:hidden}.blueimp-gallery-carousel>.slides{position:absolute}.blueimp-gallery>.slides>.slide{position:relative;float:left;height:100%;text-align:center;-webkit-transition-timing-function:cubic-bezier(0.645,.045,.355,1);-moz-transition-timing-function:cubic-bezier(0.645,.045,.355,1);-ms-transition-timing-function:cubic-bezier(0.645,.045,.355,1);-o-transition-timing-function:cubic-bezier(0.645,.045,.355,1);transition-timing-function:cubic-bezier(0.645,.045,.355,1)}.blueimp-gallery,.blueimp-gallery>.slides>.slide>.slide-content{-webkit-transition:opacity .5s linear;-moz-transition:opacity .5s linear;-ms-transition:opacity .5s linear;-o-transition:opacity .5s linear;transition:opacity .5s linear}.blueimp-gallery>.slides>.slide-loading{background:url(../img/loading.gif) center no-repeat;background-size:64px 64px}.blueimp-gallery>.slides>.slide-loading>.slide-content{opacity:0}.blueimp-gallery>.slides>.slide-error{background:url(../img/error.png) center no-repeat}.blueimp-gallery>.slides>.slide-error>.slide-content{display:none}.blueimp-gallery>.prev,.blueimp-gallery>.next{position:absolute;top:50%;left:15px;width:40px;height:40px;margin-top:-23px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:60px;font-weight:100;line-height:30px;color:#fff;text-decoration:none;text-shadow:0 0 2px #000;text-align:center;background:#222;background:rgba(0,0,0,.5);-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;border:3px solid #fff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:.5;cursor:pointer;display:none}.blueimp-gallery>.next{left:auto;right:15px}.blueimp-gallery>.close,.blueimp-gallery>.title{position:absolute;top:15px;left:15px;margin:0 40px 0 0;font-size:20px;line-height:30px;color:#fff;text-shadow:0 0 2px #000;opacity:.8;display:none}.blueimp-gallery>.close{padding:15px;right:15px;left:auto;margin:-15px;font-size:30px;text-decoration:none;cursor:pointer}.blueimp-gallery>.play-pause{position:absolute;right:15px;bottom:15px;width:15px;height:15px;background:url(../img/play-pause.png) 0 0 no-repeat;cursor:pointer;opacity:.5;display:none}.blueimp-gallery-playing>.play-pause{background-position:-15px 0}.blueimp-gallery>.prev:hover,.blueimp-gallery>.next:hover,.blueimp-gallery>.close:hover,.blueimp-gallery>.title:hover,.blueimp-gallery>.play-pause:hover{color:#fff;opacity:1}.blueimp-gallery-controls>.prev,.blueimp-gallery-controls>.next,.blueimp-gallery-controls>.close,.blueimp-gallery-controls>.title,.blueimp-gallery-controls>.play-pause{display:block;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0)}.blueimp-gallery-single>.prev,.blueimp-gallery-left>.prev,.blueimp-gallery-single>.next,.blueimp-gallery-right>.next,.blueimp-gallery-single>.play-pause{display:none}.blueimp-gallery>.slides>.slide>.slide-content,.blueimp-gallery>.prev,.blueimp-gallery>.next,.blueimp-gallery>.close,.blueimp-gallery>.play-pause{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}body:last-child .blueimp-gallery>.slides>.slide-error{background-image:url(../img/error.svg)}body:last-child .blueimp-gallery>.play-pause{width:20px;height:20px;background-size:40px 20px;background-image:url(../img/play-pause.svg)}body:last-child .blueimp-gallery-playing>.play-pause{background-position:-20px 0}*+html .blueimp-gallery>.slides>.slide{min-height:300px}*+html .blueimp-gallery>.slides>.slide>.slide-content{position:relative}@charset "UTF-8";.blueimp-gallery>.indicator{position:absolute;top:auto;right:15px;bottom:15px;left:15px;margin:0 40px;padding:0;list-style:none;text-align:center;line-height:10px;display:none}.blueimp-gallery>.indicator>li{display:inline-block;width:9px;height:9px;margin:6px 3px 0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;border:1px solid transparent;background:#ccc;background:rgba(255,255,255,.25)center no-repeat;border-radius:5px;box-shadow:0 0 2px #000;opacity:.5;cursor:pointer}.blueimp-gallery>.indicator>li:hover,.blueimp-gallery>.indicator>.active{background-color:#fff;border-color:#fff;opacity:1}.blueimp-gallery-controls>.indicator{display:block;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0)}.blueimp-gallery-single>.indicator{display:none}.blueimp-gallery>.indicator{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}*+html .blueimp-gallery>.indicator>li{display:inline}@charset "UTF-8";.blueimp-gallery>.slides>.slide>.video-content>img{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;width:auto;height:auto;max-width:100%;max-height:100%;-moz-backface-visibility:hidden}.blueimp-gallery>.slides>.slide>.video-content>video{position:absolute;top:0;left:0;width:100%;height:100%}.blueimp-gallery>.slides>.slide>.video-content>iframe{position:absolute;top:100%;left:0;width:100%;height:100%;border:none}.blueimp-gallery>.slides>.slide>.video-playing>iframe{top:0}.blueimp-gallery>.slides>.slide>.video-content>a{position:absolute;top:50%;right:0;left:0;margin:-64px auto 0;width:128px;height:128px;background:url(../img/video-play.png) center no-repeat;opacity:.8;cursor:pointer}.blueimp-gallery>.slides>.slide>.video-content>a:hover{opacity:1}.blueimp-gallery>.slides>.slide>.video-playing>a,.blueimp-gallery>.slides>.slide>.video-playing>img{display:none}.blueimp-gallery>.slides>.slide>.video-content>video{display:none}.blueimp-gallery>.slides>.slide>.video-playing>video{display:block}.blueimp-gallery>.slides>.slide>.video-loading>a{background:url(../img/loading.gif) center no-repeat;background-size:64px 64px}body:last-child .blueimp-gallery>.slides>.slide>.video-content:not(.video-loading)>a{background-image:url(../img/video-play.svg)}*+html .blueimp-gallery>.slides>.slide>.video-content{height:100%}*+html .blueimp-gallery>.slides>.slide>.video-content>a{left:50%;margin-left:-64px}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="64" height="64">
<circle cx="32" cy="32" r="25" stroke="red" stroke-width="7" fill="black" fill-opacity="0.2"/>
<rect x="28" y="7" width="8" height="50" fill="red" transform="rotate(45, 32, 32)"/>
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="30" height="15">
<polygon points="2,1 2,14 13,7" stroke="black" stroke-width="1" fill="white"/>
<rect x="17" y="2" width="4" height="11" stroke="black" stroke-width="1" fill="white"/>
<rect x="24" y="2" width="4" height="11" stroke="black" stroke-width="1" fill="white"/>
</svg>
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment