Commit 4144d0ad authored by luhongguang's avatar luhongguang

update:添加拼单商品回显增加ota_name

parent 5fad960a
......@@ -17,4 +17,12 @@ class Ota extends MysqlBase
const STATUS_NORMAL = 0; // 正常
const STATUS_DELETE = 1; // 删除
public static function getRecord($where, $columns = [])
{
if (empty($columns)) {
$columns = '*';
}
return self::get($columns, $where);
}
}
......@@ -88,6 +88,13 @@ class MarketingPindanGoodsService
$ksyun = GoodsService::getUrlList($sku["desc_pic_url"]);
$data["goods_info"]["desc_pic_url_list"] = $ksyun;
}
$data["goods_info"]["ota_name"] = "";
if (!empty($sku["ota_id"])) {
$ota = Ota::getRecord(["ota_id" => $sku["ota_id"]], ["ota_name"]);
if (!empty($ota)) {
$data["goods_info"]["ota_name"] = $ota["ota_name"];
}
}
}
return $data;
}
......
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