class BarcodeController extends Controller { //生成条形码 public function index(Request $request){ $cc = new DNS1D(); title=substr(request->title,0,14); //截取title长度 for(i=0;i<44;$i++){ // arr=[1,5,9,13,17,21,25,29,33,37,41];if(i%4==0||iecho′<divstyle="width:155px;float:right;margin:1px017px8px;padding−left:3px"><div><imgstyle="width:auto;max−width:95cc->getBarcodePNG($request->num, request−>type).′"alt="barcode"/></div><divstyle="width:155px;text−align:center">′.request->fn_sku.’
’.
KaTeX parse error: Expected 'EOF', got '}' at position 121: …'; }̲else{ …cc->getBarcodePNG($request->num,
request−>type).′"alt="barcode"/></div><divstyle="width:155px;text−align:center">′.request->fn_sku.’
二维码生成 use Milon\Barcode\DNS1D; use Milon\Barcode\DNS2D; //生成二维码 public function qrCode(){ KaTeX parse error: Expected 'EOF', got '&' at position 49: …br><br><br><br>&̲nbsp; &nbs…cc->getBarcodeSVG(“AZ:X4CTAAHKI5A6TEYW9RCJNFOFWI”, “DATAMATRIX”);