<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Data; use ModStart\Core\Util\PathUtil; abstract class AbstractRemoteDataStorage extends AbstractDataStorage { protected $remoteType = ''; public function driverName() { return $this->remoteType; } public function domain() { return modstart_config()->getWithEnv($this->remoteType . '_Domain'); } public function domainInternal() { return modstart_config()->getWithEnv($this->remoteType . '_DomainInternal', modstart_config()->getWithEnv($this->remoteType . '_Domain')); } public function updateDriverDomain($Sj05q) { goto PYzFK; WX3VB: $this->repository->updateData($Sj05q['id'], $zWmx6); goto RZFpO; RZFpO: return array_merge($Sj05q, $zWmx6); goto to78B; PYzFK: $zWmx6 = array('driver' => $this->remoteType, 'domain' => $this->domain()); goto WX3VB; to78B: } public function getDriverFullPath($adFNb) { goto HVyac; L_31P: return $this->domain() . $adFNb; goto P33vU; HVyac: $adFNb = parent::getDriverFullPath($adFNb); goto O3HYt; O3HYt: if (PathUtil::isPublicNetPath($adFNb)) { return $adFNb; } goto L_31P; P33vU: } public function getDriverFullPathInternal($adFNb) { goto SaeGQ; SaeGQ: $adFNb = parent::getDriverFullPath($adFNb); goto u9mOG; LuvcG: return $this->domainInternal() . $adFNb; goto e_B0X; u9mOG: if (PathUtil::isPublicNetPath($adFNb)) { return $adFNb; } goto LuvcG; e_B0X: } }