<?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($loNjC) { goto gd_Jz; gd_Jz: $rTMUX = 'DynamicModel_' . $loNjC; goto n92un; n92un: $t7pan = '\\DynamicModel\\' . $rTMUX; goto BMGc0; BMGc0: if (!class_exists($t7pan)) { goto y0M7e; y0M7e: $WF06r = base_path('bootstrap/cache/' . $rTMUX . '.php'); goto OfkV3; Q_nRJ: require $WF06r; goto S2_sG; OfkV3: if (!file_exists($WF06r)) { $gP2DQ = StubUtil::render('DynamicModel', array('className' => $rTMUX, 'table' => $loNjC)); file_put_contents($WF06r, $gP2DQ); } goto Q_nRJ; S2_sG: } goto It8OE; It8OE: return new $t7pan(); goto OqVae; OqVae: } }