@@ -0,0 +1,77 @@
+<?php
+/**
+ * Created by PhpStorm.
+ * User: durong
+ * Date: 2019/5/9
+ * Time: 17:20
+ */
+namespace App\Http\Controllers;
+
+class ConfigController extends Controller
+{
+ /**
+ * Create a new controller instance.
+ *
+ * @return void
+ public function __construct()
+ {
+ //
+ }
+ public function index()
+ return [
+ //是否开启
+ 'is_open' => [
+ '1' => '打开',
+ '0' => '关闭',
+ ],
+ 'status' => [
+ '1' => '启用',
+ '0' => '禁用',
+ //配送方式
+ 'express_type' => [
+ '0' => '全部',
+ '1' => '自提',
+ '2' => '快递',
+ //储存方式
+ 'store_ids' => [
+ '0' => '常温',
+ '1' => '冷冻',
+ '2' => '冷藏',
+ //对应模板
+ 'apply_type' => [
+ '0' => '团购首页',
+ '1' => '菜市场首页',
+ //版块类型:
+ 'area_type' => [
+ '0' => 'banner',
+ '1' => '专题广告',
+ '2' => '商品楼层',
+ '3' => '分类专题(菜市场)',
+ //商品展示方式
+ 'show_type' => [
+ '0' => '左图右字',
+ '1' => '通栏大图',
+ '2' => '左右滑动',
+ //接货方式:
+ 'receive_type' => [
+ '0' => '信任交付',
+ '1' => '手动确认接货',
+ //城市级别
+ 'level' => [
+ '1' => '省份province',
+ '2' => '市city',
+ '3' => '区县district',
+ '4' => '街道street',
+ ];
+}
@@ -50,6 +50,10 @@ $api->version('v1', [
$api->post('/cityManagement/delete', 'ConfigCityManagementController@delete');
//新增城市
$api->post('/cityManagement/create', 'ConfigCityManagementController@create');
+ //配置文件
+ $api->get('/config', 'ConfigController@index');
});