Commit 25337908 authored by luhongguang's avatar luhongguang

update: 自提点详情

parent be285f60
......@@ -57,7 +57,19 @@ class TakePlaceService
*/
public static function detail($takePlaceId)
{
return TakePlace::get('*',['take_place_id'=>$takePlaceId]);
$takePlace = TakePlace::get('*', ['take_place_id' => $takePlaceId]);
$takePlace["tag_name"] = "";
if (!empty($takePlace["tag_id"])) {
$tag = TagService::tagDetail(["tag_id" => $takePlace["tag_id"]]);
$takePlace["tag_name"] = $tag["tag_name"];
}
$takePlace["business_circle_name"] = "";
if (!empty($takePlace["business_circle_id"])) {
$businessCircle = BusinessCircleService::businessCircleDetail(["business_circle_id" => $takePlace["business_circle_id"]]);
$takePlace["business_circle_name"] = $businessCircle["business_circle_name"];
}
return $takePlace;
}
/**
......
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