<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Web\Controller; use Illuminate\Routing\Controller; use Illuminate\Support\Facades\Response; use Intervention\Image\Facades\Image; class PlaceholderController extends Controller { public function index($PEjiY, $p5fuC) { goto R0Bs4; CqiCe: return Response::make($nWeXm->encode('png'))->header('Content-Type', 'image/png'); goto KUfNh; qKMN8: $nWeXm->text($PEjiY . 'x' . $p5fuC, $PEjiY / 2, $p5fuC / 2, function ($dC3So) use($PEjiY, $p5fuC) { $XH9Ra = min($PEjiY, $p5fuC) / 10; $dC3So->size($XH9Ra); $dC3So->color('#666666'); $dC3So->align('center'); $dC3So->valign('center'); }); goto CqiCe; o4QDa: $PEjiY = max($PEjiY, 10); goto OSyUQ; R0Bs4: $PEjiY = min($PEjiY, 2000); goto o4QDa; Akixp: $p5fuC = max($p5fuC, 10); goto U1IUL; OSyUQ: $p5fuC = min($p5fuC, 2000); goto Akixp; U1IUL: $nWeXm = Image::canvas($PEjiY, $p5fuC, '#CCC'); goto qKMN8; KUfNh: } }