info.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
  1. <?php
  2. $status = Dever::config('base')->status;
  3. $price_type = array
  4. (
  5. 1 => '普通商品',
  6. 2 => '多价商品',
  7. //3 => '套餐商品',
  8. 4 => '组合商品',
  9. );
  10. $sell_type = array
  11. (
  12. 1 => '可售卖',
  13. 2 => '不可售卖',
  14. );
  15. $buy_type = array
  16. (
  17. 1 => '可采购',
  18. 2 => '不可采购',
  19. );
  20. $mode = array
  21. (
  22. 1 => '自提',
  23. 2 => '外送',
  24. 3 => '以上全支持',
  25. );
  26. $yes = array
  27. (
  28. 1 => '是',
  29. 2 => '否',
  30. );
  31. $sku_type = array
  32. (
  33. 1 => '库存不足时不显示商品',
  34. 2 => '库存不足时显示商品',
  35. );
  36. $column = function()
  37. {
  38. $array = array();
  39. $info = Dever::load('goods/column-state');
  40. if($info)
  41. {
  42. $array += $info;
  43. }
  44. return $array;
  45. };
  46. $tag = function()
  47. {
  48. $array = array();
  49. $info = Dever::load('goods/tag-state');
  50. if($info)
  51. {
  52. $array += $info;
  53. }
  54. return $array;
  55. };
  56. $config = array
  57. (
  58. # 表名
  59. 'name' => 'info',
  60. # 显示给用户看的名称
  61. 'lang' => '商品列表',
  62. 'order' => 200,
  63. 'auto' => 10000000,
  64. 'start' => array
  65. (
  66. 'update_status' => 'goods/lib/manage.statusUpdate',
  67. ),
  68. 'end' => array
  69. (
  70. 'insert' => 'goods/lib/manage.infoUpdate',
  71. 'update' => 'goods/lib/manage.infoUpdate',
  72. 'update_status' => 'goods/lib/manage.infoUpdate',
  73. ),
  74. # 同步更新另外一个或多个表的数据,将数据同步到关联表中
  75. 'sync' => array
  76. (
  77. 'goods/info_category' => array
  78. (
  79. # 更新另外一个表的字段 => 本表的字段
  80. 'where' => array('info_id', 'id'),
  81. # 要更新的数据
  82. 'update' => array('category_id' => 'category'),
  83. # 同步更新的类型,delete为先删再插入,update为直接更新
  84. 'type' => 'delete',
  85. ),
  86. 'goods/info_column' => array
  87. (
  88. # 更新另外一个表的字段 => 本表的字段
  89. 'where' => array('info_id', 'id'),
  90. # 要更新的数据
  91. 'update' => array('column_id' => 'column_id'),
  92. # 同步更新的类型,delete为先删再插入,update为直接更新
  93. 'type' => 'delete',
  94. ),
  95. 'goods/info_tag' => array
  96. (
  97. # 更新另外一个表的字段 => 本表的字段
  98. 'where' => array('info_id', 'id'),
  99. # 要更新的数据
  100. 'update' => array('tag_id' => 'tag_id'),
  101. # 同步更新的类型,delete为先删再插入,update为直接更新
  102. 'type' => 'delete',
  103. )
  104. ),
  105. # 数据结构 不同的字段放这里
  106. 'struct' => array
  107. (
  108. 'id' => array
  109. (
  110. 'type' => 'int-11',
  111. 'name' => 'ID',
  112. 'default' => '',
  113. 'desc' => '',
  114. 'match' => 'is_numeric',
  115. //'list' => true,
  116. ),
  117. 'name' => array
  118. (
  119. 'type' => 'varchar-800',
  120. 'name' => '商品名称',
  121. 'default' => '',
  122. 'desc' => '商品名称',
  123. 'match' => 'is_string',
  124. 'update' => 'textarea',
  125. 'search' => 'fulltext',
  126. //'list' => true,
  127. //'edit' => true,
  128. ),
  129. 'sell_type' => array
  130. (
  131. 'type' => 'int-11',
  132. 'name' => '售卖类型',
  133. 'default' => '1',
  134. 'desc' => '售卖类型',
  135. 'match' => 'is_numeric',
  136. 'update' => 'radio',
  137. 'option' => $sell_type,
  138. 'control' => 'sell_type',
  139. ),
  140. 'buy_type' => array
  141. (
  142. 'type' => 'int-11',
  143. 'name' => '采购类型',
  144. 'default' => '1',
  145. 'desc' => '采购类型',
  146. 'match' => 'is_numeric',
  147. 'update' => 'radio',
  148. 'option' => $buy_type,
  149. ),
  150. 'column_id' => array
  151. (
  152. 'type' => 'varchar-8000',
  153. 'name' => '售卖栏目',
  154. 'default' => '',
  155. 'desc' => '售卖栏目',
  156. 'match' => 'option',
  157. 'update' => 'checkbox',
  158. 'option' => $column,
  159. //'list' => true,
  160. ),
  161. 'category' => array
  162. (
  163. 'type' => 'varchar-500',
  164. 'name' => '属性规格分类',
  165. 'default' => '',
  166. 'desc' => '属性规格分类',
  167. 'match' => 'is_string',
  168. 'search' => 'linkage',
  169. 'update' => 'linkage',
  170. 'option' => Dever::url('api.get', 'category'),
  171. //'list' => 'Dever::load("category/api.string", "{category}")',
  172. ),
  173. # 以下几个分类其实在关联表中已经有了,放到这里是为了查询方便,一般只有三级分类,多了就从关联表查询吧
  174. 'top_category_id' => array
  175. (
  176. 'type' => 'int-11',
  177. 'name' => '顶级分类ID-顶级分类,用于分类查询',
  178. 'default' => '-1',
  179. 'desc' => '顶级分类ID',
  180. 'match' => 'is_numeric',
  181. ),
  182. 'second_category_id' => array
  183. (
  184. 'type' => 'int-11',
  185. 'name' => '二级分类ID-二级分类,用于分类查询',
  186. 'default' => '-1',
  187. 'desc' => '二级分类ID',
  188. 'match' => 'is_numeric',
  189. ),
  190. 'category_id' => array
  191. (
  192. 'type' => 'int-11',
  193. 'name' => '子分类ID-最后一个级别的分类,用于分类查询',
  194. 'default' => '-1',
  195. 'desc' => '子分类ID',
  196. 'match' => 'is_numeric',
  197. ),
  198. 'tax' => array
  199. (
  200. 'type' => 'varchar-80',
  201. 'name' => '商品税点-输入数字,自动计算百分比,如10,就是10%税点',
  202. 'default' => '',
  203. 'desc' => '商品税点',
  204. 'match' => 'option',
  205. 'update' => 'text',
  206. //'list' => true,
  207. ),
  208. 'sku_type' => array
  209. (
  210. 'type' => 'int-11',
  211. 'name' => '商品库存',
  212. 'default' => '1',
  213. 'desc' => '商品库存',
  214. 'match' => 'is_numeric',
  215. 'update' => 'radio',
  216. 'option' => $sku_type,
  217. //'list' => true,
  218. //'edit' => true,
  219. ),
  220. 'tag_id' => array
  221. (
  222. 'type' => 'varchar-800',
  223. 'name' => '商品标签',
  224. 'default' => '',
  225. 'desc' => '标签',
  226. 'match' => 'option',
  227. 'update' => 'checkbox',
  228. 'option' => $tag,
  229. //'list' => true,
  230. ),
  231. 'area' => array
  232. (
  233. 'type' => 'int-11',
  234. 'name' => '所在地区',
  235. 'default' => '',
  236. 'desc' => '所在地区',
  237. 'match' => 'is_string',
  238. //'search' => 'linkage',
  239. //'update' => 'linkage',
  240. //'option' => Dever::url('api.get?level_total=1', 'area'),
  241. //'list' => 'Dever::load("area/api.string", "{goods_area}")',
  242. ),
  243. 'mode' => array
  244. (
  245. 'type' => 'int-11',
  246. 'name' => '取货形式',
  247. 'default' => '1',
  248. 'desc' => '取货形式',
  249. 'match' => 'is_numeric',
  250. //'update' => 'radio',
  251. 'option' => $mode,
  252. ),
  253. 'price_type' => array
  254. (
  255. 'type' => 'int-11',
  256. 'name' => '商品类型-套餐商品由多个普通商品组成,可以单独定义库存,组合商品也由多个普通商品组成的,但库存无法自定义',
  257. 'default' => '1',
  258. 'desc' => '价格类型',
  259. 'match' => 'is_numeric',
  260. 'update' => 'radio',
  261. 'option' => $price_type,
  262. 'control' => 'price_type',
  263. ),
  264. 'sku_id' => array
  265. (
  266. 'type' => 'int-11',
  267. 'name' => 'sku_id',
  268. 'default' => '-1',
  269. 'desc' => 'sku_id',
  270. 'match' => 'is_numeric',
  271. ),
  272. 'code' => array
  273. (
  274. 'type' => 'varchar-100',
  275. 'name' => '商品条码号',
  276. 'default' => '',
  277. 'desc' => '商品条码号',
  278. 'match' => 'is_string',
  279. //'update' => 'text',
  280. //'search' => 'fulltext',
  281. //'list' => true,
  282. ),
  283. 'price' => array
  284. (
  285. 'type' => 'varchar-100',
  286. 'name' => '销售价',
  287. 'default' => '',
  288. 'desc' => '销售价',
  289. 'match' => 'option',
  290. //'update' => 'text',
  291. 'show' => 'price_type=1',
  292. ),
  293. 's_price' => array
  294. (
  295. 'type' => 'varchar-100',
  296. 'name' => '市场价',
  297. 'default' => '',
  298. 'desc' => '市场价',
  299. 'match' => 'option',
  300. //'update' => 'text',
  301. 'show' => 'price_type=1',
  302. ),
  303. 'f_price' => array
  304. (
  305. 'type' => 'varchar-100',
  306. 'name' => '门店采购价',
  307. 'default' => '',
  308. 'desc' => '采购价',
  309. 'match' => 'option',
  310. //'update' => 'text',
  311. 'show' => 'price_type=1',
  312. ),
  313. 'c_price' => array
  314. (
  315. 'type' => 'varchar-100',
  316. 'name' => '成本价',
  317. 'default' => '',
  318. 'desc' => '成本价',
  319. 'match' => 'option',
  320. //'update' => 'text',
  321. //'list' => true,
  322. ),
  323. 'min' => array
  324. (
  325. 'type' => 'int-11',
  326. 'name' => '起购数',
  327. 'default' => '1',
  328. 'desc' => '起购数',
  329. 'match' => 'is_string',
  330. //'update' => 'text',
  331. //'list' => true,
  332. ),
  333. 'unit' => array
  334. (
  335. 'type' => 'varchar-100',
  336. 'name' => '计量单位',
  337. 'default' => '',
  338. 'desc' => '计量单位',
  339. 'match' => 'is_string',
  340. //'update' => 'text',
  341. //'list' => true,
  342. ),
  343. 'weight' => array
  344. (
  345. 'type' => 'varchar-100',
  346. 'name' => '重量',
  347. 'default' => '',
  348. 'desc' => '重量',
  349. 'match' => 'is_string',
  350. //'update' => 'text',
  351. //'list' => true,
  352. ),
  353. 'goods' => array
  354. (
  355. 'type' => 'text-1000',
  356. 'name' => '套餐商品配置-套餐和组合商品只可以选择普通商品',
  357. 'default' => '',
  358. 'desc' => '套餐商品配置',
  359. 'match' => 'is_string',
  360. 'show' => 'price_type=3,4',
  361. 'update' => array
  362. (
  363. array
  364. (
  365. 'col' => 'goods_id',
  366. 'name' => '选择商品',
  367. 'default' => '',
  368. 'desc' => '选择商品',
  369. 'match' => 'option',
  370. 'update' => 'select',
  371. 'update_search' => 'goods/lib/manage.search?price_type=1',
  372. ),
  373. array
  374. (
  375. 'col' => 'num',
  376. 'name' => '数量',
  377. 'default' => '1',
  378. 'desc' => '数量',
  379. 'match' => 'is_string',
  380. 'update' => 'text',
  381. ),
  382. ),
  383. ),
  384. 'cover' => array
  385. (
  386. 'type' => 'varchar-150',
  387. 'name' => '封面图-图片尺寸300*300px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式,用户上传图片之后会自动进行居中裁剪',
  388. 'default' => '',
  389. 'desc' => '封面图',
  390. 'match' => 'is_string',
  391. 'update' => 'image',
  392. 'key' => '1',
  393. 'place' => '300*300',
  394. 'list_name' => '商品详情',
  395. 'list' => 'Dever::load("goods/lib/manage.info", "{id}")',
  396. 'list_header' => array('width' => '60%'),
  397. ),
  398. 'video' => array
  399. (
  400. 'type' => 'varchar-800',
  401. 'name' => '视频-视频格式mp4,上传大小不能超过4G',
  402. 'default' => '',
  403. 'desc' => '视频',
  404. 'match' => 'option',
  405. 'update' => 'video',
  406. 'key' => '3',
  407. 'place' => '150',
  408. 'upload' => 'yun',
  409. 'large' => true,
  410. //'cover' => 'pic',//封面图字段名
  411. ),
  412. 'pic' => array
  413. (
  414. 'type' => 'text-255',
  415. 'name' => '多张图片-图片尺寸759*562px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式,用户上传图片之后会自动进行居中裁剪',
  416. 'default' => '',
  417. 'desc' => '多张图片',
  418. 'match' => 'is_string',
  419. 'update' => 'images',
  420. 'key' => '1',
  421. 'place' => '759*562',
  422. ),
  423. 'hot' => array
  424. (
  425. 'type' => 'int-11',
  426. 'name' => '是否热门商品',
  427. 'default' => '2',
  428. 'desc' => '是否热门商品',
  429. 'match' => 'is_numeric',
  430. //'update' => 'radio',
  431. 'option' => $yes,
  432. //'list' => true,
  433. //'edit' => true,
  434. ),
  435. 'top' => array
  436. (
  437. 'type' => 'int-11',
  438. 'name' => '是否推荐商品',
  439. 'default' => '2',
  440. 'desc' => '是否推荐商品',
  441. 'match' => 'is_numeric',
  442. //'update' => 'radio',
  443. 'option' => $yes,
  444. //'list' => true,
  445. //'edit' => true,
  446. ),
  447. 'youhui' => array
  448. (
  449. 'type' => 'int-11',
  450. 'name' => '是否每日优惠',
  451. 'default' => '2',
  452. 'desc' => '是否每日优惠',
  453. 'match' => 'is_numeric',
  454. //'update' => 'radio',
  455. 'option' => $yes,
  456. //'list' => true,
  457. //'edit' => true,
  458. ),
  459. 'content' => array
  460. (
  461. 'type' => 'text-800',
  462. 'name' => '内容介绍',
  463. 'default' => '',
  464. 'desc' => '内容介绍',
  465. 'match' => 'is_string',
  466. 'update' => 'editor',
  467. 'key' => '1',
  468. ),
  469. 'status' => array
  470. (
  471. 'type' => 'tinyint-1',
  472. 'name' => '状态',
  473. 'default' => '2',
  474. 'desc' => '状态',
  475. 'match' => 'is_numeric',
  476. //'update' => 'radio',
  477. 'option' => $status,
  478. 'search' => 'select',
  479. 'list' => true,
  480. 'edit' => true,
  481. 'mul' => true,
  482. ),
  483. 'reorder' => array
  484. (
  485. 'type' => 'int-11',
  486. 'name' => '排序-数值越大越靠前,相当于置顶',
  487. 'default' => '1',
  488. 'desc' => '请输入排序',
  489. 'match' => 'option',
  490. //'update' => 'text',
  491. 'search' => 'order',
  492. 'list' => true,
  493. 'order' => 'desc',
  494. 'edit' => true,
  495. ),
  496. 'state' => array
  497. (
  498. 'type' => 'tinyint-1',
  499. 'name' => '数据状态',
  500. 'default' => '1',
  501. 'desc' => '请选择状态',
  502. 'match' => 'is_numeric',
  503. ),
  504. 'udate' => array
  505. (
  506. 'type' => 'int-11',
  507. 'name' => '更新时间',
  508. 'match' => array('is_numeric', time()),
  509. 'desc' => '',
  510. ),
  511. 'cdate' => array
  512. (
  513. 'type' => 'int-11',
  514. 'name' => '发布时间',
  515. 'match' => array('is_numeric', time()),
  516. 'desc' => '',
  517. # 只有insert时才生效
  518. 'insert' => true,
  519. 'search' => 'date',
  520. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  521. ),
  522. ),
  523. # 索引
  524. 'index' => array
  525. (
  526. 1 => array
  527. (
  528. 'search' => 'category,top_category_id,second_category_id,category_id,mode,area',
  529. ),
  530. # 版本号 更改版本号会更新当前表的索引
  531. 'version' => 1,
  532. ),
  533. # 管理功能
  534. 'manage' => array
  535. (
  536. // 载入自定义资源 路径可以配置在config里。这里没有写路径。demo.css
  537. 'res' => array
  538. (
  539. //'css' => 'demo',
  540. ),
  541. //'insert' => false,
  542. //'delete' => false,
  543. 'mul' => true,
  544. # 自定义快捷新增和编辑
  545. 'button' => array
  546. (
  547. //'类别管理' => array('list', 'cate&project=demand&search_option_key=cate&search_option_tablename=类别&oper_parent=info&oper_project=demand'),
  548. ),
  549. # 表格使用html模式,默认是js渲染模式
  550. 'list_table' => 'html',
  551. # 列表里的按钮
  552. 'list_button' => array
  553. (
  554. 'update' => array('编辑', 'info'),
  555. 'fast' => array('属性设置', '"info_attr&project=goods&search_option_info_id={id}&search_option_category={category}&oper_parent=info&oper_project=goods&oper_save_jump=info&where_id={id}"', '{price_type} == 2'),
  556. 'fast_list' => array('价格设置', '"info_sku&project=goods&goods_id={id}&page_type=1"', '{price_type} > 0'),
  557. 'list2' => array('价格模板', '"goods&project=price&search_option_goods_id={id}&oper_table=info&oper_project=goods"', '{price_type} > 0'),
  558. 'br1' => array('<br />'),
  559. //'delete' => '删除',
  560. ),
  561. ),
  562. 'alter' => array
  563. (
  564. 2 => array
  565. (
  566. array('update', 'price', 'price', 'varchar-100 0 销售价'),
  567. array('update', 's_price', 's_price', 'varchar-100 0 市场价'),
  568. array('update', 'f_price', 'f_price', 'varchar-100 0 采购价'),
  569. ),
  570. 'version' => 2,
  571. ),
  572. # request 请求接口定义
  573. 'request' => array
  574. (
  575. 'getAllByName' => array
  576. (
  577. # 匹配的正则或函数 选填项
  578. 'option' => array
  579. (
  580. 'id' => array('yes', 'in'),
  581. 'name' => array('yes', 'like'),
  582. 'state' => 1,
  583. ),
  584. 'type' => 'all',
  585. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  586. 'col' => '*,name as value,name as label|id',
  587. ),
  588. # 后台搜索用到 也可以不加,自动生成
  589. 'search' => array
  590. (
  591. # 匹配的正则或函数 选填项
  592. 'option' => array
  593. (
  594. 'ids' => array('yes-id', 'in'),
  595. 'name' => array('yes', 'like'),
  596. 'price_type' => 'yes',
  597. 'id' => 'yes',
  598. 'status' => 1,
  599. 'state' => 1,
  600. ),
  601. 'type' => 'all',
  602. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  603. 'limit' => '0,10',
  604. 'col' => 'name as name, id, id as value, "" as selected, "" as disabled|id',
  605. ),
  606. # 获取一条数据
  607. 'getOne' => array
  608. (
  609. # 匹配的正则或函数 选填项
  610. 'option' => array
  611. (
  612. 'id' => 'yes',
  613. 'status' => 1,
  614. 'state' => 1,
  615. ),
  616. 'type' => 'one',
  617. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  618. 'col' => '*',
  619. ),
  620. # 推荐列表
  621. 'getTop' => array
  622. (
  623. # 匹配的正则或函数 选填项
  624. 'option' => array
  625. (
  626. 'hot' => 'yes',
  627. 'top' => 'yes',
  628. 'youhui' => 'yes',
  629. 'status' => 1,
  630. 'state' => 1,
  631. ),
  632. 'type' => 'all',
  633. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  634. 'limit' => '0,6',
  635. 'col' => '*,id as goods_id',
  636. ),
  637. # 列表
  638. 'getAll' => array
  639. (
  640. # 匹配的正则或函数 选填项
  641. 'option' => array
  642. (
  643. 'audit' => 2,
  644. 'category' => array('yes', 'like'),
  645. 'top_category_id' => 'yes',
  646. 'second_category_id' => 'yes',
  647. 'category_id' => 'yes',
  648. //'status' => 1,
  649. 'state' => 1,
  650. ),
  651. 'type' => 'all',
  652. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  653. 'limit' => '0,10',
  654. //'page' => array(10, 'list'),
  655. 'col' => '*',
  656. ),
  657. # 列表
  658. 'getData' => array
  659. (
  660. # 匹配的正则或函数 选填项
  661. 'option' => array
  662. (
  663. 'price_type' => array('yes', 'in'),
  664. 'status' => 1,
  665. 'state' => 1,
  666. ),
  667. 'type' => 'all',
  668. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  669. //'limit' => '0,10',
  670. //'page' => array(10, 'list'),
  671. 'col' => '*',
  672. ),
  673. # 分页
  674. 'getPageAll' => array
  675. (
  676. # 匹配的正则或函数 选填项
  677. 'option' => array
  678. (
  679. 'shop_id' => 'yes',
  680. 'brand_id' => 'yes',
  681. 'name' => array('yes', 'like'),
  682. 'column_id' => array('yes', 'like'),
  683. 'category' => array('yes', 'like'),
  684. 'top_category_id' => 'yes',
  685. 'second_category_id' => 'yes',
  686. 'category_id' => 'yes',
  687. 'status' => 1,
  688. 'state' => 1,
  689. ),
  690. 'type' => 'all',
  691. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  692. 'page' => array(10, 'list'),
  693. 'col' => '*',
  694. ),
  695. # 更新售出量
  696. 'updateSell' => array
  697. (
  698. 'type' => 'update',
  699. 'where' => array
  700. (
  701. 'id' => 'yes',
  702. ),
  703. 'set' => array
  704. (
  705. 'sell_num' => array('yes', '+='),
  706. ),
  707. ),
  708. 'like' => array
  709. (
  710. # 匹配的正则或函数 选填项
  711. 'option' => array
  712. (
  713. 'name' => array('yes', 'like'),
  714. 'id' => 'yes',
  715. //'status' => 1,
  716. 'state' => 1,
  717. ),
  718. 'type' => 'all',
  719. 'order' => array('reorder' => 'desc', 'id' => 'desc'),
  720. 'col' => '*|id',
  721. ),
  722. ),
  723. );
  724. return $config;