Commit d45e13f5 authored by 顾文旭's avatar 顾文旭

七牛图片获取

parent 8323311c
......@@ -1109,7 +1109,12 @@ class MarketingService
$marketingData["marketing_type"] = $marketingInfo["marketing_type"];
$marketingData["publish_life_account_id"] = $pindanMarketing["publish_life_account_id"];
$marketingData["pindan_pic"] = $pindanMarketing["pindan_pic"];
$marketingData["pindan_pic_url"] = GoodsService::getUrlList($marketingData["pindan_pic"]);
if (substr($marketingData["pindan_pic"], 0, 2) === "SHQ") {
$picUrl = GoodsService::getUrlList($marketingData["pindan_pic"]);
} else {
$picUrl = "https://pingouimg.jwshq.cn/" . $marketingData["pindan_pic"];
}
$marketingData["pindan_pic_url"] = $picUrl;
$marketingData["pindan_desc"] = $pindanMarketing["pindan_desc"];
$marketingData["max_price"] = sprintf("%.2f", $pindanMarketing["max_price"] / 100);
$marketingData["min_price"] = sprintf("%.2f", $pindanMarketing["min_price"] / 100);
......
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