Commit 1c9093fe authored by christ's avatar christ

share

parent 4a794a57
......@@ -139,6 +139,7 @@ class ShareServiceModel extends \Business\AbstractModel
$saveImageName=ImageUtil::getFileName().\Our\NameConst::jpgSuffix;
$saveFile=$savePath.$saveImageName;
$shell = \Our\Common::format("{0} --crop-w 750 --width 750 {1} {2}",$command,$convertUrl,$saveFile);
echo $shell;exit;
system($shell, $status);
if( $status ){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::shareGrowImageError);
......
......@@ -49,7 +49,7 @@
<script type="text/javascript">
var pageObj = {
type : "<?php echo $params['shareType'];?>",//1或2是小程序码,其它是二维码
id : 2,//1是小程序码,2是二维码,
id : "<?php echo $params['id'];?>",//1是小程序码,2是二维码,
headerBg : "<?php echo $params['imgUrl'];?>",
url : "<?php echo $params['qrCode'];?>",
qrImg : "<?php echo $params['qrCode'];?>",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment