<?php return array ( 'source' => 'connect/info', 'list' => array ( 'field' => array ( 'id', 'name', 'method', ), 'data_button' => array ( '编辑' => 'edit', '接口' => array('route', array ( 'path' => 'supplier/connect_api', 'param' => array ( 'set' => array('connect_id' => 'id', 'menu' => 'supplier/connect_info', 'parent' => 'supplier/connect_api'), ), ), 'ChatLineSquare'), ), 'button' => array ( '新增' => 'add', ), 'search' => array ( 'name', ), ), 'update' => array ( 'tab' => array ( '基本设置' => 'name,method,post_method', '标准请求' => 'connect/request_body,connect/request_header', '响应设置' => 'response_type,response_data,response_msg,response_code,connect/response_code', '字段转换' => 'connect/convert', '签名设置' => 'sign_method,sign_col,sign_type,sign_sort,sign_encode,sign_empty,sign_after', '对称加密[暂时不支持]' => 'ssl_method,ssl_key,ssl_option,ssl_iv,ssl_after', '接口设置' => 'connect/api', ), 'field' => array ( 'name', 'method' => array ( 'type' => 'radio', 'control' => true, ), 'post_method' => array ( 'type' => 'radio', ), 'connect/request_body' => array ( 'name' => '请求体设置', 'desc' => '标准请求body,没有标准请求体可以不填写', 'where' => array('connect_id' => 'id'), ), 'connect/request_header' => array ( 'name' => '请求头设置', 'desc' => '标准请求header,没有标准请求头可以不填写', 'where' => array('connect_id' => 'id'), ), 'connect/convert' => array ( 'name' => '字段转换', 'desc' => '设置字段转换后,响应的数据名称将根据这些字段进行转换', 'where' => array('connect_id' => 'id'), ), 'response_type' => array ( 'type' => 'radio', //'control' => true, ), 'response_data', 'response_msg', 'response_code', 'connect/response_code' => array ( 'name' => '响应状态码', 'desc' => '设置标准的响应状态码,也可以只设置成功值,其他值均为失败', 'where' => array('connect_id' => 'id'), ), 'sign_method' => 'radio', 'sign_col' => array ( 'desc' => '按顺序做加密,用+号隔开,为空则所有字段均参与加密', ), 'sign_type' => 'radio', 'sign_sort' => 'radio', 'sign_encode' => array ( 'type' => 'radio', 'desc' => '如果签名中包含有特殊字符,是否进行转码', ), 'sign_empty' => array ( 'type' => 'radio', //'desc' => '如果签名中有空值,是否参与加密', ), 'sign_after' => 'radio', 'ssl_method' => array ( 'desc' => '如AES、DES等,直接填写加密方式的值', ), 'ssl_key', 'ssl_option' => 'radio', 'ssl_iv', 'ssl_after' => 'radio', 'connect/api' => array ( 'name' => '接口列表', 'where' => array('connect_id' => 'id'), ), ), 'control' => array ( 'post_method' => array ( 'method' => 2, ), ), ), );