| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 | 
							- <?php
 
- $type = array
 
- (
 
- 	1 => '入账',
 
- 	//2 => '分账',
 
- 	3 => '提现',
 
- );
 
- $tixian_status = array
 
- (
 
-     1 => '提现成功',
 
-     2 => '提现失败',
 
- );
 
- $link = Dever::decode(Dever::input('refer'));
 
- $button = array
 
- (
 
-     '返回上一页' => array('location', $link),
 
- );
 
- return array
 
- (
 
-     # 表名
 
-     'name' => 'yspay_merchant_log',
 
-     # 显示给用户看的名称
 
-     'lang' => '银联资金日志列表',
 
-     'order' => -200,
 
-     'menu' => false,
 
-     'end' => array
 
-     (
 
-         'update_tixian_status' => 'pay/yspay/merchant.updateLog',
 
-     ),
 
-     # 数据结构
 
-     'struct' => array
 
-     (
 
-     
 
-         'id'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => 'ID',
 
-             'default'   => '',
 
-             'desc'      => '',
 
-             'match'     => 'is_numeric',
 
-             'order'    => 'desc',
 
-             'update'    => 'hidden',
 
-             //'list'        => true,
 
-         ),
 
-         'account_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '账户id',
 
-             'default'   => '',
 
-             'desc'      => '账户id',
 
-             'match'     => 'option',
 
-             'search'    => 'hidden',
 
-             'update'    => 'hidden',
 
-             'value'     => Dever::input('search_option_account_id'),
 
-         ),
 
-         'merchant_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '商户id',
 
-             'default'   => '',
 
-             'desc'      => '商户id',
 
-             'match'     => 'option',
 
-             'update'    => 'hidden',
 
-             'value'     => Dever::input('search_option_merchant_id'),
 
-             'list_name' => '商户名称',
 
-             'list'      => 'Dever::load("pay/yspay_merchant-one#name", "{merchant_id}")',
 
-         ),
 
-         'name'      => array
 
-         (
 
-             'type'      => 'varchar-100',
 
-             'name'      => '操作人',
 
-             'default'   => '',
 
-             'desc'      => '操作人',
 
-             'match'     => 'option',
 
-             'list_name' => '操作人',
 
-             'list'      => true,
 
-             'list_order' => 100,
 
-         ),
 
-         'type'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '类型',
 
-             'default'   => '',
 
-             'desc'      => '类型',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'text',
 
-             'option'    => $type,
 
-             'search'	=> 'select',
 
-             'list'		=> true,
 
-         ),
 
-         'cash'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '交易金额',
 
-             'default'   => '0',
 
-             'desc'      => '交易金额',
 
-             'match'     => 'option',
 
-             'update'    => 'text',
 
-             'list'      => 'Dever::number({cash}/100, 2)',
 
-         ),
 
-         'yue'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '交易后余额',
 
-             'default'   => '0',
 
-             'desc'      => '交易后余额',
 
-             'match'     => 'option',
 
-             'update'    => 'text',
 
-             'list'      => 'Dever::number({yue}/100, 2)',
 
-         ),
 
-         'tixian_status'      => array
 
-         (
 
-             'type'      => 'tinyint-1',
 
-             'name'      => '提现状态',
 
-             'default'   => '1',
 
-             'desc'      => '提现状态',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'text',
 
-             'option'    => $tixian_status,
 
-             'search'    => 'select',
 
-             'list'      => true,
 
-             'edit'      => '{my_role_id} == 1 && {type} == 3 && {tixian_status} == 1'
 
-         ),
 
-         '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", {cdate})',
 
-         ),
 
-     ),
 
-     'manage' => array
 
-     (
 
-         'edit' => false,
 
-         'insert' => false,
 
-         'delete' => false,
 
-         'button' => $button,
 
-     ),
 
-     'request' => array
 
-     (
 
-         'getList' => array
 
-         (
 
-             'option' => array
 
-             (
 
-                 'start' => array('yes-cdate', '>='),
 
-                 'end' => array('yes-cdate', '<='),
 
-                 'type' => 'yes',
 
-                 'merchant_id' => 'yes',
 
-                 'state' => 1,
 
-             ),
 
-             'type' => 'all',
 
-             'page' => array(20, 'list'),
 
-             'order' => array('id' => 'desc'),
 
-             'col' => '*',
 
-         ),
 
-     ),
 
- );
 
 
  |