[ 'set_meal' => 'free', 'app_key' => '', 'ebussiness_id' => '', ], 'express_hundred' => [ 'interface_type' => 'enterprise', 'app_key' => '', 'customer' => '' ], 'express_type' => 'express_bird' ]; $data['express_bird'] = unserialize(ConfigService::get('logistics_config', 'express_bird', '')) ? : $default['express_bird']; $data['express_hundred'] = unserialize(ConfigService::get('logistics_config', 'express_hundred', '')) ? : $default['express_hundred']; $data['express_type'] = ConfigService::get('logistics_config', 'express_type', $default['express_type']); return $data; } /** * @notes 设置物流配置 * @param $params * @return bool * @author ljj * @date 2021/7/29 3:59 下午 */ public function setLogisticsConfig($params) { ConfigService::set('logistics_config', 'express_bird', serialize($params['express_bird'])); ConfigService::set('logistics_config', 'express_hundred', serialize($params['express_hundred'])); ConfigService::set('logistics_config', 'express_type', $params['express_type']); return true; } }