| 
					
				 | 
			
			
				@@ -29,6 +29,11 @@ import com.fs.store.vo.h5.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.system.service.ISysConfigService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.github.pagehelper.PageHelper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.github.pagehelper.PageInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.google.zxing.BarcodeFormat; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.google.zxing.WriterException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.google.zxing.client.j2se.MatrixToImageWriter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.google.zxing.common.BitMatrix; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.google.zxing.qrcode.QRCodeWriter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.Api; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiOperation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiParam; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -37,6 +42,8 @@ import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import javax.validation.Valid; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.io.ByteArrayOutputStream; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.io.IOException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.io.InputStream; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.text.SimpleDateFormat; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.time.LocalDate; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -341,5 +348,20 @@ public class FsUserController extends AppBaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         userCourseCountService.insertFsUserCourseCountTask(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    public static void main(String[] args) throws IOException, WriterException { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @GetMapping("/qrcode") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public byte[] test() throws IOException, WriterException{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        QRCodeWriter qrCodeWriter = new QRCodeWriter(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        BitMatrix bitMatrix = qrCodeWriter.encode("chenys_only", BarcodeFormat.QR_CODE, 200, 200); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        MatrixToImageWriter.writeToStream(bitMatrix, "PNG", outputStream); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        System.out.println(Arrays.toString(outputStream.toByteArray())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return outputStream.toByteArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |