ConfigServer::get('website', 'name'), ]; return $config; } /** * @notes 版权资质 * @param $shop_id * @return mixed * @author ljj * @date 2022/2/22 11:10 上午 */ public static function copyright($shop_id) { $result = Shop::where('id',$shop_id)->json(['other_qualifications'],true)->field('business_license,other_qualifications')->findOrEmpty()->toArray(); $business_license = $result['business_license'] ? UrlServer::getFileUrl($result['business_license']) : ''; foreach ($result['other_qualifications'] as &$val) { $other_qualifications[] = UrlServer::getFileUrl($val); } if (!empty($business_license)) { array_unshift($other_qualifications,$business_license); } return $other_qualifications; } }