123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- $account_id = Dever::input('set')['account_id'] ?? 0;
- if (!$account_id) {
- $account_id = Dever::input('field')['account_id'] ?? 0;
- }
- $account = Dever::db('account', 'api')->find($account_id);
- return array
- (
- 'list' => array
- (
- 'where' => array('account_id' => $account_id),
- 'field' => array
- (
- 'id',
- 'platform_cert_id' => array
- (
- 'show' => 'Dever::call("api/app.getCertName", "{platform_cert_id}")',
- ),
- 'number',
- 'cdate',
- ),
- 'data_button' => array
- (
- '编辑' => array('fastedit', array('account_id' => $account_id)),
- ),
- 'button' => array
- (
- '新增' => array('fastadd', array('account_id' => $account_id)),
- ),
- 'search' => array
- (
- 'account_id' => 'hidden',
- 'number',
- ),
- ),
- 'update' => array
- (
- 'desc' => '有的证书会自动同步,无需手动添加,如微信支付的平台证书',
- 'field' => array
- (
- 'account_id' => 'hidden',
- 'platform_cert_id' => array
- (
- 'rules' => true,
- 'type' => 'select',
- 'option' => 'Dever::call("api/app.getCert", '.$account['platform_id'].')',
- //'remote' => 'api/manage.getCertName',
- //'remote_default' => false,
- ),
- 'number' => array
- (
- 'rules' => true,
- ),
- 'public' => array
- (
- //'rules' => true,
- 'type' => 'textarea',
- ),
- 'private' => array
- (
- //'rules' => true,
- 'type' => 'textarea',
- ),
- ),
- ),
- );
|