mm_os 2.8.1 → 2.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/core/com/param/drive.js +5 -4
  2. package/package.json +3 -3
  3. package/demo/app/dev/README.md +0 -1
  4. package/demo/app/dev/app.js +0 -149
  5. package/demo/app/dev/app.json +0 -12
  6. package/demo/app/dev/event_api/client/event.json +0 -11
  7. package/demo/app/dev/event_api/client/main.js +0 -19
  8. package/demo/app/dev/event_api/manage/event.json +0 -19
  9. package/demo/app/dev/event_api/manage/main.js +0 -26
  10. package/demo/app/dev/plugin/doc/static/api_list.html +0 -144
  11. package/demo/app/dev/plugin/doc/static/api_view.html +0 -692
  12. package/demo/app/dev/plugin/doc/static/index.html +0 -138
  13. package/demo/app/dev/plugin/doc/static/request_test.html +0 -311
  14. package/demo/app/dev/plugin/main/api_dev_client/api/api.json +0 -11
  15. package/demo/app/dev/plugin/main/api_dev_client/api/index.js +0 -54
  16. package/demo/app/dev/plugin/main/api_dev_client/api/param.json +0 -31
  17. package/demo/app/dev/plugin/main/api_dev_client/app/api.json +0 -13
  18. package/demo/app/dev/plugin/main/api_dev_client/app/index.js +0 -13
  19. package/demo/app/dev/plugin/main/api_dev_client/app/param.json +0 -147
  20. package/demo/app/dev/plugin/main/api_dev_client/app/sql.json +0 -28
  21. package/demo/app/dev/plugin/main/api_dev_client/auto/api.json +0 -37
  22. package/demo/app/dev/plugin/main/api_dev_client/auto/auto_db.js +0 -70
  23. package/demo/app/dev/plugin/main/api_dev_client/auto/auto_file.js +0 -32
  24. package/demo/app/dev/plugin/main/api_dev_client/auto/index.js +0 -51
  25. package/demo/app/dev/plugin/main/api_dev_client/auto/param.json +0 -51
  26. package/demo/app/dev/plugin/main/api_dev_client/com.js +0 -349
  27. package/demo/app/dev/plugin/main/api_dev_client/db/api.json +0 -10
  28. package/demo/app/dev/plugin/main/api_dev_client/db/index.js +0 -71
  29. package/demo/app/dev/plugin/main/api_dev_client/db/param.json +0 -31
  30. package/demo/app/dev/plugin/main/api_dev_client/dict/api.json +0 -10
  31. package/demo/app/dev/plugin/main/api_dev_client/dict/index.js +0 -49
  32. package/demo/app/dev/plugin/main/api_dev_client/dict/param.json +0 -29
  33. package/demo/app/dev/plugin/main/api_dev_client/event/api.json +0 -10
  34. package/demo/app/dev/plugin/main/api_dev_client/event/index.js +0 -31
  35. package/demo/app/dev/plugin/main/api_dev_client/event/param.json +0 -31
  36. package/demo/app/dev/plugin/main/api_dev_client/help/api.json +0 -10
  37. package/demo/app/dev/plugin/main/api_dev_client/help/index.js +0 -14
  38. package/demo/app/dev/plugin/main/api_dev_client/help/param.json +0 -31
  39. package/demo/app/dev/plugin/main/api_dev_client/nav/api.json +0 -10
  40. package/demo/app/dev/plugin/main/api_dev_client/nav/index.js +0 -36
  41. package/demo/app/dev/plugin/main/api_dev_client/nav/param.json +0 -36
  42. package/demo/app/dev/plugin/main/api_dev_client/plugin/api.json +0 -10
  43. package/demo/app/dev/plugin/main/api_dev_client/plugin/index.js +0 -13
  44. package/demo/app/dev/plugin/main/api_dev_client/plugin/param.json +0 -31
  45. package/demo/app/dev/plugin/main/api_dev_client/source/api.json +0 -10
  46. package/demo/app/dev/plugin/main/api_dev_client/source/index.js +0 -14
  47. package/demo/app/dev/plugin/main/api_dev_client/source/param.json +0 -31
  48. package/demo/app/dev/plugin/main/api_dev_client/sql/api.json +0 -10
  49. package/demo/app/dev/plugin/main/api_dev_client/sql/index.js +0 -13
  50. package/demo/app/dev/plugin/main/api_dev_client/sql/param.json +0 -31
  51. package/demo/app/dev/plugin/main/api_dev_client/task/api.json +0 -16
  52. package/demo/app/dev/plugin/main/api_dev_client/task/index.js +0 -13
  53. package/demo/app/dev/plugin/main/api_dev_client/task/param.json +0 -31
  54. package/demo/app/dev/plugin/main/api_dev_client/translate/api.json +0 -39
  55. package/demo/app/dev/plugin/main/api_dev_client/translate/index.js +0 -43
  56. package/demo/app/dev/plugin/main/api_dev_client/translate/param.json +0 -130
  57. package/demo/app/dev/plugin/main/api_dev_client/translate/sql.json +0 -62
  58. package/demo/app/dev/plugin/main/api_dev_client/ui/api.json +0 -10
  59. package/demo/app/dev/plugin/main/api_dev_client/ui/index.js +0 -146
  60. package/demo/app/dev/plugin/main/api_dev_client/ui/param.json +0 -31
  61. package/demo/app/dev/plugin/main/api_dev_client/view/api.json +0 -10
  62. package/demo/app/dev/plugin/main/api_dev_client/view/index.js +0 -100
  63. package/demo/app/dev/plugin/main/api_dev_client/view/param.json +0 -29
  64. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/block/nav.vue +0 -12
  65. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/block/obj.vue +0 -12
  66. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/block/post.vue +0 -12
  67. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/block/query.vue +0 -12
  68. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/edit.vue +0 -39
  69. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/list.vue +0 -12
  70. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/search.vue +0 -12
  71. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/table.vue +0 -12
  72. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/type.vue +0 -12
  73. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/view.vue +0 -56
  74. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/view.json +0 -48
  75. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/api.json +0 -37
  76. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/auto_db.js +0 -120
  77. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/copy/copy.js +0 -101
  78. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/copy/copy_framework.js +0 -118
  79. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/copy/copy_template.js +0 -78
  80. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/copy_file.js +0 -97
  81. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/common.js +0 -198
  82. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/django_server.js +0 -104
  83. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/helper.js +0 -161
  84. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/koa_art_server.js +0 -102
  85. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/mini_app_home.js +0 -415
  86. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/razor.js +0 -0
  87. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/springboot.js +0 -0
  88. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/thinkphp.js +0 -0
  89. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/uni_app_home.js +0 -418
  90. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/vue_cli_admin.js +0 -78
  91. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/vue_cli_home.js +0 -112
  92. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create_file.js +0 -97
  93. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/db/add_data.js +0 -221
  94. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/db/create_table.js +0 -162
  95. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/db/set_auth_table.js +0 -86
  96. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/index.js +0 -524
  97. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/param.json +0 -37
  98. package/demo/app/proxy/event_api/all/event.json +0 -20
  99. package/demo/app/proxy/event_api/all/main.js +0 -50
  100. package/demo/app/route/app.js +0 -131
  101. package/demo/app/route/app.json +0 -11
  102. package/demo/app/route/event_api/client/event.json +0 -10
  103. package/demo/app/route/event_api/client/main.js +0 -19
  104. package/demo/app/route/event_api/manage/event.json +0 -18
  105. package/demo/app/route/event_api/manage/main.js +0 -70
  106. package/demo/app/route/plugin/main/api_route_client/pass/api.json +0 -37
  107. package/demo/app/route/plugin/main/api_route_client/pass/index.js +0 -33
  108. package/demo/app/route/plugin/main/api_route_client/pass/param.json +0 -50
  109. package/demo/app/route/plugin/main/index.js +0 -144
  110. package/demo/app/route/plugin/main/plugin.json +0 -20
  111. package/demo/app/sys/app.js +0 -169
  112. package/demo/app/sys/app.json +0 -11
  113. package/demo/app/sys/event_api/api/before.js +0 -80
  114. package/demo/app/sys/event_api/api/check.js +0 -103
  115. package/demo/app/sys/event_api/api/event.json +0 -31
  116. package/demo/app/sys/event_api/api/main.js +0 -19
  117. package/demo/app/sys/event_api/apis/before.js +0 -80
  118. package/demo/app/sys/event_api/apis/event.json +0 -21
  119. package/demo/app/sys/event_api/apis/main.js +0 -19
  120. package/demo/app/sys/event_api/client/event.json +0 -10
  121. package/demo/app/sys/event_api/client/main.js +0 -17
  122. package/demo/app/sys/event_api/doc/event.json +0 -18
  123. package/demo/app/sys/event_api/doc/main.js +0 -67
  124. package/demo/app/sys/event_api/img/event.json +0 -11
  125. package/demo/app/sys/event_api/img/main.js +0 -90
  126. package/demo/app/sys/event_api/manage/event.json +0 -10
  127. package/demo/app/sys/event_api/manage/main.js +0 -19
  128. package/demo/app/sys/event_api/upload/event.json +0 -10
  129. package/demo/app/sys/event_api/upload/main.js +0 -17
  130. package/demo/app/sys/plugin/app_admin/index.js +0 -127
  131. package/demo/app/sys/plugin/app_admin/plugin.json +0 -20
  132. package/demo/app/sys/plugin/main/api_client/config/api.json +0 -39
  133. package/demo/app/sys/plugin/main/api_client/config/index.js +0 -37
  134. package/demo/app/sys/plugin/main/api_client/config/param.json +0 -27
  135. package/demo/app/sys/plugin/main/api_client/config/sql.json +0 -70
  136. package/demo/app/sys/plugin/main/api_client/lang/api.json +0 -37
  137. package/demo/app/sys/plugin/main/api_client/lang/index.js +0 -27
  138. package/demo/app/sys/plugin/main/api_client/lang/param.json +0 -22
  139. package/demo/app/sys/plugin/main/api_client/nav/api.json +0 -15
  140. package/demo/app/sys/plugin/main/api_client/nav/index.js +0 -39
  141. package/demo/app/sys/plugin/main/api_client/nav/param.json +0 -87
  142. package/demo/app/sys/plugin/main/api_client/query/api.json +0 -35
  143. package/demo/app/sys/plugin/main/api_client/query/index.js +0 -48
  144. package/demo/app/sys/plugin/main/api_client/theme/api.json +0 -37
  145. package/demo/app/sys/plugin/main/api_client/theme/index.js +0 -30
  146. package/demo/app/sys/plugin/main/api_client/theme/param.json +0 -31
  147. package/demo/app/sys/plugin/main/api_client/translate/api.json +0 -39
  148. package/demo/app/sys/plugin/main/api_client/translate/index.js +0 -21
  149. package/demo/app/sys/plugin/main/api_client/translate/param.json +0 -130
  150. package/demo/app/sys/plugin/main/api_client/translate/sql.json +0 -62
  151. package/demo/app/sys/plugin/main/api_upload/image/api.json +0 -15
  152. package/demo/app/sys/plugin/main/api_upload/image/index.js +0 -62
  153. package/demo/app/sys/plugin/main/api_upload/image/param.json +0 -9
  154. package/demo/app/sys/plugin/main/task/task_demo/index.js +0 -37
  155. package/demo/app/sys/plugin/main/task/task_demo/task.json +0 -24
  156. package/demo/app/sys/plugin/user/index.js +0 -127
  157. package/demo/app/sys/plugin/user/plugin.json +0 -20
  158. package/demo/app/sys/plugin/user/static/img/logo.png +0 -0
  159. package/demo/app/sys/static/img/avatar_1674484608066.png +0 -0
  160. package/demo/app/sys/static/img/avatar_1674633778171.jpeg +0 -0
  161. package/demo/app/sys/static/img/avatar_1674962702334.jpeg +0 -0
  162. package/demo/app/sys/static/img/avatar_1675075431736.jpeg +0 -0
  163. package/demo/app/sys/static/img/avatar_1675497065533.jpeg +0 -0
  164. package/demo/app/sys/static/img/avatar_1685352550990.jpeg +0 -0
  165. package/demo/app/sys/static/img/avatar_1685353685992.jpeg +0 -0
  166. package/demo/app/sys/static/img/avatar_1685353956587.jpeg +0 -0
  167. package/demo/app/sys/static/img/avatar_1685353971148.jpeg +0 -0
  168. package/demo/app/sys/static/img/avatar_1685353983723.jpeg +0 -0
  169. package/demo/app/sys/static/img/avatar_1685354014745.jpeg +0 -0
  170. package/demo/app/sys/static/img/avatar_1685354122355.jpeg +0 -0
  171. package/demo/app/sys/static/img/avatar_1685357983520.jpeg +0 -0
  172. package/demo/app/sys/static/img/avatar_1685358453383.jpeg +0 -0
  173. package/demo/app/sys/static/img/avatar_1685416570438.jpeg +0 -0
  174. package/demo/app/sys/static/img/avatar_1685512675830.png +0 -0
  175. package/demo/app/sys/static/img/avatar_1685939425608.jpeg +0 -0
  176. package/demo/app/sys/static/img/avatar_1685939886560.jpeg +0 -0
  177. package/demo/app/sys/static/img/avatar_1686106313194.png +0 -0
  178. package/demo/app/sys/static/img/avatar_1686371876175.png +0 -0
  179. package/demo/app/sys/static/img/avatar_1686372033596.png +0 -0
  180. package/demo/app/sys/static/img/avatar_1688215220669.png +0 -0
  181. package/demo/app/sys/static/img/avatar_1688531184690.png +0 -0
  182. package/demo/app/sys/static/img/avatar_1688531233080.png +0 -0
  183. package/demo/app/sys/static/img/avatar_1688548526909.png +0 -0
  184. package/demo/app/sys/static/img/avatar_1688549213411.png +0 -0
  185. package/demo/app/sys/static/img/avatar_1688549511977.png +0 -0
  186. package/demo/app/sys/static/img/avatar_1688549685464.png +0 -0
  187. package/demo/app/sys/static/img/avatar_1688608623049.png +0 -0
  188. package/demo/app/sys/static/img/avatar_1688638500476.png +0 -0
  189. package/demo/app/sys/static/img/avatar_1688638515195.png +0 -0
  190. package/demo/app/sys/static/img/avatar_1688638539928.png +0 -0
  191. package/demo/app/sys/static/img/avatar_1688638557960.png +0 -0
  192. package/demo/app/sys/static/img/avatar_1688638761798.png +0 -0
  193. package/demo/app/sys/static/img/avatar_1688638943140.png +0 -0
  194. package/demo/app/sys/static/img/avatar_1688639068330.png +0 -0
  195. package/demo/app/sys/static/img/image_1685357101273.jpeg +0 -0
  196. package/demo/app/sys/static/img/logo.png +0 -0
  197. package/demo/app/user/app.js +0 -148
  198. package/demo/app/user/app.json +0 -11
  199. package/demo/app/user/event_api/client/event.json +0 -10
  200. package/demo/app/user/event_api/client/main.js +0 -18
  201. package/demo/app/user/event_api/manage/event.json +0 -10
  202. package/demo/app/user/event_api/manage/main.js +0 -19
  203. package/demo/app/user/plugin/main/api_user_client/account/api.json +0 -39
  204. package/demo/app/user/plugin/main/api_user_client/account/index.js +0 -53
  205. package/demo/app/user/plugin/main/api_user_client/account/param.json +0 -130
  206. package/demo/app/user/plugin/main/api_user_client/base/api.json +0 -27
  207. package/demo/app/user/plugin/main/api_user_client/base/index.js +0 -84
  208. package/demo/app/user/plugin/main/api_user_client/base/param.json +0 -130
  209. package/demo/app/user/plugin/main/api_user_client/core/api.json +0 -20
  210. package/demo/app/user/plugin/main/api_user_client/core/forgot.js +0 -14
  211. package/demo/app/user/plugin/main/api_user_client/core/password.js +0 -14
  212. package/demo/app/user/plugin/main/api_user_client/core/sign_out.js +0 -26
  213. package/demo/app/user/plugin/main/api_user_client/core/state.js +0 -21
  214. package/demo/app/user/plugin/main/api_user_client/count/api.json +0 -27
  215. package/demo/app/user/plugin/main/api_user_client/count/chongzhi.js +0 -103
  216. package/demo/app/user/plugin/main/api_user_client/count/index.js +0 -40
  217. package/demo/app/user/plugin/main/api_user_client/count/param.json +0 -40
  218. package/demo/app/user/plugin/main/api_user_client/forgot/api.json +0 -37
  219. package/demo/app/user/plugin/main/api_user_client/forgot/index - /345/211/257/346/234/254.jsbat" +0 -41
  220. package/demo/app/user/plugin/main/api_user_client/forgot/index.js +0 -36
  221. package/demo/app/user/plugin/main/api_user_client/forgot/param.json +0 -56
  222. package/demo/app/user/plugin/main/api_user_client/oauth/WXBizDataCrypt.js +0 -33
  223. package/demo/app/user/plugin/main/api_user_client/oauth/api.json +0 -31
  224. package/demo/app/user/plugin/main/api_user_client/oauth/index.js +0 -16
  225. package/demo/app/user/plugin/main/api_user_client/oauth/oauth.js +0 -270
  226. package/demo/app/user/plugin/main/api_user_client/oauth/oauth.json +0 -88
  227. package/demo/app/user/plugin/main/api_user_client/oauth/param.json +0 -111
  228. package/demo/app/user/plugin/main/api_user_client/password/api.json +0 -21
  229. package/demo/app/user/plugin/main/api_user_client/password/index.js +0 -56
  230. package/demo/app/user/plugin/main/api_user_client/password/param.json +0 -44
  231. package/demo/app/user/plugin/main/api_user_client/phone_code/aliyun.js +0 -230
  232. package/demo/app/user/plugin/main/api_user_client/phone_code/api.json +0 -37
  233. package/demo/app/user/plugin/main/api_user_client/phone_code/index.js +0 -18
  234. package/demo/app/user/plugin/main/api_user_client/phone_code/index.js_ +0 -230
  235. package/demo/app/user/plugin/main/api_user_client/phone_code/param.json +0 -58
  236. package/demo/app/user/plugin/main/api_user_client/phone_code/phone_code.js +0 -278
  237. package/demo/app/user/plugin/main/api_user_client/realname/api.json +0 -21
  238. package/demo/app/user/plugin/main/api_user_client/realname/index.js +0 -48
  239. package/demo/app/user/plugin/main/api_user_client/realname/param.json +0 -74
  240. package/demo/app/user/plugin/main/api_user_client/servicer/api.json +0 -29
  241. package/demo/app/user/plugin/main/api_user_client/servicer/index.js +0 -19
  242. package/demo/app/user/plugin/main/api_user_client/servicer/param.json +0 -41
  243. package/demo/app/user/plugin/main/api_user_client/servicer/sql.json +0 -113
  244. package/demo/app/user/plugin/main/api_user_client/set_address/api.json +0 -37
  245. package/demo/app/user/plugin/main/api_user_client/set_address/index.js +0 -101
  246. package/demo/app/user/plugin/main/api_user_client/set_address/param.json +0 -165
  247. package/demo/app/user/plugin/main/api_user_client/set_avatar/api.json +0 -35
  248. package/demo/app/user/plugin/main/api_user_client/set_avatar/index.js +0 -77
  249. package/demo/app/user/plugin/main/api_user_client/set_info/api.json +0 -35
  250. package/demo/app/user/plugin/main/api_user_client/set_info/index.js +0 -47
  251. package/demo/app/user/plugin/main/api_user_client/set_nickname/api.json +0 -35
  252. package/demo/app/user/plugin/main/api_user_client/set_nickname/index.js +0 -49
  253. package/demo/app/user/plugin/main/api_user_client/set_pay_password/api.json +0 -21
  254. package/demo/app/user/plugin/main/api_user_client/set_pay_password/index.js +0 -67
  255. package/demo/app/user/plugin/main/api_user_client/sign_in/api.json +0 -11
  256. package/demo/app/user/plugin/main/api_user_client/sign_in/index.js +0 -275
  257. package/demo/app/user/plugin/main/api_user_client/sign_in/param.json +0 -125
  258. package/demo/app/user/plugin/main/api_user_client/sign_in/state.js +0 -37
  259. package/demo/app/user/plugin/main/api_user_client/sign_up/api.json +0 -12
  260. package/demo/app/user/plugin/main/api_user_client/sign_up/index.js +0 -110
  261. package/demo/app/user/plugin/main/api_user_client/sign_up/param.json +0 -65
  262. package/demo/app/user/plugin/main/api_user_client/sign_up_in/api.json +0 -37
  263. package/demo/app/user/plugin/main/api_user_client/sign_up_in/index.js +0 -110
  264. package/demo/app/user/plugin/main/api_user_client/sign_up_in/param.json +0 -34
  265. package/demo/app/user/plugin/main/api_user_client/token/api.json +0 -25
  266. package/demo/app/user/plugin/main/api_user_client/token/index.js +0 -20
  267. package/demo/app/user/plugin/main/api_user_client/token/param.json +0 -16
  268. package/demo/app/user/plugin/main/api_user_manage/account_base/api.json +0 -37
  269. package/demo/app/user/plugin/main/api_user_manage/account_base/index.js +0 -40
  270. package/demo/app/user/plugin/main/api_user_manage/account_base/param.json +0 -130
  271. package/demo/app/user/plugin/main/api_user_manage/invitation_code/api.json +0 -37
  272. package/demo/app/user/plugin/main/api_user_manage/invitation_code/index.js +0 -106
  273. package/demo/app/user/plugin/main/api_user_manage/invitation_code/param.json +0 -130
  274. package/demo/app/user/plugin/main/api_user_manage/update_team/api.json +0 -35
  275. package/demo/app/user/plugin/main/api_user_manage/update_team/index.js +0 -218
  276. package/demo/app/user/plugin/main/api_user_manage/update_team/param.json +0 -130
  277. package/demo/app/user/static/img/logo.png +0 -0
  278. package/demo/app/ws/app.js +0 -122
  279. package/demo/app/ws/app.json +0 -11
  280. package/demo/app/ws/event_api/client/event.json +0 -10
  281. package/demo/app/ws/event_api/client/main.js +0 -17
  282. package/demo/app/ws/socket/ws/index.js +0 -43
  283. package/demo/app/ws/socket/ws/socket.json +0 -14
  284. package/demo/config/development.json +0 -95
  285. package/demo/config/face.sql +0 -3824
  286. package/demo/config/local.json +0 -80
  287. package/demo/index.js +0 -19
@@ -1,230 +0,0 @@
1
- class Phone_code {
2
- /**
3
- * 构造函数
4
- * @param {Object} config 配置参数
5
- */
6
- constructor(config) {
7
- // http://api.smsbao.com/sms?u=USERNAME&p=PASSWORD&m=PHONE&c=CONTENT
8
- this.config = {
9
- // 短信发送地址
10
- url: "https://gyytz.market.alicloudapi.com/sms/smsSend?",
11
- // 阿里云appcode
12
- appcode: "51126b682bdb4d12bcb1eb0909fd5ec0",
13
- // 验证码有效时长
14
- expires: 15,
15
- // 修改密码
16
- model_password: {
17
- mobile: "18813868813",
18
- param: "123456",
19
- smsSignId: "2e65b1bb3d054466b82f0c9d125465e2",
20
- templateId: "8166a0ae27b7499fa8bdda1ed12a07bd"
21
- },
22
- // 重置密码
23
- model_forgot: {
24
- mobile: "18813868813",
25
- param: "123456,15",
26
- smsSignId: "2e65b1bb3d054466b82f0c9d125465e2",
27
- templateId: "29833afb9ae94f21a3f66af908d54627"
28
- },
29
- // 注册账号
30
- model_sign_up: {
31
- mobile: "18813868813",
32
- param: "123456,15",
33
- smsSignId: "2e65b1bb3d054466b82f0c9d125465e2",
34
- templateId: "a09602b817fd47e59e7c6e603d3f088d"
35
- },
36
- // 绑定手机
37
- model_bind: {
38
- mobile: "18813868813",
39
- param: "123456,15",
40
- smsSignId: "2e65b1bb3d054466b82f0c9d125465e2",
41
- templateId: "ea66d14c664649a69a19a6b47ba028db"
42
- }
43
- }
44
- }
45
- }
46
-
47
- /**
48
- * 新建验证码
49
- * @param {String} method 请求方法
50
- * @param {String} phone 手机号码
51
- * @return {String} 返回验证码
52
- */
53
- Phone_code.prototype.new_code = async function(key) {
54
- var code;
55
- var num = Math.ceil(Math.random() * 1000);
56
- if (num < 10) {
57
- code = "0" + num + "0" + num;
58
- } else if (num < 100) {
59
- code = "00" + num;
60
- } else if (num < 1000) {
61
- code = "0" + num;
62
- }
63
- var obj = {
64
- time: new Date(),
65
- code
66
- };
67
-
68
- var bl = await $.cache.set(key, JSON.stringify(obj), this.config.expires * 60);
69
- if (bl) {
70
- return code;
71
- } else {
72
- return null;
73
- }
74
- };
75
-
76
- /**
77
- * 发送验证码
78
- * @param {String} method 请求方法
79
- * @param {String} phone 手机号码
80
- * @return {Object} 返回发送结果
81
- */
82
- Phone_code.prototype.send = async function(method, phone) {
83
- var config = this.config;
84
- var model = config["model_" + method];
85
- var http = new $.Http();
86
- var key = "code_" + method + "_" + phone;
87
- var value = await $.cache.get(key);
88
- var code;
89
- if (value) {
90
- var obj = JSON.parse(value);
91
- if (obj.time.toTime().addSeconds(config.expires * 60) < new Date()) {
92
- return $.ret.bl(false, "验证码已过期!");
93
- } else {
94
- code = obj.code;
95
- }
96
- } else {
97
- code = await this.new_code(key);
98
- }
99
- if (code) {
100
- var param = "**code**:" + code + ",**minute**:" + config.expires;
101
- var query = Object.assign({}, model, {
102
- param,
103
- mobile: phone
104
- });
105
- var url = $.toUrl(query, config.url);
106
- // console.log(url);
107
- var web = await http.post(url, {}, {
108
- Authorization: "APPCODE " + config.appcode
109
- }, "json");
110
- // console.log(web);
111
- if (web.body) {
112
- console.log(web.body);
113
- var json = web.body.toJson();
114
- if (json.msg === "成功") {
115
- return $.ret.bl(true, "发送成功!");
116
- } else {
117
- return $.ret.error(Number(json.code), json.msg);
118
- }
119
- } else {
120
- return $.ret.error(10000, "请求短信服务端失败!");
121
- }
122
- } else {
123
- return $.ret.error(10000, "缓存验证码失败!");
124
- }
125
- };
126
-
127
- /**
128
- * 注册
129
- * @param {String} phone 手机号码
130
- * @param {Object} db 数据库管理器
131
- * @return {Object} 执行结果
132
- */
133
- Phone_code.prototype.sign_up = async function(phone, db, username) {
134
- var user = await db.getObj({
135
- username
136
- });
137
- if (user) {
138
- return $.ret.bl(false, "用户已存在!");
139
- } else {
140
- user = await db.getObj({
141
- phone
142
- });
143
- if (user) {
144
- return $.ret.bl(false, "该手机号码已绑定其他账户!");
145
- }
146
- }
147
- return await this.send("sign_up", phone);
148
- };
149
-
150
- /**
151
- * 重置密码
152
- * @param {String} phone 手机号码
153
- * @param {Object} db 数据库管理器
154
- * @return {Object} 执行结果
155
- */
156
- Phone_code.prototype.forgot = async function(phone, db, username) {
157
- var user = await db.getObj({
158
- username
159
- });
160
- if (!user) {
161
- return $.ret.error(10000, "用户不存在!");
162
- } else {
163
- if(user.phone !== phone){
164
- return $.ret.error(10000, "用户所绑定的手机号不一致!");
165
- }
166
- phone = user.phone;
167
- }
168
- return await this.send("forgot", phone);
169
- };
170
-
171
- /**
172
- * 修改密码
173
- * @param {String} phone 手机号码
174
- * @param {Object} db 数据库管理器
175
- * @return {Object} 执行结果
176
- */
177
- Phone_code.prototype.password = async function(phone, db, username) {
178
- return $.ret.bl(true, "修改密码发送验证码成功!");
179
- };
180
-
181
-
182
- /**
183
- * 绑定手机
184
- * @param {String} phone 手机号码
185
- * @param {Object} db 数据库管理器
186
- * @return {Object} 执行结果
187
- */
188
- Phone_code.prototype.bind = async function(phone, db, username) {
189
- var user = await db.getObj({
190
- username
191
- });
192
- if (!user) {
193
- return $.ret.error(10000, "用户不存在!");
194
- } else {
195
- phone = user.phone;
196
- }
197
- return await this.send("bind", phone);
198
- };
199
-
200
- /**
201
- * 执行
202
- * @param {Object} query
203
- * @param {Object} db
204
- */
205
- Phone_code.prototype.run = async function(query, db) {
206
- var method = query.method;
207
- if (this[method]) {
208
- return await this[method](query.phone, db, query.username);
209
- } else {
210
- return $.ret.error(10000, "错误的请求!");
211
- }
212
- };
213
-
214
- var phone_code = new Phone_code();
215
-
216
- /**
217
- * 接口主函数
218
- * @param {Object} ctx HTTP上下文
219
- * @param {Object} db 数据管理器,如: { next: async function{}, ret: {} }
220
- * @return {Object} 执行结果
221
- */
222
- async function main(ctx, db) {
223
- // 获取请求参数
224
- var req = ctx.request;
225
- db.table = "user_account";
226
- var param = Object.assign({}, req.query, req.body);
227
- return await phone_code.run(param, db);
228
- };
229
-
230
- exports.main = main;
@@ -1,58 +0,0 @@
1
- {
2
- // 是否启用过滤, 启用过滤后, 不符合的参数会被过滤掉
3
- "filter": true,
4
- // 校验脚本文件, 可以使用脚本的方式加一步进行校验, 让传参更加安全
5
- "func_file": "",
6
- // get请求
7
- "get": {
8
- // 查询参数校验项
9
- "query": [],
10
- // 查询必填参数
11
- "query_required": []
12
- },
13
- // post请求
14
- "post": {
15
- // 查询参数校验项
16
- "query": [],
17
- // 查询必填参数
18
- "query_required": ["method"],
19
- // 正文参数校验项
20
- "body": ["username","phone"],
21
- // 正文必填参数
22
- "body_required": []
23
- },
24
- // 校验列表
25
- "list": [{
26
- "name": "method",
27
- "title": "方法",
28
- "type": "string",
29
- // 字符串类型时设置
30
- "string": {
31
- // 传值范围,字符串时为限制字符长度
32
- "range": [3, 32]
33
- }
34
- },
35
- {
36
- "name": "username",
37
- "title": "用户名",
38
- "type": "string",
39
- // 字符串类型时设置
40
- "string": {
41
- "format": "username",
42
- // 传值范围,字符串时为限制字符长度
43
- "range": [5, 24]
44
- }
45
- },
46
- {
47
- "name": "phone",
48
- "title": "手机号码",
49
- "type": "string",
50
- // 字符串类型时设置
51
- "string": {
52
- "format": "phone",
53
- // 传值范围,字符串时为限制字符长度
54
- "range": [11, 11]
55
- }
56
- }
57
- ]
58
- }
@@ -1,278 +0,0 @@
1
- class Phone_code {
2
- /**
3
- * 构造函数
4
- * @param {Object} config 配置参数
5
- */
6
- constructor(config) {
7
- this.config = {
8
- // 验证码有效时长
9
- expires: 15,
10
- // 短信发送地址
11
- url: "http://api.smsbao.com/sms?u=${username}&p=${password}&m=${phone}&c=${content}",
12
- // 用户名
13
- username: "31772309",
14
- // 密码
15
- password: "asd159357"
16
- }
17
- }
18
- }
19
-
20
- /**
21
- * 新建验证码
22
- * @param {String} method 请求方法
23
- * @param {String} phone 手机号码
24
- * @return {String} 返回验证码
25
- */
26
- Phone_code.prototype.new_code = async function(key) {
27
- var code;
28
- var num = Math.ceil(Math.random() * 1000);
29
- if (num < 10) {
30
- code = "0" + num + "0" + num;
31
- } else if (num < 100) {
32
- code = "00" + num;
33
- } else if (num < 1000) {
34
- code = "0" + num;
35
- }
36
- await $.cache.set(key + "_click", code, 60);
37
- var bl = await $.cache.set(key, code, this.config.expires * 60);
38
- if (bl) {
39
- return code;
40
- } else {
41
- return null;
42
- }
43
- };
44
-
45
- $.getCode = async function(method, phone) {
46
- var key = "code_" + method + "_" + phone;
47
- return await $.cache.get(key);
48
- }
49
-
50
- /**
51
- * 发送验证码
52
- * @param {String} method 请求方法
53
- * @param {String} phone 手机号码
54
- * @return {Object} 返回发送结果
55
- */
56
- Phone_code.prototype.send = async function(method, phone) {
57
- var {
58
- username,
59
- password,
60
- expires,
61
- url
62
- } = this.config;
63
- var key = "code_" + method + "_" + phone;
64
- var value = await $.cache.get(key + "_click");
65
- var code;
66
- if (value) {
67
- return $.ret.bl(true, "已发送验证码,请注意查收!");
68
- } else {
69
- code = await this.new_code(key);
70
- }
71
- if (code) {
72
- password = password.md5();
73
-
74
- // 发送验证码
75
- var content = encodeURIComponent(`【e脸通】欢迎来到文字修仙游戏世界!您的验证码为${code},在${expires}分钟内有效。`);
76
- var u = eval("`" + url + "`");
77
- var http = new $.Http();
78
- var web = await http.get(u);
79
- var errno = web.body;
80
- if (errno) {
81
- errno = Number(errno);
82
- if (errno == 0) {
83
- return $.ret.bl(true, "发送成功!");
84
- } else {
85
- var meaage = "";
86
- switch (errno) {
87
- case -1:
88
- meaage = "参数不全"
89
- break
90
- case -2:
91
- meaage = "服务器空间不支持,请确认支持curl或者fsocket,联系您的空间商解决或者更换空间!"
92
- break
93
- case 30:
94
- meaage = "密码错误";
95
- break;
96
- case 40:
97
- meaage = "账号不存在";
98
- break;
99
- case 41:
100
- meaage = "余额不足";
101
- break;
102
- case 43:
103
- meaage = "IP地址受限";
104
- break;
105
- case 50:
106
- meaage = "内容含有敏感词";
107
- break;
108
- case 51:
109
- meaage = "手机号码不正确";
110
- break;
111
- }
112
- return $.ret.error(11000 + errno, meaage);
113
- }
114
- } else {
115
- return $.ret.error(10000, "请求短信服务端失败!");
116
- }
117
- } else {
118
- return $.ret.error(10000, "缓存验证码失败!");
119
- }
120
- };
121
-
122
- /**
123
- * 发送验证码
124
- * @param {String} query 查询参
125
- * @param {Object} db 数据库管理器
126
- * @return {Object} 执行结果
127
- */
128
- Phone_code.prototype.set_delivery_address = async function(query, db, ctx) {
129
- var {
130
- username,
131
- phone
132
- } = query;
133
- var user = await db.getObj({
134
- username
135
- });
136
- if (user) {
137
- return $.ret.bl(false, "用户已存在!");
138
- }
139
- return await this.send("set_delivery_address", phone);
140
- };
141
-
142
- /**
143
- * 注册、登录
144
- * @param {String} query 查询参
145
- * @param {Object} db 数据库管理器
146
- * @return {Object} 执行结果
147
- */
148
- Phone_code.prototype.sign_up = async function(query, db, ctx) {
149
- var {
150
- phone
151
- } = query;
152
- var user = await db.getObj({
153
- phone
154
- });
155
- if (user) {
156
- return $.ret.error(10001, '账号已被使用,请换一个!');
157
- }
158
- return await this.send("sign_up", phone);
159
- };
160
-
161
- /**
162
- * 登录
163
- * @param {String} query 查询参
164
- * @param {Object} db 数据库管理器
165
- * @return {Object} 执行结果
166
- */
167
- Phone_code.prototype.sign_in = async function(query, db, ctx) {
168
- var {
169
- phone
170
- } = query;
171
- var user = await db.getObj({
172
- phone
173
- });
174
- if (!user) {
175
- return $.ret.error(10000, '用户不存在!');
176
- }
177
- return await this.send("sign_in", phone);
178
- };
179
-
180
- /**
181
- * 忘记密码
182
- * @param {String} query 查询参
183
- * @param {Object} db 数据库管理器
184
- * @return {Object} 执行结果
185
- */
186
- Phone_code.prototype.forgot = async function(query, db, ctx) {
187
- var {
188
- username,
189
- phone
190
- } = query;
191
- var user = await db.getObj({
192
- phone
193
- });
194
- if (!user) {
195
- return $.ret.error(10000, "用户不存在!");
196
- }
197
- return await this.send("forgot", phone);
198
- };
199
-
200
- /**
201
- * 修改密码
202
- * @param {String} query 查询参
203
- * @param {Object} db 数据库管理器
204
- * @return {Object} 执行结果
205
- */
206
- Phone_code.prototype.password = async function(query, db, ctx) {
207
- var {
208
- username,
209
- phone
210
- } = query;
211
- var user = ctx.session.user
212
- if (!user) {
213
- return $.ret.error(10000, "账号未登录!");
214
- }
215
- var phone = user.phone
216
- return await this.send("password", phone);
217
- };
218
-
219
-
220
- /**
221
- * 发送验证码 - 设置支付密码
222
- * @param {String} query 查询参
223
- * @param {Object} db 数据库管理器
224
- * @return {Object} 执行结果
225
- */
226
- Phone_code.prototype.pay_password = async function(query, db, ctx) {
227
- var {
228
- phone
229
- } = query;
230
- var user = ctx.session.user;
231
- if (!user) {
232
- return $.ret.error(6000, "账户未登录!");
233
- }
234
-
235
- if (user.phone !== phone) {
236
- return $.ret.error(10000, "输入的号码与绑定的手机号码不同!");
237
- }
238
- return await this.send("pay_password", phone);
239
- };
240
-
241
- /**
242
- * 绑定手机
243
- * @param {String} query 查询参
244
- * @param {Object} db 数据库管理器
245
- * @return {Object} 执行结果
246
- */
247
- Phone_code.prototype.bind = async function(query, db, ctx) {
248
- var {
249
- username,
250
- phone
251
- } = query;
252
- var user = await db.getObj({
253
- username
254
- });
255
- if (!user) {
256
- return $.ret.error(10000, "用户不存在!");
257
- } else {
258
- phone = user.phone;
259
- }
260
- return await this.send("bind", phone);
261
- };
262
-
263
- /**
264
- * 执行
265
- * @param {Object} query
266
- * @param {Object} db
267
- */
268
- Phone_code.prototype.run = async function(query, db, ctx) {
269
- var method = query.method;
270
- var param = Object.assign({}, query, ctx.request.body);
271
- if (this[method]) {
272
- return await this[method](param, db, ctx);
273
- } else {
274
- return $.ret.error(10000, "错误的请求!");
275
- }
276
- };
277
-
278
- module.exports = Phone_code;
@@ -1,21 +0,0 @@
1
- {
2
- // 路由路径
3
- "path": "/api/user/realname",
4
- // 名称, 用于动态增删改API配置
5
- "name": "user_realname",
6
- // 标题, 用于开发文档显示
7
- "title": "实名认证",
8
- // 描述, 用于介绍该路由的作用
9
- "description": "这是用户提交实名认证信息的接口",
10
- // 函数文件, 用于驱动脚本, 实现业务
11
- "func_file": "./index.js",
12
- // 请求方法, 选填 GET, POST, ALL。 ALL指同时支持GET/POST
13
- "method": "POST",
14
- // 参数配置路径, 用于校验API请求参数是否正确, 同时显示在API文档中
15
- "param_path": "./param.json",
16
- /* 授权协议 */
17
- "oauth": {
18
- // 是否需要登录, true表示需要登录才能访问该接口
19
- "signIn": true
20
- }
21
- }
@@ -1,48 +0,0 @@
1
- // 集合路由、导航,不开发前端的情况下可以将以下2行注释掉
2
- // const nav = $.nav_admin('{0}');
3
- // nav.update();
4
-
5
- /**
6
- * 接口主函数
7
- * @param {Object} ctx HTTP上下文
8
- * @param {Object} db 数据管理器,如: { next: async function{}, ret: {} }
9
- * @return {Object} 执行结果
10
- */
11
- async function main(ctx, db) {
12
- // 获取请求参数
13
- var req = ctx.request;
14
- var {
15
- query,
16
- body
17
- } = req;
18
- // return "hello world" + JSON.stringify(body);
19
-
20
- console.log(body)
21
- const login_user = ctx.session.user
22
- const qy = {
23
- user_id: login_user.user_id
24
- };
25
- if (!login_user) {
26
- return $.ret.error(10000, '获取登录用户失败');
27
- }
28
- db.table = "user_info";
29
- let user_info = await db.getObj(qy);
30
- var obj = {
31
- //设置图片
32
- img_idcard_front: body.img_idcard_front,
33
- img_idcard_back: body.img_idcard_back,
34
- img_hand_held: body.img_hand_held,
35
- name: body.name,
36
- idcard: body.idcard,
37
- idcard_state: 2
38
- };
39
- var bl;
40
- if (user_info) {
41
- bl = await db.set(qy, obj);
42
- } else {
43
- bl = await db.add(Object.assign({}, qy, obj));
44
- }
45
- return bl > 0 ? $.ret.bl(true, "提交成功,请耐心等待审核") : $.ret.error(10000, "提交失败!" + JSON.stringify(db.error))
46
- };
47
-
48
- exports.main = main;
@@ -1,74 +0,0 @@
1
- {
2
- "name": "user_realname",
3
- "title": "实名认证",
4
- "post": {
5
- "body": [
6
- "name",
7
- "idcard",
8
- "img_idcard_front",
9
- "img_idcard_back",
10
- "img_hand_held"
11
- ]
12
- },
13
- "list": [{
14
- "name": "user_id",
15
- "title": "用户ID",
16
- "description": "",
17
- "type": "number",
18
- "dataType": "mediumint",
19
- "number": {
20
- "max": 8388607
21
- }
22
- },
23
- {
24
- "name": "name",
25
- "title": "姓名",
26
- "description": "",
27
- "type": "string",
28
- "dataType": "varchar",
29
- "number": {
30
- "max": 32
31
- }
32
- },
33
- {
34
- "name": "idcard",
35
- "title": "身份证号",
36
- "description": "",
37
- "type": "string",
38
- "dataType": "varchar",
39
- "string": {
40
- "max": 64
41
- }
42
- },
43
- {
44
- "name": "img_idcard_front",
45
- "title": "身份证正面",
46
- "description": "",
47
- "type": "string",
48
- "dataType": "varchar",
49
- "string": {
50
- "max": 255
51
- }
52
- },
53
- {
54
- "name": "img_idcard_back",
55
- "title": "身份证反面",
56
- "description": "",
57
- "type": "string",
58
- "dataType": "varchar",
59
- "string": {
60
- "max": 255
61
- }
62
- },
63
- {
64
- "name": "img_hand_held",
65
- "title": "手持身份证",
66
- "description": "",
67
- "type": "string",
68
- "dataType": "varchar",
69
- "string": {
70
- "max": 255
71
- }
72
- }
73
- ]
74
- }