| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 | 
							- <?php
 
- $status = array
 
- (
 
-     1 => '正常',
 
-     2 => '申请退款中',
 
-     3 => '已取消',
 
- );
 
- return array
 
- (
 
-     # 表名
 
-     'name' => 'use_log',
 
-     # 显示给用户看的名称
 
-     'lang' => '使用记录',
 
-     'menu' => false,
 
-     'status' => $status,
 
-     # 数据结构
 
-     'struct' => array
 
-     (
 
-     
 
-         'id'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => 'ID',
 
-             'default'   => '',
 
-             'desc'      => '',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'update'    => 'hidden',
 
-             //'list'        => true,
 
-         ),
 
-         'uid'       => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '购买人名称',
 
-             'default'   => '0',
 
-             'desc'      => '请选择用户',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'text',
 
-             //'search'  => 'select',
 
-             'search'    => array
 
-             (
 
-                 'api' => 'passport/user-one',
 
-                 'col' => 'username',
 
-                 'result' => 'id',
 
-             ),
 
-             'list'      => 'Dever::load("shop/lib/manage.user", {id})',
 
-         ),
 
-         'card_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '礼品卡名称',
 
-             'default'   => '',
 
-             'desc'      => '礼品卡名称',
 
-             'match'     => 'is_numeric',
 
-             'list'      => 'Dever::load("card/info-find#name", {card_id})',
 
-         ),
 
-         
 
-         'order_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '零售订单表id',
 
-             'default'   => '',
 
-             'desc'      => '订单表id',
 
-             'match'     => 'is_numeric',
 
-         ),
 
-         'use_cash'        => array
 
-         (
 
-             'type'      => 'varchar-11',
 
-             'name'      => '使用金额',
 
-             'default'   => '0',
 
-             'desc'      => '使用金额',
 
-             'match'     => 'is_string',
 
-         ),
 
-         'status'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '状态',
 
-             'default'   => '1',
 
-             'desc'      => '状态',
 
-             'match'     => 'is_numeric',
 
-             //'update'  => 'select',
 
-             'option'    => $status,
 
-             'search'    => 'select',
 
-             'list'      => true,
 
-             'edit'      => true,
 
-         ),
 
-         'state'     => array
 
-         (
 
-             'type'      => 'tinyint-1',
 
-             'name'      => '状态',
 
-             'default'   => '1',
 
-             'desc'      => '请选择状态',
 
-             'match'     => 'is_numeric',
 
-         ),
 
-         
 
-         'cdate'     => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '创建时间',
 
-             'match'     => array('is_numeric', time()),
 
-             'desc'      => '',
 
-             # 只有insert时才生效
 
-             //'insert'    => true,
 
-             'search'    => 'date',
 
-             'list'      => 'date("Y-m-d H:i:s", {cdate})',
 
-         ),
 
-     ),
 
-     'manage' => array
 
-     (
 
-         'insert' => false,
 
-         'delete' => false,
 
-         //'page_list' => 'sell_order_goods',
 
-     ),
 
-     'request' => array
 
-     (
 
-         # 获取单条数据
 
-         'getIds' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'uid' => 'yes',
 
-                 'card_id' => 'yes',
 
-                 'order_id' => 'yes',
 
-                 'status' => 1,
 
-                 'state' => 1,
 
-             ),
 
-             'type' => 'all',
 
-             'col' => '*|id',
 
-         ),
 
-         # 获取多条数据
 
-         'getDataByIds' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'ids' => array('yes-id', 'in'),
 
-                 'uid' => 'yes',
 
-                 'card_id' => 'yes',
 
-                 'order_id' => 'yes',
 
-                 'state' => 1,
 
-             ),
 
-             'type' => 'all',
 
-             'col' => '*',
 
-         ),
 
-         # 获取多条数据
 
-         'getTotal' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'uid' => 'yes',
 
-                 'order_id' => 'yes',
 
-                 'status' => array('yes', 'in'),
 
-                 'state' => 1,
 
-             ),
 
-             'type' => 'count',
 
-             'col' => '*',
 
-         ),
 
-     ),
 
- );
 
 
  |