<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Dao; use Illuminate\Database\Eloquent\Model; use ModStart\Core\Util\FileUtil; use ModStart\Core\Util\StubUtil; class DynamicModel extends Model { public static function make($zWXdn) { goto ifNEt; muJ5O: return new $KrsM3(); goto aqpH2; CPpUt: $KrsM3 = '\\DynamicModel\\' . $rgLyo; goto PQpRL; ifNEt: $rgLyo = 'DynamicModel_' . $zWXdn; goto CPpUt; PQpRL: if (!class_exists($KrsM3)) { goto Yfc4J; FDJgd: if (!file_exists($qsQD8)) { $rFmqf = StubUtil::render('DynamicModel', array('className' => $rgLyo, 'table' => $zWXdn)); file_put_contents($qsQD8, $rFmqf); } goto dfKoy; dfKoy: require $qsQD8; goto jVzJX; Yfc4J: $qsQD8 = base_path('bootstrap/cache/' . $rgLyo . '.php'); goto FDJgd; jVzJX: } goto muJ5O; aqpH2: } }