<?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() { $Z1ri9 = new static(); return $Z1ri9; } public function variables($KPNO0) { $this->variables = $KPNO0; return $this; } public function imageConfig($y1urI) { $this->imageConfig = $y1urI; return $this; } public function selectorDialogServer($uqR62) { $this->selectorDialogServer = $uqR62; return $this; } public static function imageConfigDefault() { goto tCO00; Yacg1: $QK_yj = 800; goto s11Ds; LjRLJ: return $HaG3K; goto B17PU; tCO00: $uLJRw = 600; goto Yacg1; s11Ds: $HaG3K = array('width' => $uLJRw, 'height' => $QK_yj, 'backgroundImage' => modstart_web_url('asset/image/none.png'), 'font' => null, 'blocks' => array(array('type' => 'text', 'x' => $uLJRw / 2, 'y' => 100, 'data' => array('text' => '文字内容', 'color' => '#000000', 'bold' => false, 'size' => 20, 'align' => 'center')), array('type' => 'image', 'x' => $uLJRw / 2, 'y' => 200, 'data' => array('opacity' => 50, 'width' => 100, 'height' => 100, 'image' => modstart_web_url('asset/image/none.png'))), array('type' => 'qrcode', 'x' => $uLJRw / 2, 'y' => 300, 'data' => array('width' => 100, 'height' => 100, 'text' => '这里是二维码的内容')))); goto LjRLJ; B17PU: } 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 cD2QC; cD2QC: $this->prepareDefault(); goto rdXr6; rdXr6: $KwrZW = array('variables' => $this->variables, 'imageConfig' => $this->imageConfig, 'selectorDialogServer' => $this->selectorDialogServer); goto K9Gz3; K9Gz3: echo RenderUtil::view('module::Vendor.View.quickRun.imageDesign.index', $KwrZW); goto J_K5M; J_K5M: } }