文件地址:app\controller\admin\v1\order\OtherOrder.php
$canvas->setImageUrl(public_path() . ‘statics/qrcode/offlines.jpg’)->setImageHeight(730)->setImageWidth(500)->pushImageValue();
复制代码
文件地址:crmeb\utils\Canvas.php
switch (KaTeX parse error: Expected '}', got 'EOF' at end of input: … imagejpeg(image, public_path() .
s
a
v
e
f
i
l
e
,
70
)
;
b
r
e
a
k
;
c
a
s
e
′
p
n
g
′
:
i
m
a
g
e
p
n
g
(
save_file, 70); break; case 'png': imagepng(
savefile,70);break;case′png′:imagepng(image, public_path() .
s
a
v
e
f
i
l
e
,
70
)
;
b
r
e
a
k
;
c
a
s
e
′
g
i
f
′
:
i
m
a
g
e
g
i
f
(
save_file, 70); break; case 'gif': imagegif(
savefile,70);break;case′gif′:imagegif(image, public_path() . $save_file, 70);
break;
default:
throw new \RuntimeException(‘Incorrect type set:’ . $this->imageType);
}
复制代码
免费源码下载地址:http://github.crmeb.net/u/defu