<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\QuickRun\ImageDesign; use ModStart\Core\Util\RenderUtil; use ModStart\Layout\Buildable; class ImageDesign implements Buildable { private $variables = array(); private $imageConfig = array(); private $selectorDialogServer = null; public static function make() { $DJCYc = new static(); return $DJCYc; } public function variables($UcXEZ) { $this->variables = $UcXEZ; return $this; } public function imageConfig($hObR3) { $this->imageConfig = $hObR3; return $this; } public function selectorDialogServer($Xv0Rt) { $this->selectorDialogServer = $Xv0Rt; return $this; } public static function imageConfigDefault() { goto nNY5N; NXVrC: $ShJO2 = array('width' => $CP1mE, 'height' => $vz2B8, 'backgroundImage' => modstart_web_url('asset/image/none.png'), 'font' => null, 'blocks' => array(array('type' => 'text', 'x' => $CP1mE / 2, 'y' => 100, 'data' => array('text' => '文字内容', 'color' => '#000000', 'bold' => false, 'size' => 20, 'align' => 'center')), array('type' => 'image', 'x' => $CP1mE / 2, 'y' => 200, 'data' => array('opacity' => 50, 'width' => 100, 'height' => 100, 'image' => modstart_web_url('asset/image/none.png'))), array('type' => 'qrcode', 'x' => $CP1mE / 2, 'y' => 300, 'data' => array('width' => 100, 'height' => 100, 'text' => '这里是二维码的内容')))); goto woqjL; woqjL: return $ShJO2; goto QnPyE; CZUjG: $vz2B8 = 800; goto NXVrC; nNY5N: $CP1mE = 600; goto CZUjG; QnPyE: } private function prepareDefault() { if (empty($this->imageConfig)) { $this->imageConfig = self::imageConfigDefault(); } if (empty($this->selectorDialogServer)) { $this->selectorDialogServer = modstart_admin_url('data/file_manager'); } } public function build() { goto nlCg5; ABbcY: $yNjK5 = array('variables' => $this->variables, 'imageConfig' => $this->imageConfig, 'selectorDialogServer' => $this->selectorDialogServer); goto DYqdl; DYqdl: echo RenderUtil::view('module::Vendor.View.quickRun.imageDesign.index', $yNjK5); goto J0_vC; nlCg5: $this->prepareDefault(); goto ABbcY; J0_vC: } }