コード例 #1
0
 public function get($path, $ifthumb)
 {
     $dir = dirname($path);
     $file = basename($path);
     if ($ifthumb & 2) {
         $dir .= '/thumb/mini';
     } elseif ($ifthumb & 1) {
         $dir .= '/thumb';
     }
     return Windid::attachUrl() . '/' . $dir . '/' . $file;
 }
コード例 #2
0
ファイル: AvatarController.php プロジェクト: fanqimeng/4tweb
 public function __construct()
 {
     $this->attachUrl = Windid::attachUrl();
 }
コード例 #3
0
 public function getAttachInfo()
 {
     $array = current($this->attachs);
     $path = Windid::attachUrl() . '/' . $array['path'];
     //list($path) = geturl($array['attachurl'], 'lf', $array['ifthumb']&1);
     return array('aid' => $array['aid'], 'path' => $path);
 }