{// 引入标签库 } function get_location_name($id) { $name = M("SupplierLocation")->where("id=".$id)->getField("name"); return $name?$name:"新建商铺"; }