Commit 4b0917a6 authored by christ's avatar christ

share

parent 4d643d38
...@@ -38,8 +38,8 @@ class IndexController extends \Our\Controller_Abstract { ...@@ -38,8 +38,8 @@ 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",
...@@ -55,10 +55,12 @@ class IndexController extends \Our\Controller_Abstract { ...@@ -55,10 +55,12 @@ class IndexController extends \Our\Controller_Abstract {
//"buyerDistribution": 1, //"buyerDistribution": 1,
//"sellerDistribution": 1, //"sellerDistribution": 1,
//"startShippingPrice": 2000, //"startShippingPrice": 2000,
//"freeShippingPrice": 0 //"freeShippingPrice": 0,
//"storeStartTime": "09:00",
//"storeCloseTime": "23:00"
//}'; //}';
$paramsStr=json_decode($paramsStr,true); $paramsStr=json_decode($paramsStr,true);
if($paramsStr['type']==\Our\ApiConst::shareGoods || $paramsStr['type']==\Our\ApiConst::shareGroup){ if($paramsStr['type']==\Our\ApiConst::shareStore || $paramsStr['type']==\Our\ApiConst::shareSaler){
$begin=strtotime($paramsStr['storeStartTime']); $begin=strtotime($paramsStr['storeStartTime']);
$end=strtotime($paramsStr['storeCloseTime']); $end=strtotime($paramsStr['storeCloseTime']);
if($begin>=$end){ if($begin>=$end){
......
...@@ -201,6 +201,7 @@ class ShareServiceModel extends \Business\AbstractModel ...@@ -201,6 +201,7 @@ 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