Resource.php
391 字节
<?php
namespace app\common\controller;
use tinymeng\code\Generate;
class Resource
{
public static function StudyBar($unique){
$generate = Generate::bar();
$path = ROOT_PATH.'barimages';
$file_path = $generate->create($unique,false,true);
$file_path = substr($file_path,strripos($file_path,"public")+6);
return $file_path;
}
}