config.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <?php
  2. $ios_pay = array
  3. (
  4. 1 => '关闭小程序支付',
  5. 2 => '开启公众号支付',
  6. 3 => '开启小程序支付',
  7. );
  8. $video = array
  9. (
  10. 1 => '显示',
  11. 2 => '不显示',
  12. );
  13. return array
  14. (
  15. # 表名
  16. 'name' => 'config',
  17. # 显示给用户看的名称
  18. 'lang' => '基础设置',
  19. 'order' => 100,
  20. 'menu' => 'manage',
  21. # 数据结构
  22. 'struct' => array
  23. (
  24. 'id' => array
  25. (
  26. 'type' => 'int-11',
  27. 'name' => '系统ID',
  28. 'default' => '',
  29. 'desc' => '',
  30. 'match' => 'is_numeric',
  31. ),
  32. 'hr1' => array
  33. (
  34. 'name' => '通用设置',
  35. 'class' => '',//本项必须填写
  36. 'attr' => '',
  37. ),
  38. 'name' => array
  39. (
  40. 'type' => 'varchar-32',
  41. 'name' => '系统名称',
  42. 'default' => '',
  43. 'desc' => '请输入系统名称',
  44. 'match' => 'is_string',
  45. 'update' => 'text',
  46. ),
  47. 'info' => array
  48. (
  49. 'type' => 'text-255',
  50. 'name' => '系统介绍',
  51. 'default' => '',
  52. 'desc' => '请输入系统介绍',
  53. 'match' => 'option',
  54. 'update' => 'textarea',
  55. ),
  56. 'logo' => array
  57. (
  58. 'type' => 'varchar-150',
  59. 'name' => 'logo图片',
  60. 'default' => '',
  61. 'desc' => 'logo图片',
  62. 'match' => 'option',
  63. 'update' => 'image',
  64. 'key' => '1',
  65. 'place' => '150',
  66. ),
  67. 'hr3' => array
  68. (
  69. 'name' => '小程序支付设置',
  70. 'class' => '',//本项必须填写
  71. 'attr' => '',
  72. ),
  73. 'ios_pay' => array
  74. (
  75. 'type' => 'int-11',
  76. 'name' => 'ios支付设置',
  77. 'default' => '1',
  78. 'desc' => 'ios支付设置',
  79. 'match' => 'is_numeric',
  80. 'update' => 'radio',
  81. 'option' => $ios_pay,
  82. ),
  83. 'ios_pay_pic' => array
  84. (
  85. 'type' => 'varchar-150',
  86. 'name' => 'ios支付引导图-ios支付引导图',
  87. 'default' => '',
  88. 'desc' => 'ios支付引导图',
  89. 'match' => 'option',
  90. 'update' => 'image',
  91. 'key' => '1',
  92. 'place' => '150',
  93. //直接上传到云端
  94. //'upload' => 'qiniu',
  95. //上传大数据
  96. //'large' => true,
  97. ),
  98. 'hr4' => array
  99. (
  100. 'name' => '公众号支付设置',
  101. 'class' => '',//本项必须填写
  102. 'attr' => '',
  103. ),
  104. 'service_name' => array
  105. (
  106. 'type' => 'varchar-100',
  107. 'name' => '公众号名称',
  108. 'default' => '',
  109. 'desc' => '公众号名称',
  110. 'match' => 'option',
  111. 'update' => 'text',
  112. ),
  113. 'service_text' => array
  114. (
  115. 'type' => 'varchar-100',
  116. 'name' => '公众号支付成功时的小程序名称',
  117. 'default' => 'Jstyle精美电子刊',
  118. 'desc' => '公众号支付成功时的小程序名称',
  119. 'match' => 'is_string',
  120. 'update' => 'text',
  121. ),
  122. 'hr5' => array
  123. (
  124. 'name' => '视频设置',
  125. 'class' => '',//本项必须填写
  126. 'attr' => '',
  127. ),
  128. 'video' => array
  129. (
  130. 'type' => 'int-11',
  131. 'name' => '是否显示视频',
  132. 'default' => '1',
  133. 'desc' => '是否显示视频',
  134. 'match' => 'is_numeric',
  135. 'update' => 'radio',
  136. 'option' => $video,
  137. ),
  138. 'version' => array
  139. (
  140. 'type' => 'varchar-100',
  141. 'name' => '版本号',
  142. 'default' => '',
  143. 'desc' => '版本号',
  144. 'match' => 'option',
  145. 'update' => 'text',
  146. ),
  147. 'hr6' => array
  148. (
  149. 'name' => '试用设置',
  150. 'class' => '',//本项必须填写
  151. 'attr' => '',
  152. ),
  153. 'try_desc' => array
  154. (
  155. 'type' => 'text-255',
  156. 'name' => '试用说明',
  157. 'default' => '',
  158. 'desc' => '试用说明',
  159. 'match' => 'option',
  160. 'update' => 'editor',
  161. 'key' => 1,
  162. ),
  163. 'cdate' => array
  164. (
  165. 'type' => 'int-11',
  166. 'name' => '录入时间',
  167. 'match' => array('is_numeric', time()),
  168. 'desc' => '',
  169. # 只有insert时才生效
  170. 'insert' => true,
  171. ),
  172. ),
  173. 'default' => array
  174. (
  175. 'col' => 'name,info,cdate',
  176. 'value' => array
  177. (
  178. '"火星电子刊内容平台","火星电子刊内容平台",' . time(),
  179. ),
  180. ),
  181. /*
  182. 'alter' => array
  183. (
  184. 2 => array
  185. (
  186. array('update', 'task_id', 'task_id', 'varchar-800 软装任务链接'),
  187. //array('add', 'config', 'config', 'int-11 1 配置'),
  188. ),
  189. 'version' => 2,
  190. ),
  191. */
  192. 'manage' => array
  193. (
  194. # 后台管理不要列表页
  195. 'list' => 'update',
  196. ),
  197. );