info.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. <?php
  2. # 获取分类权限
  3. $status = array
  4. (
  5. 1 => '合作中',
  6. 2 => '已终止合作',
  7. //3 => '申请合作中',
  8. );
  9. $type = array
  10. (
  11. 1 => '体验店',
  12. 2 => '零售店',
  13. 10 => '平台店',
  14. );
  15. $invoice = array
  16. (
  17. 1 => '可以开发票',
  18. 2 => '不可以开发票',
  19. );
  20. $col = 'id,name,`desc`,ps_cash,free_ps_cash,truename,mobile,lng,lat,address,open,worktime,method,gotime,city,area,province,county,town,coupon_city,pdesc,license,food_license,jy_license,license_number,company_name,coord_address,invoice,type,mid';
  21. $act = function()
  22. {
  23. $info = Dever::db('act/info')->select();
  24. $id = Dever::input('where_id');
  25. $coupon = Dever::db('shop/coupon')->select(array('shop_id' => $id));
  26. if ($coupon) {
  27. foreach ($coupon as $k => $v) {
  28. $coupon_info = Dever::db('goods/coupon')->find($v['coupon_id']);
  29. if (isset($coupon_info['method'])) {
  30. $prefix = '('.Dever::db('goods/coupon')->config['method'][$coupon_info['method']].')';
  31. $coupon[$k]['name'] = $prefix . $coupon_info['name'];
  32. }
  33. }
  34. }
  35. foreach ($info as $k => $v) {
  36. if ($v['id'] == 1) {
  37. $info[$k]['child'] = $coupon;
  38. }
  39. }
  40. $info['state'] = 2;//1是无需记录上级id,字符串逗号隔开。2是需要记录上级id,json格式
  41. return $info;
  42. };
  43. $yes = array
  44. (
  45. 1 => '可用',
  46. 2 => '不可用',
  47. );
  48. $open = array
  49. (
  50. 1 => '开启',
  51. 2 => '关闭',
  52. );
  53. $method = array
  54. (
  55. 1 => '自提',
  56. 2 => '外送',
  57. 3 => '以上全支持',
  58. );
  59. $stat_type = Dever::db('cash/shop')->config['config_type'];
  60. return array
  61. (
  62. # 表名
  63. 'name' => 'info',
  64. # 显示给用户看的名称
  65. 'lang' => '门店列表',
  66. # 后台菜单排序
  67. 'order' => 99,
  68. 'act' => $act,
  69. 'config_col' => $col,
  70. 'check' => 'sid',
  71. 'config_type' => $type,
  72. 'end' => array
  73. (
  74. 'insert' => 'shop/lib/manage.infoUpdate',
  75. 'update' => 'shop/lib/manage.infoUpdate',
  76. ),
  77. # 数据结构
  78. 'struct' => array
  79. (
  80. 'id' => array
  81. (
  82. 'type' => 'int-11',
  83. 'name' => 'ID',
  84. 'default' => '',
  85. 'desc' => '',
  86. 'match' => 'is_numeric',
  87. 'search' => 'order',
  88. //'list' => true,
  89. 'order' => 'desc',
  90. ),
  91. 'hr1' => array
  92. (
  93. 'name' => '门店基本信息',
  94. 'class' => '',//本项必须填写
  95. 'attr' => '',
  96. ),
  97. 'uid' => array
  98. (
  99. 'type' => 'int-11',
  100. 'name' => '用户名',
  101. 'default' => '0',
  102. 'desc' => '请选择用户',
  103. 'match' => 'is_numeric',
  104. //'update' => 'text',
  105. //'search' => 'select',
  106. 'searchs' => array
  107. (
  108. 'api' => 'passport/user-select',
  109. 'col' => 'username',
  110. 'result' => 'id',
  111. ),
  112. //'list' => '{uid} > 0 ? Dever::load("passport/user-find#username", {uid}) : "匿名用户"',
  113. ),
  114. 'sid' => array
  115. (
  116. 'type' => 'varchar-30',
  117. 'name' => '店铺编号-一般为5位数字,不能重复',
  118. 'default' => '',
  119. 'desc' => '店铺编号',
  120. 'match' => 'is_string',
  121. 'update' => 'text',
  122. 'search' => 'fulltext',
  123. 'list' => true,
  124. ),
  125. 'name' => array
  126. (
  127. 'type' => 'varchar-32',
  128. 'name' => '门店名称',
  129. 'default' => '',
  130. 'desc' => '请输入门店名称',
  131. 'match' => 'is_string',
  132. 'update' => 'text',
  133. 'search' => 'fulltext',
  134. 'list' => true,
  135. ),
  136. 'desc' => array
  137. (
  138. 'type' => 'varchar-800',
  139. 'name' => '门店介绍',
  140. 'default' => '',
  141. 'desc' => '门店介绍',
  142. 'match' => 'is_string',
  143. 'update' => 'textarea',
  144. ),
  145. 'truename' => array
  146. (
  147. 'type' => 'varchar-100',
  148. 'name' => '联系人姓名',
  149. 'default' => '',
  150. 'desc' => '请输入联系人姓名',
  151. 'match' => 'is_string',
  152. 'update' => 'text',
  153. 'search' => 'fulltext',
  154. 'list' => true,
  155. ),
  156. 'mobile' => array
  157. (
  158. 'type' => 'bigint-11',
  159. 'name' => '联系人电话',
  160. 'default' => '',
  161. 'desc' => '请输入联系人电话',
  162. 'match' => Dever::rule('mobile'),
  163. 'update' => 'text',
  164. 'search' => 'fulltext',
  165. 'list' => true,
  166. ),
  167. 'area' => array
  168. (
  169. 'type' => 'varchar-500',
  170. 'name' => '所在街道',
  171. 'default' => '',
  172. 'desc' => '所在街道',
  173. 'match' => 'option',
  174. 'search' => 'linkage',
  175. 'update' => 'linkage',
  176. 'option' => Dever::url('api.get?level_total=4', 'area'),
  177. //'list' => 'Dever::load("area/api.string", "{area}")',
  178. ),
  179. 'province' => array
  180. (
  181. 'type' => 'int-11',
  182. 'name' => '省份',
  183. 'default' => '',
  184. 'desc' => '省份',
  185. 'match' => 'option',
  186. //'update' => 'text',
  187. ),
  188. 'city' => array
  189. (
  190. 'type' => 'int-11',
  191. 'name' => '城市',
  192. 'default' => '',
  193. 'desc' => '城市',
  194. 'match' => 'option',
  195. //'update' => 'text',
  196. ),
  197. 'county' => array
  198. (
  199. 'type' => 'int-11',
  200. 'name' => '县区',
  201. 'default' => '',
  202. 'desc' => '县区',
  203. 'match' => 'option',
  204. //'update' => 'text',
  205. ),
  206. 'town' => array
  207. (
  208. 'type' => 'int-11',
  209. 'name' => '街道',
  210. 'default' => '',
  211. 'desc' => '街道',
  212. 'match' => 'option',
  213. //'update' => 'text',
  214. ),
  215. 'map' => array
  216. (
  217. 'type' => 'varchar-300',
  218. 'name' => '地理位置',
  219. 'default' => '',
  220. 'desc' => '地理位置',
  221. 'match' => 'is_string',
  222. # 如果是map,必须在config的base.php中设置map信息
  223. 'update' => 'map',
  224. ),
  225. 'lng' => array
  226. (
  227. 'type' => 'varchar-100',
  228. 'name' => '经度',
  229. 'default' => '',
  230. 'desc' => '经度',
  231. 'match' => 'option',
  232. //'update' => 'text',
  233. //'list' => true,
  234. ),
  235. 'lat' => array
  236. (
  237. 'type' => 'varchar-100',
  238. 'name' => '纬度',
  239. 'default' => '',
  240. 'desc' => '纬度',
  241. 'match' => 'option',
  242. //'update' => 'text',
  243. //'list' => true,
  244. ),
  245. 'coord_address' => array
  246. (
  247. 'type' => 'varchar-1000',
  248. 'name' => '门店坐标地址',
  249. 'default' => '',
  250. 'desc' => '门店坐标地址',
  251. 'match' => 'option',
  252. //'update' => 'text',
  253. //'list' => true,
  254. ),
  255. 'address' => array
  256. (
  257. 'type' => 'varchar-1000',
  258. 'name' => '门店地址',
  259. 'default' => '',
  260. 'desc' => '门店地址',
  261. 'match' => 'option',
  262. 'update' => 'text',
  263. //'list' => true,
  264. ),
  265. 'goods' => array
  266. (
  267. 'type' => 'text-255',
  268. 'name' => '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置库存',
  269. 'default' => '',
  270. 'desc' => '生产能力',
  271. 'match' => 'option',
  272. // 多级联动+多选
  273. 'update' => Dever::input('col') ? 'linkage' : false,
  274. 'option' => array(Dever::url('api.get', 'category'), 'cate_id', Dever::url('lib/info.getGoods', 'goods'), '快速设置', Dever::url('project/database/list?project=goods&table=info_sku&page_type=1&other=shop&other_id={where_id}&goods_id={id}', 'manage')),
  275. ),
  276. 'factory' => array
  277. (
  278. 'type' => 'text-255',
  279. 'name' => '分配工厂-请先选择地区,再选择工厂',
  280. 'default' => '',
  281. 'desc' => '分配工厂',
  282. 'match' => 'option',
  283. // 多级联动+多选
  284. 'update' => Dever::input('col') ? 'linkage' : false,
  285. 'option' => array(Dever::url('api.get?level_total=3', 'area'), 'city', Dever::url('lib/manage.getInfo', 'factory'), '分配工厂'),
  286. ),
  287. 'store' => array
  288. (
  289. 'type' => 'text-255',
  290. 'name' => '分配仓库-请先选择地区,再选择仓库',
  291. 'default' => '',
  292. 'desc' => '分配仓库',
  293. 'match' => 'option',
  294. // 多级联动+多选
  295. 'update' => Dever::input('col') ? 'linkage' : false,
  296. 'option' => array(Dever::url('api.get?level_total=3', 'area'), 'city', Dever::url('lib/manage.getInfo', 'store'), '分配仓库'),
  297. ),
  298. 'hr2' => array
  299. (
  300. 'name' => '门店营业设置',
  301. 'class' => '',//本项必须填写
  302. 'attr' => '',
  303. ),
  304. 'open' => array
  305. (
  306. 'type' => 'int-11',
  307. 'name' => '营业状态',
  308. 'default' => '1',
  309. 'desc' => '营业状态',
  310. 'match' => 'is_numeric',
  311. 'update' => 'radio',
  312. 'option' => $open,
  313. 'search' => 'select',
  314. 'list' => true,
  315. ),
  316. 'method' => array
  317. (
  318. 'type' => 'int-11',
  319. 'name' => '门店能力',
  320. 'default' => '3',
  321. 'desc' => '门店能力',
  322. 'match' => 'is_numeric',
  323. 'update' => 'radio',
  324. 'option' => $method,
  325. 'control' => 'method',
  326. ),
  327. 'worktime' => array
  328. (
  329. 'type' => 'varchar-100',
  330. 'name' => '营业时间-如10:00~22:00,24小时制',
  331. 'default' => '',
  332. 'desc' => '营业时间',
  333. 'match' => 'is_string',
  334. 'update' => 'text',
  335. //'show' => 'method=1,3',
  336. ),
  337. 'gotime' => array
  338. (
  339. 'type' => 'varchar-100',
  340. 'name' => '外送时间-如10:00~22:00,24小时制',
  341. 'default' => '',
  342. 'desc' => '外送时间',
  343. 'match' => 'is_string',
  344. //'update' => 'text',
  345. //'show' => 'method=2,3',
  346. ),
  347. 'hr3' => array
  348. (
  349. 'name' => '门店认证信息',
  350. 'class' => '',//本项必须填写
  351. 'attr' => '',
  352. ),
  353. 'license' => array
  354. (
  355. 'type' => 'varchar-150',
  356. 'name' => '营业执照',
  357. 'default' => '',
  358. 'desc' => '营业执照',
  359. 'match' => 'option',
  360. 'update' => 'image',
  361. 'key' => '8',
  362. 'place' => '660*660',
  363. ),
  364. 'license_number' => array
  365. (
  366. 'type' => 'varchar-200',
  367. 'name' => '营业执照号码',
  368. 'default' => '',
  369. 'desc' => '营业执照号码',
  370. 'match' => 'option',
  371. 'update' => 'text',
  372. ),
  373. 'company_name' => array
  374. (
  375. 'type' => 'varchar-200',
  376. 'name' => '公司名称',
  377. 'default' => '',
  378. 'desc' => '公司名称',
  379. 'match' => 'option',
  380. 'update' => 'text',
  381. ),
  382. 'idcard_front' => array
  383. (
  384. 'type' => 'varchar-150',
  385. 'name' => '身份证正面',
  386. 'default' => '',
  387. 'desc' => '身份证正面',
  388. 'match' => 'option',
  389. 'update' => 'image',
  390. 'key' => '8',
  391. 'place' => '660*660',
  392. ),
  393. 'idcard_back' => array
  394. (
  395. 'type' => 'varchar-150',
  396. 'name' => '身份证背面',
  397. 'default' => '',
  398. 'desc' => '身份证背面',
  399. 'match' => 'option',
  400. 'update' => 'image',
  401. 'key' => '8',
  402. 'place' => '660*660',
  403. ),
  404. 'jy_license' => array
  405. (
  406. 'type' => 'varchar-150',
  407. 'name' => '经营许可证',
  408. 'default' => '',
  409. 'desc' => '经营许可证',
  410. 'match' => 'option',
  411. 'update' => 'image',
  412. 'key' => '8',
  413. 'place' => '660*660',
  414. ),
  415. 'food_license' => array
  416. (
  417. 'type' => 'varchar-150',
  418. 'name' => '食品许可证',
  419. 'default' => '',
  420. 'desc' => '食品许可证',
  421. 'match' => 'option',
  422. 'update' => 'image',
  423. 'key' => '8',
  424. 'place' => '660*660',
  425. ),
  426. 'hr4' => array
  427. (
  428. 'name' => '其他设置',
  429. 'class' => '',//本项必须填写
  430. 'attr' => '',
  431. ),
  432. 'type' => array
  433. (
  434. 'type' => 'int-11',
  435. 'name' => '门店类型-自营为平台店,当没有找到加盟店时,将自动获取平台店',
  436. 'default' => '1',
  437. 'desc' => '门店类型',
  438. 'match' => 'is_numeric',
  439. 'update' => 'radio',
  440. 'option' => $type,
  441. 'search' => 'select',
  442. 'list' => true,
  443. ),
  444. 'invoice' => array
  445. (
  446. 'type' => 'int-11',
  447. 'name' => '是否可以开发票',
  448. 'default' => '1',
  449. 'desc' => '是否可以开发票',
  450. 'match' => 'is_numeric',
  451. 'update' => 'radio',
  452. 'option' => $invoice,
  453. ),
  454. 'coupon_city' => array
  455. (
  456. 'type' => 'int-11',
  457. 'name' => '优惠券是否同城可用-废弃',
  458. 'default' => '2',
  459. 'desc' => '优惠券是否同城可用',
  460. 'match' => 'is_numeric',
  461. //'update' => 'radio',
  462. //'update' => Dever::input('col') ? 'radio' : false,
  463. 'option' => $yes,
  464. ),
  465. 'act' => array
  466. (
  467. 'type' => 'text-255',
  468. 'name' => '参与活动',
  469. 'default' => '',
  470. 'desc' => '参与活动',
  471. 'match' => 'option',
  472. 'update' => 'checkbox',
  473. 'update' => Dever::input('col') ? 'checkbox' : false,
  474. 'data' => 'parent',
  475. 'option' => $act,
  476. ),
  477. 'mid' => array
  478. (
  479. 'type' => 'varchar-50',
  480. 'name' => '分账商户号',
  481. 'default' => '',
  482. 'desc' => '分账商户号',
  483. 'match' => 'option',
  484. 'update' => 'text',
  485. ),
  486. 'ps_cash' => array
  487. (
  488. 'type' => 'varchar-50',
  489. 'name' => '运费-单位为元',
  490. 'default' => '0',
  491. 'desc' => '运费',
  492. 'match' => 'option',
  493. 'update' => 'text',
  494. ),
  495. 'free_ps_cash' => array
  496. (
  497. 'type' => 'varchar-50',
  498. 'name' => '免运费额度-满多少免运费,这里直接填写一个订单满多少金额就免费配送的金额,单位为元',
  499. 'default' => '0',
  500. 'desc' => '免运费额度',
  501. 'match' => 'option',
  502. 'update' => 'text',
  503. ),
  504. 'pdesc' => array
  505. (
  506. 'type' => 'text-255',
  507. 'name' => '配送与自提说明',
  508. 'default' => '',
  509. 'desc' => '配送与自提说明',
  510. 'match' => 'is_string',
  511. 'update' => 'textarea',
  512. ),
  513. 'stat_type' => array
  514. (
  515. 'type' => 'int-11',
  516. 'name' => '对账周期-可以选择周期生成对账单,选择按天生成对账单,则每天会生成前一天的对账单',
  517. 'default' => '1',
  518. 'desc' => '对账周期',
  519. 'match' => 'is_numeric',
  520. 'update' => 'radio',
  521. 'option' => $stat_type,
  522. 'control' => 'stat_type',
  523. ),
  524. 'stat_day' => array
  525. (
  526. 'type' => 'int-11',
  527. 'name' => '对账单生成日期-这里直接填写对账周期内的第几天即可,如按月对账,这里填写10,就是本月10号生成上一个月的对账单,如按周对账,这里填写2,就是本周二生成上一周的对账单',
  528. 'default' => '10',
  529. 'desc' => '对账单生成日期',
  530. 'match' => 'option',
  531. 'update' => 'text',
  532. 'show' => 'stat_type=1,2',
  533. ),
  534. 'status' => array
  535. (
  536. 'type' => 'int-11',
  537. 'name' => '合作状态',
  538. 'default' => '1',
  539. 'desc' => '合作状态',
  540. 'match' => 'is_numeric',
  541. //'update' => 'select',
  542. 'option' => $status,
  543. 'search' => 'select',
  544. 'list' => true,
  545. 'edit' => true,
  546. ),
  547. 'reorder' => array
  548. (
  549. 'type' => 'int-11',
  550. 'name' => '排序(数值越大越靠前)',
  551. 'default' => '1',
  552. 'desc' => '请输入排序',
  553. 'match' => 'option',
  554. 'update' => 'text',
  555. 'search' => 'order',
  556. //'list' => true,
  557. 'order' => 'desc',
  558. //'edit' => true,
  559. ),
  560. 'state' => array
  561. (
  562. 'type' => 'tinyint-1',
  563. 'name' => '状态',
  564. 'default' => '1',
  565. 'desc' => '请选择状态',
  566. 'match' => 'is_numeric',
  567. ),
  568. 'cdate' => array
  569. (
  570. 'type' => 'int-11',
  571. 'name' => '录入时间',
  572. 'match' => array('is_numeric', time()),
  573. 'desc' => '',
  574. # 只有insert时才生效
  575. 'insert' => true,
  576. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  577. ),
  578. ),
  579. 'alter' => array
  580. (
  581. 2 => array
  582. (
  583. array('update', 'sid', 'sid', 'varchar-30 店铺编号'),
  584. ),
  585. 'version' => 2,
  586. ),
  587. 'manage' => array
  588. (
  589. //'mul' => true,
  590. //'insert' => false,
  591. 'list_button' => array
  592. (
  593. 'delete' => '删除',
  594. 'br11' => array('<br /><br />'),
  595. 'location1' => array('分配工厂', Dever::url('lib/set.factory', 'shop')),
  596. 'location2' => array('分配仓库', Dever::url('lib/set.store', 'shop')),
  597. /*
  598. 'add12' => array('分配工厂', '"info&where_id={id}&col=factory&oper_save_jump=info&oper_table=info&oper_parent=info"'),
  599. 'add13' => array('分配仓库', '"info&where_id={id}&col=store&oper_save_jump=info&oper_table=info&oper_parent=info"'),
  600. */
  601. 'fast' => array('设置活动', '"info&where_id={id}&col=act&oper_save_jump=info&oper_table=info&oper_parent=info"'),
  602. 'br1' => array('<br /><br />'),
  603. 'location' => array('商品设置', Dever::url('lib/set.home', 'shop')),
  604. //'add1' => array('批量设置商品', '"info&where_id={id}&col=goods&oper_save_jump=info&oper_table=info&oper_parent=info"'),
  605. 'list22' => array('商品列表', '"goods&search_option_shop_id={id}&oper_table=info"'),
  606. 'br2' => array('<br /><br />'),
  607. 'list' => array('优惠券管理', '"coupon&search_option_shop_id={id}&oper_table=info"'),
  608. 'list1' => array('账号管理', '"member&search_option_shop_id={id}&oper_table=info"'),
  609. 'list2' => array('打印机管理', '"print&search_option_shop_id={id}&oper_table=info"'),
  610. //'br3' => array('<br /><br />'),
  611. //'list3' => array('销售订单', '"sell_order&search_option_shop_id={id}&oper_table=info"'),
  612. //'list4' => array('采购订单', '"buy_order&search_option_shop_id={id}&oper_table=info"'),
  613. ),
  614. ),
  615. 'request' => array
  616. (
  617. # 获取单条数据
  618. 'getOne' => array
  619. (
  620. # 匹配的正则或函数 选填项
  621. 'option' => array
  622. (
  623. 'city' => 'yes',
  624. 'coupon_city' => 'yes',
  625. 'id' => 'yes',
  626. 'status' => 1,
  627. 'state' => 1,
  628. ),
  629. 'type' => 'one',
  630. 'col' => $col,
  631. ),
  632. # 获取城市
  633. 'getCity' => array
  634. (
  635. # 匹配的正则或函数 选填项
  636. 'option' => array
  637. (
  638. 'city' => 'yes',
  639. 'id' => 'yes',
  640. 'status' => 1,
  641. 'state' => 1,
  642. ),
  643. 'type' => 'all',
  644. 'group' => 'city',
  645. 'col' => $col,
  646. ),
  647. # 获取城市
  648. 'getDataByType' => array
  649. (
  650. # 匹配的正则或函数 选填项
  651. 'option' => array
  652. (
  653. 'type' => 'yes',
  654. 'id' => 'yes',
  655. 'status' => 1,
  656. 'state' => 1,
  657. ),
  658. 'type' => 'one',
  659. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  660. 'col' => $col,
  661. ),
  662. 'like' => array
  663. (
  664. # 匹配的正则或函数 选填项
  665. 'option' => array
  666. (
  667. 'name' => array('yes', 'like'),
  668. 'id' => 'yes',
  669. 'status' => 1,
  670. 'state' => 1,
  671. ),
  672. 'type' => 'all',
  673. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  674. 'col' => $col . '|id',
  675. ),
  676. 'getAll' => array
  677. (
  678. # 匹配的正则或函数 选填项
  679. 'option' => array
  680. (
  681. 'town' => 'yes',
  682. 'area' => array('yes', 'like'),
  683. 'state' => 1,
  684. ),
  685. 'type' => 'all',
  686. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  687. 'col' => 'id,id as value, name',
  688. ),
  689. ),
  690. );