正在显示
2 个修改的文件
包含
7 行增加
和
1 行删除
@@ -6,10 +6,17 @@ use tinymeng\code\Generate; | @@ -6,10 +6,17 @@ use tinymeng\code\Generate; | ||
6 | 6 | ||
7 | class Resource | 7 | class Resource |
8 | { | 8 | { |
9 | + /** | ||
10 | + * 生成条形码 | ||
11 | + * @param $res | ||
12 | + * @return false|string | ||
13 | + */ | ||
9 | public static function StudyBar($res){ | 14 | public static function StudyBar($res){ |
10 | $generate = Generate::bar(); | 15 | $generate = Generate::bar(); |
11 | $file_path = $generate->create($res,true,true); | 16 | $file_path = $generate->create($res,true,true); |
12 | $file_path = substr($file_path,strripos($file_path,"public")+6); | 17 | $file_path = substr($file_path,strripos($file_path,"public")+6); |
13 | return $file_path; | 18 | return $file_path; |
14 | } | 19 | } |
20 | + | ||
21 | + | ||
15 | } | 22 | } |
-
请 注册 或 登录 后发表评论