Resource.php
386 字节
<?php
namespace app\common\controller;
use tinymeng\code\Generate;
class Resource
{
/**
* 生成条形码
*/
public static function StudyBar($res){
$generate = Generate::bar();
$file_path = $generate->create($res,true,true);
$file_path = substr($file_path,strripos($file_path,"public")+6);
return $file_path;
}
}