<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Placeholder; use Illuminate\Routing\Controller; use Illuminate\Support\Facades\Response; use Intervention\Image\Facades\Image; class PlaceholderController extends Controller { public function index($qtnCu, $DIfPR) { goto fdVWm; muFpO: $N8ETD = Image::canvas($qtnCu, $DIfPR, '#CCC'); goto l0SKL; CKVzs: $DIfPR = min($DIfPR, 2000); goto JbiDx; MXZt9: $qtnCu = max($qtnCu, 10); goto CKVzs; JbiDx: $DIfPR = max($DIfPR, 10); goto muFpO; fdVWm: $qtnCu = min($qtnCu, 2000); goto MXZt9; K03SG: return Response::make($N8ETD->encode('png'))->header('Content-Type', 'image/png'); goto BtJd2; l0SKL: $N8ETD->text($qtnCu . 'x' . $DIfPR, $qtnCu / 2, $DIfPR / 2, function ($RIABM) use($qtnCu, $DIfPR) { $c0bHO = min($qtnCu, $DIfPR) / 10; $RIABM->size($c0bHO); $RIABM->color('#666666'); $RIABM->align('center'); $RIABM->valign('center'); }); goto K03SG; BtJd2: } }