123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <?php
- $platform_id = Dever::input('set')['platform_id'] ?? 0;
- if (!$platform_id) {
- $platform_id = Dever::input('field')['platform_id'] ?? 0;
- }
- return [
- 'list' => [
- 'where' => ['platform_id' => $platform_id],
- 'field' => [
- 'id',
- 'name',
- 'type',
- 'cdate',
- ],
- 'data_button' => [
- '编辑' => ['fastedit', ['platform_id' => $platform_id]],
- ],
- 'button' => [
- '新增' => ['fastadd', ['platform_id' => $platform_id]],
- ],
- 'search' => [
- 'platform_id' => 'hidden',
- 'name',
- ],
- ],
- 'update' => [
- 'tab' => [
- '基本设置' => 'name,type,cipher_algo,option,iv,tag_len,aad,after',
- '加密设置' => 'encrypt_cert_type,encrypt_cert,encrypt_cert_id',
- '解密设置' => 'decrypt_cert_type,decrypt_cert,decrypt_cert_id',
- ],
- 'field' => [
- 'platform_id' => 'hidden',
- 'name',
- 'type' => 'radio',
- 'cipher_algo' => [
- 'desc' => '直接填写密码学方式的值,如aes-256-cbc',
- ],
- 'option' => [
- 'desc' => '直接输入填充模式的常量即可,如:OPENSSL_NO_PADDING'
- ],
- 'iv' => [
- 'desc' => '可以直接使用平台设置中的参数名',
- ],
- 'tag' => [
- 'desc' => '可以直接使用平台设置中的参数名',
- ],
- 'tag_len',
- 'aad' => [
- 'desc' => '可以直接使用平台设置中的参数名',
- ],
- 'after' => 'radio',
- 'encrypt_cert_type' => 'radio',
- 'encrypt_cert' => [
- 'type' => 'text',
- 'desc' => '可以直接使用平台设置中的参数名',
- ],
- 'encrypt_cert_id' => [
- 'type' => 'select',
- 'option' => 'Dever::call("api/cert.list", ['.$platform_id.'])',
- ],
- 'decrypt_cert_type' => 'radio',
- 'decrypt_cert' => [
- 'type' => 'text',
- 'desc' => '可以直接使用平台设置中的参数名',
- ],
- 'decrypt_cert_id' => [
- 'type' => 'select',
- 'option' => 'Dever::call("api/cert.list", ['.$platform_id.'])',
- ],
- ],
- 'control' => [
- 'cipher_algo' => [
- 'type' => [2,3]
- ],
- 'option' => [
- 'type' => [1,2]
- ],
- 'iv' => [
- 'type' => 2,
- ],
-
- 'tag' => [
- 'type' => 2,
- ],
- 'aad' => [
- 'type' => 2,
- ],
- 'tag_len' => [
- 'type' => 2,
- ],
- 'encrypt_cert' => [
- 'encrypt_cert_type' => 3,
- ],
- 'encrypt_cert_id' => [
- 'encrypt_cert_type' => [1,2],
- ],
- 'decrypt_cert' => [
- 'decrypt_cert_type' => 3,
- ],
- 'decrypt_cert_id' => [
- 'decrypt_cert_type' => [1,2],
- ],
- ],
- ],
- ];
|