Commit c6d7fb83 authored by luhongguang's avatar luhongguang

update: 分销活动默认分享图片

parent 9718d330
......@@ -278,6 +278,7 @@ class MarketingService
$publishLifeAccountIds = array_unique(array_column($marketingPindanData, "publish_life_account_id"));
$lifeAccountList = CommonService::getlifeAccountList(['life_account_id' => $publishLifeAccountIds]);
$defaultPic = "SHQ_goods_0_012Xh1AQcMqu";
foreach ($list as $key => $value) {
$lists[$key] = $value;
$lists[$key]["online_status_desc"] = Marketing::$onlineStatusDesc[$value["online_status"]];
......@@ -296,7 +297,8 @@ class MarketingService
$lists[$key]["pindan_desc"] = $priceData[$value["marketing_id"]]["pindan_desc"];
$lists[$key]["participate_number"] = $priceData[$value["marketing_id"]]["participate_number"];
$strList = explode(",", $priceData[$value["marketing_id"]]["pindan_pic"]);
$shareDefaultStr = empty($priceData[$value["marketing_id"]]["pindan_pic"]) ? $defaultPic : $priceData[$value["marketing_id"]]["pindan_pic"];
$strList = explode(",", $shareDefaultStr);
$shareStr = $strList[0];
$shareRes = Ks3Api::picEncryptUrl($shareStr, 500, 400);
$shareUrl = empty($shareRes["response"]["data"]["url"]) ? "" : $shareRes["response"]["data"]["url"];
......@@ -912,7 +914,9 @@ class MarketingService
$marketingData["participate_number"] = $pindanMarketing["participate_number"];
$marketingData["create_time"] = $marketingInfo["create_time"];
$strList = explode(",", $marketingData["pindan_pic"]);
$defaultPic = "SHQ_goods_0_012Xh1AQcMqu";
$shareDefaultStr = empty($marketingData["pindan_pic"]) ? $defaultPic : $marketingData["pindan_pic"];
$strList = explode(",", $shareDefaultStr);
$shareStr = $strList[0];
$shareRes = Ks3Api::picEncryptUrl($shareStr, 500, 400);
$shareUrl = empty($shareRes["response"]["data"]["url"]) ? "" : $shareRes["response"]["data"]["url"];
......
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