作者 开飞机的舒克

添加注释

@@ -71,7 +71,6 @@ class Demo extends Api @@ -71,7 +71,6 @@ class Demo extends Api
71 { 71 {
72 72
73 73
74 - dump($res);  
75 } 74 }
76 75
77 } 76 }
@@ -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 }