作者 李忠强

更新

1 /runtime/* 1 /runtime/*
2 /public/uploads/* 2 /public/uploads/*
  3 +/public/api.html
3 .idea 4 .idea
4 composer.lock 5 composer.lock
5 *.log 6 *.log
1 <?php 1 <?php
2 2
3 -return array(  
4 - array( 3 +return [
  4 + [
5 'name' => 'maptype', 5 'name' => 'maptype',
6 'title' => '默认地图类型', 6 'title' => '默认地图类型',
7 'type' => 'radio', 7 'type' => 'radio',
8 - 'content' =>  
9 - array( 8 + 'content' => [
10 'baidu' => '百度地图', 9 'baidu' => '百度地图',
11 'amap' => '高德地图', 10 'amap' => '高德地图',
12 'tencent' => '腾讯地图', 11 'tencent' => '腾讯地图',
13 - ),  
14 - 'value' => 'baidu', 12 + ],
  13 + 'value' => 'tencent',
15 'rule' => 'required', 14 'rule' => 'required',
16 'msg' => '', 15 'msg' => '',
17 'tip' => '', 16 'tip' => '',
18 'ok' => '', 17 'ok' => '',
19 'extend' => '', 18 'extend' => '',
20 - ),  
21 - array( 19 + ],
  20 + [
22 'name' => 'location', 21 'name' => 'location',
23 'title' => '默认检索城市', 22 'title' => '默认检索城市',
24 'type' => 'string', 23 'type' => 'string',
25 - 'content' =>  
26 - array(),  
27 - 'value' => '北京', 24 + 'content' => [],
  25 + 'value' => '天津',
28 'rule' => 'required', 26 'rule' => 'required',
29 'msg' => '', 27 'msg' => '',
30 'tip' => '', 28 'tip' => '',
31 'ok' => '', 29 'ok' => '',
32 'extend' => '', 30 'extend' => '',
33 - ),  
34 - array( 31 + ],
  32 + [
35 'name' => 'zoom', 33 'name' => 'zoom',
36 'title' => '默认缩放级别', 34 'title' => '默认缩放级别',
37 'type' => 'string', 35 'type' => 'string',
38 - 'content' =>  
39 - array(), 36 + 'content' => [],
40 'value' => '12', 37 'value' => '12',
41 'rule' => 'required', 38 'rule' => 'required',
42 'msg' => '', 39 'msg' => '',
43 'tip' => '', 40 'tip' => '',
44 'ok' => '', 41 'ok' => '',
45 'extend' => '', 42 'extend' => '',
46 - ),  
47 - array( 43 + ],
  44 + [
48 'name' => 'lat', 45 'name' => 'lat',
49 'title' => '默认Lat', 46 'title' => '默认Lat',
50 'type' => 'string', 47 'type' => 'string',
51 - 'content' =>  
52 - array(),  
53 - 'value' => '39.919990', 48 + 'content' => [],
  49 + 'value' => '39.135927',
54 'rule' => 'required', 50 'rule' => 'required',
55 'msg' => '', 51 'msg' => '',
56 'tip' => '', 52 'tip' => '',
57 'ok' => '', 53 'ok' => '',
58 'extend' => '', 54 'extend' => '',
59 - ),  
60 - array( 55 + ],
  56 + [
61 'name' => 'lng', 57 'name' => 'lng',
62 'title' => '默认Lng', 58 'title' => '默认Lng',
63 'type' => 'string', 59 'type' => 'string',
64 - 'content' =>  
65 - array(),  
66 - 'value' => '116.456270', 60 + 'content' => [],
  61 + 'value' => '117.21023',
67 'rule' => 'required', 62 'rule' => 'required',
68 'msg' => '', 63 'msg' => '',
69 'tip' => '', 64 'tip' => '',
70 'ok' => '', 65 'ok' => '',
71 'extend' => '', 66 'extend' => '',
72 - ),  
73 - array( 67 + ],
  68 + [
74 'name' => 'baidukey', 69 'name' => 'baidukey',
75 'title' => '百度地图KEY', 70 'title' => '百度地图KEY',
76 'type' => 'string', 71 'type' => 'string',
77 - 'content' =>  
78 - array(), 72 + 'content' => [],
79 'value' => 'hAeMFHmpyHa2ZjaCH9VVridl', 73 'value' => 'hAeMFHmpyHa2ZjaCH9VVridl',
80 'rule' => 'required', 74 'rule' => 'required',
81 'msg' => '', 75 'msg' => '',
82 'tip' => '', 76 'tip' => '',
83 'ok' => '', 77 'ok' => '',
84 'extend' => '', 78 'extend' => '',
85 - ),  
86 - array( 79 + ],
  80 + [
87 'name' => 'amapkey', 81 'name' => 'amapkey',
88 'title' => '高德地图KEY', 82 'title' => '高德地图KEY',
89 'type' => 'string', 83 'type' => 'string',
90 - 'content' =>  
91 - array(), 84 + 'content' => [],
92 'value' => '608d75903d29ad471362f8c58c550daf', 85 'value' => '608d75903d29ad471362f8c58c550daf',
93 'rule' => 'required', 86 'rule' => 'required',
94 'msg' => '', 87 'msg' => '',
95 'tip' => '', 88 'tip' => '',
96 'ok' => '', 89 'ok' => '',
97 'extend' => '', 90 'extend' => '',
98 - ),  
99 - array( 91 + ],
  92 + [
100 'name' => 'tencentkey', 93 'name' => 'tencentkey',
101 'title' => '腾讯地图KEY', 94 'title' => '腾讯地图KEY',
102 'type' => 'string', 95 'type' => 'string',
103 - 'content' =>  
104 - array(),  
105 - 'value' => '608d75903d29ad471362f8c58c550daf', 96 + 'content' => [],
  97 + 'value' => 'FBZBZ-OCF6W-5QXRV-O7G42-GZGRE-UNBWO',
106 'rule' => 'required', 98 'rule' => 'required',
107 'msg' => '', 99 'msg' => '',
108 'tip' => '', 100 'tip' => '',
109 'ok' => '', 101 'ok' => '',
110 'extend' => '', 102 'extend' => '',
111 - ),  
112 - array( 103 + ],
  104 + [
113 'name' => '__tips__', 105 'name' => '__tips__',
114 'title' => '温馨提示', 106 'title' => '温馨提示',
115 'type' => '', 107 'type' => '',
116 - 'content' =>  
117 - array(), 108 + 'content' => [],
118 'value' => '请先申请对应地图的Key,配置后再使用', 109 'value' => '请先申请对应地图的Key,配置后再使用',
119 'rule' => '', 110 'rule' => '',
120 'msg' => '', 111 'msg' => '',
121 'tip' => '', 112 'tip' => '',
122 'ok' => '', 113 'ok' => '',
123 'extend' => 'alert-danger-light', 114 'extend' => 'alert-danger-light',
124 - ),  
125 -); 115 + ],
  116 +];
@@ -9,7 +9,7 @@ use app\api\model\SpecValue; @@ -9,7 +9,7 @@ use app\api\model\SpecValue;
9 use app\common\controller\Api; 9 use app\common\controller\Api;
10 10
11 /** 11 /**
12 - * 订单页面 12 + * 订单
13 */ 13 */
14 class Order extends Api 14 class Order extends Api
15 { 15 {