account_cert.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. return [
  3. 'list' => [
  4. 'where' => ['account_id'],
  5. 'field' => [
  6. 'id',
  7. 'platform_cert_id' => [
  8. 'show' => 'Dever::call("Api/Lib/App.getCertName", "{platform_cert_id}")',
  9. ],
  10. 'number',
  11. 'cdate',
  12. ],
  13. 'data_button' => [
  14. '编辑' => ['fastedit'],
  15. ],
  16. 'button' => [
  17. '新增' => ['fastadd'],
  18. ],
  19. 'search' => [
  20. 'account_id' => 'hidden',
  21. 'number',
  22. ],
  23. ],
  24. 'update' => [
  25. 'desc' => '有的证书会自动同步,无需手动添加,如微信支付的平台证书',
  26. 'field' => [
  27. 'account_id' => 'hidden',
  28. 'platform_cert_id' => [
  29. 'rules' => true,
  30. 'type' => 'select',
  31. //'option' => 'Dever::call("Api/Lib/App.getCert", '.$account['platform_id'].')',
  32. 'option' => 'Dever::call("Api/Lib/App.getCert", "{account_id}")',
  33. //'remote' => 'api/manage.getCertName',
  34. //'remote_default' => false,
  35. ],
  36. 'number' => [
  37. 'rules' => true,
  38. ],
  39. 'public' => [
  40. //'rules' => true,
  41. 'type' => 'textarea',
  42. ],
  43. 'private' => [
  44. //'rules' => true,
  45. 'type' => 'textarea',
  46. ],
  47. ],
  48. ],
  49. ];