<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use ModStart\Core\Exception\BizException; class JsonKeyValue extends AbstractField { protected $width = 200; public function unserializeValue($wvO30, AbstractField $Lgjfa) { return @json_decode($wvO30, true); } public function serializeValue($wvO30, $w5oww) { return json_encode($wvO30, JSON_UNESCAPED_UNICODE); } public function prepareInput($wvO30, $w5oww) { goto V2Chl; y7zag: return $f8Hsc; goto H9Dfl; jkbjh: BizException::throwsIf($this->label . ' ' . L('Json Format Error'), $wvO30 && null === $f8Hsc); goto y7zag; V2Chl: $f8Hsc = @json_decode($wvO30, true); goto jkbjh; H9Dfl: } }