Commit 3bcc9d15 authored by christ's avatar christ

share

parent b5783495
...@@ -38,25 +38,25 @@ class IndexController extends \Our\Controller_Abstract { ...@@ -38,25 +38,25 @@ class IndexController extends \Our\Controller_Abstract {
$this->memberDb0Redis=\Redis\Db0\MemberRedisModel::getInstance(); $this->memberDb0Redis=\Redis\Db0\MemberRedisModel::getInstance();
$paramsStr= $this->memberDb0Redis->tablelpop($this->key); $paramsStr= $this->memberDb0Redis->tablelpop($this->key);
$paramsStr='{ // $paramsStr='{
"desc": "最优质的产品,最实惠的价格,最好的服务质量,欢迎选购", //"desc": "最优质的产品,最实惠的价格,最好的服务质量,欢迎选购",
"deviceWidth": "828", //"deviceWidth": "828",
"id": "1050000", //"id": "1050000",
"imgUrl": "http://qmoss-01.oss-cn-hangzhou.aliyuncs.com/mall/store/05960231407828374.jpg?x-oss-process=image/resize,m_fill,h_186,w_186", //"imgUrl": "http://qmoss-01.oss-cn-hangzhou.aliyuncs.com/mall/store/05960231407828374.jpg?x-oss-process=image/resize,m_fill,h_186,w_186",
"key": "bda203557fcc08150fc997360d432bfa", //"key": "bda203557fcc08150fc997360d432bfa",
"shareType": "1", //"shareType": "1",
"storeName": "LQ日化用品", //"storeName": "LQ日化用品",
"timestamp": "1543913056", //"timestamp": "1543913056",
"type": "2", //"type": "2",
"driverType": 2, //"driverType": 2,
"qrCode": "http://share.shenbd.com/share.html?type=store&id=1050000", //"qrCode": "http://share.shenbd.com/share.html?type=store&id=1050000",
"address": "鑫雄盛快捷酒店仓山紫番林幼儿园", //"address": "鑫雄盛快捷酒店仓山紫番林幼儿园",
"storeWorkingtime": "", //"storeWorkingtime": "",
"buyerDistribution": 1, //"buyerDistribution": 1,
"sellerDistribution": 1, //"sellerDistribution": 1,
"startShippingPrice": 2000, //"startShippingPrice": 2000,
"freeShippingPrice": 0 //"freeShippingPrice": 0
}'; //}';
$paramsStr=json_decode($paramsStr,true); $paramsStr=json_decode($paramsStr,true);
$this->_view->assign("params", $paramsStr); $this->_view->assign("params", $paramsStr);
......
...@@ -198,7 +198,6 @@ class ShareServiceModel extends \Business\AbstractModel ...@@ -198,7 +198,6 @@ class ShareServiceModel extends \Business\AbstractModel
$saveImageName=ImageUtil::getFileName().\Our\NameConst::jpgSuffix; $saveImageName=ImageUtil::getFileName().\Our\NameConst::jpgSuffix;
$saveFile=$savePath.$saveImageName; $saveFile=$savePath.$saveImageName;
$shell = \Our\Common::format("{0} --crop-w 750 --width 750 {1} {2}",$command,$convertUrl,$saveFile); $shell = \Our\Common::format("{0} --crop-w 750 --width 750 {1} {2}",$command,$convertUrl,$saveFile);
echo $shell;exit;
system($shell, $status); system($shell, $status);
if( $status ){ if( $status ){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::shareGrowImageError); \Error\ErrorModel::throwException(\Error\CodeConfigModel::shareGrowImageError);
......
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