rVs4ULys17.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>H5盲盒</title>
  5. <meta charset="utf-8" />
  6. <style>@charset "UTF-8";
  7. html,
  8. body,
  9. h1,
  10. h2,
  11. h3,
  12. h4,
  13. h5,
  14. h6,
  15. p,
  16. blockquote {
  17. margin: 0;
  18. padding: 0;
  19. font-weight: normal;
  20. -webkit-font-smoothing: antialiased;
  21. }
  22. /* 设置滚动条的样式 */
  23. ::-webkit-scrollbar {
  24. width: 6px;
  25. }
  26. /* 外层轨道 */
  27. ::-webkit-scrollbar-track {
  28. -webkit-box-shadow: inset006pxrgba(255, 0, 0, 0.3);
  29. background: rgba(0, 0, 0, 0.1);
  30. }
  31. /* 滚动条滑块 */
  32. ::-webkit-scrollbar-thumb {
  33. border-radius: 4px;
  34. background: rgba(0, 0, 0, 0.2);
  35. -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
  36. }
  37. ::-webkit-scrollbar-thumb:window-inactive {
  38. background: rgba(0, 0, 0, 0.2);
  39. }
  40. body {
  41. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
  42. font-size: 13px;
  43. line-height: 25px;
  44. color: #393838;
  45. position: relative;
  46. }
  47. table {
  48. margin: 10px 0 15px 0;
  49. border-collapse: collapse;
  50. }
  51. td,
  52. th {
  53. border: 1px solid #ddd;
  54. padding: 3px 10px;
  55. }
  56. th {
  57. padding: 5px 10px;
  58. }
  59. a, a:link, a:visited {
  60. color: #34495e;
  61. text-decoration: none;
  62. }
  63. a:hover, a:focus {
  64. color: #59d69d;
  65. text-decoration: none;
  66. }
  67. a img {
  68. border: none;
  69. }
  70. p {
  71. padding-left: 10px;
  72. margin-bottom: 9px;
  73. }
  74. h1,
  75. h2,
  76. h3,
  77. h4,
  78. h5,
  79. h6 {
  80. color: #404040;
  81. line-height: 36px;
  82. }
  83. h1 {
  84. color: #2c3e50;
  85. font-weight: 600;
  86. margin-bottom: 16px;
  87. font-size: 32px;
  88. padding-bottom: 16px;
  89. border-bottom: 1px solid #ddd;
  90. line-height: 50px;
  91. }
  92. h2 {
  93. font-size: 28px;
  94. padding-top: 10px;
  95. padding-bottom: 10px;
  96. }
  97. h3 {
  98. clear: both;
  99. font-weight: 400;
  100. margin-top: 20px;
  101. margin-bottom: 20px;
  102. border-left: 3px solid #59d69d;
  103. padding-left: 8px;
  104. font-size: 18px;
  105. }
  106. h4 {
  107. font-size: 16px;
  108. }
  109. h5 {
  110. font-size: 14px;
  111. }
  112. h6 {
  113. font-size: 13px;
  114. }
  115. hr {
  116. margin: 0 0 19px;
  117. border: 0;
  118. border-bottom: 1px solid #ccc;
  119. }
  120. blockquote {
  121. padding: 13px 13px 21px 15px;
  122. margin-bottom: 18px;
  123. font-family: georgia, serif;
  124. font-style: italic;
  125. }
  126. blockquote:before {
  127. font-size: 40px;
  128. margin-left: -10px;
  129. font-family: georgia, serif;
  130. color: #eee;
  131. }
  132. blockquote p {
  133. font-size: 14px;
  134. font-weight: 300;
  135. line-height: 18px;
  136. margin-bottom: 0;
  137. font-style: italic;
  138. }
  139. code,
  140. pre {
  141. font-family: Monaco, Andale Mono, Courier New, monospace;
  142. }
  143. code {
  144. background-color: #fee9cc;
  145. color: rgba(0, 0, 0, 0.75);
  146. padding: 1px 3px;
  147. font-size: 12px;
  148. -webkit-border-radius: 3px;
  149. -moz-border-radius: 3px;
  150. border-radius: 3px;
  151. }
  152. pre {
  153. display: block;
  154. padding: 14px;
  155. margin: 0 0 18px;
  156. line-height: 16px;
  157. font-size: 11px;
  158. border: 1px solid #d9d9d9;
  159. white-space: pre-wrap;
  160. word-wrap: break-word;
  161. background: #f6f6f6;
  162. }
  163. pre code {
  164. background-color: #f6f6f6;
  165. color: #737373;
  166. font-size: 11px;
  167. padding: 0;
  168. }
  169. sup {
  170. font-size: 0.83em;
  171. vertical-align: super;
  172. line-height: 0;
  173. }
  174. * {
  175. -webkit-print-color-adjust: exact;
  176. }
  177. @media print {
  178. body,
  179. code,
  180. pre code,
  181. h1,
  182. h2,
  183. h3,
  184. h4,
  185. h5,
  186. h6 {
  187. color: black;
  188. }
  189. table,
  190. pre {
  191. page-break-inside: avoid;
  192. }
  193. }
  194. html,
  195. body {
  196. height: 100%;
  197. }
  198. .table-of-contents {
  199. position: fixed;
  200. top: 61px;
  201. left: 0;
  202. bottom: 0;
  203. overflow-x: hidden;
  204. overflow-y: auto;
  205. width: 260px;
  206. }
  207. .table-of-contents > ul > li > a {
  208. font-size: 20px;
  209. margin-bottom: 16px;
  210. margin-top: 16px;
  211. }
  212. .table-of-contents ul {
  213. overflow: auto;
  214. margin: 0px;
  215. height: 100%;
  216. padding: 0px 0px;
  217. box-sizing: border-box;
  218. list-style-type: none;
  219. }
  220. .table-of-contents ul li {
  221. padding-left: 20px;
  222. }
  223. .table-of-contents a {
  224. padding: 2px 0px;
  225. display: block;
  226. text-decoration: none;
  227. }
  228. .content-right {
  229. max-width: 700px;
  230. margin-left: 290px;
  231. padding-left: 70px;
  232. flex-grow: 1;
  233. }
  234. .content-right h2:target {
  235. padding-top: 80px;
  236. }
  237. body > p {
  238. margin-left: 30px;
  239. }
  240. body > table {
  241. margin-left: 30px;
  242. }
  243. body > pre {
  244. margin-left: 30px;
  245. }
  246. .curProject {
  247. position: fixed;
  248. top: 20px;
  249. font-size: 25px;
  250. color: black;
  251. margin-left: -240px;
  252. width: 240px;
  253. padding: 5px;
  254. line-height: 25px;
  255. box-sizing: border-box;
  256. }
  257. .g-doc {
  258. margin-top: 56px;
  259. padding-top: 24px;
  260. display: flex;
  261. }
  262. .curproject-name {
  263. font-size: 42px;
  264. }
  265. .m-header {
  266. background: #32363a;
  267. height: 56px;
  268. line-height: 56px;
  269. padding-left: 60px;
  270. display: flex;
  271. align-items: center;
  272. position: fixed;
  273. z-index: 9;
  274. top: 0;
  275. left: 0;
  276. right: 0;
  277. }
  278. .m-header .title {
  279. font-size: 22px;
  280. color: #fff;
  281. font-weight: normal;
  282. -webkit-font-smoothing: antialiased;
  283. margin: 0;
  284. margin-left: 16px;
  285. padding: 0;
  286. line-height: 56px;
  287. border: none;
  288. }
  289. .m-header .nav {
  290. color: #fff;
  291. font-size: 16px;
  292. position: absolute;
  293. right: 32px;
  294. top: 0;
  295. }
  296. .m-header .nav a {
  297. color: #fff;
  298. margin-left: 16px;
  299. padding: 8px;
  300. transition: color .2s;
  301. }
  302. .m-header .nav a:hover {
  303. color: #59d69d;
  304. }
  305. .m-footer {
  306. border-top: 1px solid #ddd;
  307. padding-top: 16px;
  308. padding-bottom: 16px;
  309. }
  310. /*# sourceMappingURL=defaultTheme.css.map */
  311. </style>
  312. </head>
  313. <body>
  314. <div class="m-header">
  315. <a href="#" style="display: inherit;"><svg class="svg" width="32px" height="32px" viewBox="0 0 64 64" version="1.1"><title>Icon</title><desc>Created with Sketch.</desc><defs><linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1"><stop stop-color="#FFFFFF" offset="0%"></stop><stop stop-color="#F2F2F2" offset="100%"></stop></linearGradient><circle id="path-2" cx="31.9988602" cy="31.9988602" r="2.92886048"></circle><filter x="-85.4%" y="-68.3%" width="270.7%" height="270.7%" filterUnits="objectBoundingBox" id="filter-3"><feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur stdDeviation="1.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.159703351 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix></filter></defs><g id="首页" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="大屏幕"><g id="Icon"><circle id="Oval-1" fill="url(#linearGradient-1)" cx="32" cy="32" r="32"></circle><path d="M36.7078009,31.8054514 L36.7078009,51.7110548 C36.7078009,54.2844537 34.6258634,56.3695395 32.0579205,56.3695395 C29.4899777,56.3695395 27.4099998,54.0704461 27.4099998,51.7941246 L27.4099998,31.8061972 C27.4099998,29.528395 29.4909575,27.218453 32.0589004,27.230043 C34.6268432,27.241633 36.7078009,29.528395 36.7078009,31.8054514 Z" id="blue" fill="#2359F1" fill-rule="nonzero"></path><path d="M45.2586091,17.1026914 C45.2586091,17.1026914 45.5657231,34.0524383 45.2345291,37.01141 C44.9033351,39.9703817 43.1767091,41.6667796 40.6088126,41.6667796 C38.040916,41.6667796 35.9609757,39.3676862 35.9609757,37.0913646 L35.9609757,17.1034372 C35.9609757,14.825635 38.0418959,12.515693 40.6097924,12.527283 C43.177689,12.538873 45.2586091,14.825635 45.2586091,17.1026914 Z" id="green" fill="#57CF27" fill-rule="nonzero" transform="translate(40.674608, 27.097010) rotate(60.000000) translate(-40.674608, -27.097010) "></path><path d="M28.0410158,17.0465598 L28.0410158,36.9521632 C28.0410158,39.525562 25.9591158,41.6106479 23.3912193,41.6106479 C20.8233227,41.6106479 18.7433824,39.3115545 18.7433824,37.035233 L18.7433824,17.0473055 C18.7433824,14.7695034 20.8243026,12.4595614 23.3921991,12.4711513 C25.9600956,12.4827413 28.0410158,14.7695034 28.0410158,17.0465598 Z" id="red" fill="#FF561B" fill-rule="nonzero" transform="translate(23.392199, 27.040878) rotate(-60.000000) translate(-23.392199, -27.040878) "></path><g id="inner-round"><use fill="black" fill-opacity="1" filter="url(#filter-3)" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#path-2"></use><use fill="#F7F7F7" fill-rule="evenodd" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#path-2"></use></g></g></g></g></svg></a>
  316. <a href="#"><h1 class="title">YAPI 接口文档</h1></a>
  317. <div class="nav">
  318. <a href="https://hellosean1025.github.io/yapi/">YApi</a>
  319. </div>
  320. </div>
  321. <div class="g-doc">
  322. <div class="table-of-contents"><ul><li><a href="#u516cu5171u5206u7c7b">公共分类</a><ul><li><a href="#u534fu8baeu89c4u52190a3ca20id3du534fu8baeu89c4u52193e203ca3e">协议规则
  323. <a id=协议规则> </a></a></li><li><a href="#u53d1u9001u77edu4fe1u9a8cu8bc1u78010a3ca20id3du53d1u9001u77edu4fe1u9a8cu8bc1u78013e203ca3e">发送短信验证码
  324. <a id=发送短信验证码> </a></a></li><li><a href="#u624bu673au53f7u767bu5f550a3ca20id3du624bu673au53f7u767bu5f553e203ca3e">手机号登录
  325. <a id=手机号登录> </a></a></li></ul></li></ul></div>
  326. <div id="right" class="content-right">
  327. <h1 class="curproject-name"> H5盲盒 </h1>
  328. <h1 id="u516cu5171u5206u7c7b">公共分类</h1>
  329. <p></p>
  330. <h2 id="u534fu8baeu89c4u52190a3ca20id3du534fu8baeu89c4u52193e203ca3e">协议规则
  331. <a id=协议规则> </a></h2>
  332. <p></p>
  333. <h3 id="">基本信息</h3>
  334. <p><strong>Path:</strong> /api/common/agreement</p>
  335. <p><strong>Method:</strong> POST</p>
  336. <p><strong>接口描述:</strong></p>
  337. <h4>返回示例:</h4>
  338. <p><span class="colour" style="color: rgb(0, 0, 0);">{</span><br>
  339. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color: rgb(163, 21, 21);">"code"</span><span class="colour" style="color: rgb(0, 0, 0);">:&nbsp;</span><span class="colour" style="color: rgb(9, 134, 88);">1</span><span class="colour" style="color: rgb(0, 0, 0);">,</span><br>
  340. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color: rgb(163, 21, 21);">"msg"</span><span class="colour" style="color: rgb(0, 0, 0);">:&nbsp;</span><span class="colour" style="color: rgb(4, 81, 165);">"查询成功"</span><span class="colour" style="color: rgb(0, 0, 0);">,</span><br>
  341. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color: rgb(163, 21, 21);">"data"</span><span class="colour" style="color: rgb(0, 0, 0);">:&nbsp;{</span><br>
  342. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color: rgb(163, 21, 21);">"content"</span><span class="colour" style="color: rgb(0, 0, 0);">:&nbsp;</span><span class="colour" style="color: rgb(4, 81, 165);">"&lt;h1&gt;Hello&nbsp;World&lt;/h1&gt;"</span><br>
  343. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;}</span><br>
  344. <span class="colour" style="color: rgb(0, 0, 0);">}</span></p>
  345. <h3 id="-2">请求参数</h3>
  346. <p><strong>Headers</strong></p>
  347. <table>
  348. <thead>
  349. <tr>
  350. <th>参数名称</th>
  351. <th>参数值</th>
  352. <th>是否必须</th>
  353. <th>示例</th>
  354. <th>备注</th>
  355. </tr>
  356. </thead>
  357. <tbody>
  358. <tr>
  359. <td>Content-Type</td>
  360. <td>application/x-www-form-urlencoded</td>
  361. <td>是</td>
  362. <td></td>
  363. <td></td>
  364. </tr>
  365. </tbody>
  366. </table>
  367. <p><strong>Body</strong></p>
  368. <table>
  369. <thead>
  370. <tr>
  371. <th>参数名称</th>
  372. <th>参数类型</th>
  373. <th>是否必须</th>
  374. <th>示例</th>
  375. <th>备注</th>
  376. </tr>
  377. </thead>
  378. <tbody>
  379. <tr>
  380. <td>name</td>
  381. <td>text</td>
  382. <td>是</td>
  383. <td>user_agreement</td>
  384. <td>协议名称:用户协议user_agreement,隐私政策privacy_policy,玩法规则play_rule,充值协议play_rule,买家须知notice_to_buyers</td>
  385. </tr>
  386. </tbody>
  387. </table>
  388. <h3 id="-3">返回数据</h3>
  389. <table>
  390. <thead class="ant-table-thead">
  391. <tr>
  392. <th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
  393. </tr>
  394. </thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> code</span></td><td key=1><span>number</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">接口状态:1成功,0失败</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> msg</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">接口消息</span></td><td key=5></td></tr><tr key=0-2><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">接口数据</span></td><td key=5></td></tr><tr key=0-2-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> content</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">协议内容(富文本)</span></td><td key=5></td></tr>
  395. </tbody>
  396. </table>
  397. <h2 id="u53d1u9001u77edu4fe1u9a8cu8bc1u78010a3ca20id3du53d1u9001u77edu4fe1u9a8cu8bc1u78013e203ca3e">发送短信验证码
  398. <a id=发送短信验证码> </a></h2>
  399. <p></p>
  400. <h3 id="-4">基本信息</h3>
  401. <p><strong>Path:</strong> /api/sms/send</p>
  402. <p><strong>Method:</strong> POST</p>
  403. <p><strong>接口描述:</strong></p>
  404. <h4>返回示例:</h4>
  405. <p><span class="colour" style="color:rgb(0, 0, 0)">{</span><br>
  406. <span class="colour" style="color:rgb(0, 0, 0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color:rgb(163, 21, 21)">"code"</span><span class="colour" style="color:rgb(0, 0, 0)">:&nbsp;</span><span class="colour" style="color:rgb(9, 134, 88)">1</span><span class="colour" style="color:rgb(0, 0, 0)">,</span><br>
  407. <span class="colour" style="color:rgb(0, 0, 0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color:rgb(163, 21, 21)">"msg"</span><span class="colour" style="color:rgb(0, 0, 0)">:&nbsp;</span><span class="colour" style="color:rgb(4, 81, 165)">"发送成功"</span><span class="colour" style="color:rgb(0, 0, 0)">,</span><br>
  408. <span class="colour" style="color:rgb(0, 0, 0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color:rgb(163, 21, 21)">"data"</span><span class="colour" style="color:rgb(0, 0, 0)">:&nbsp;</span><span class="colour" style="color:rgb(4, 81, 165)">null</span><br>
  409. <span class="colour" style="color:rgb(0, 0, 0)">}</span></p>
  410. <h3 id="-5">请求参数</h3>
  411. <p><strong>Headers</strong></p>
  412. <table>
  413. <thead>
  414. <tr>
  415. <th>参数名称</th>
  416. <th>参数值</th>
  417. <th>是否必须</th>
  418. <th>示例</th>
  419. <th>备注</th>
  420. </tr>
  421. </thead>
  422. <tbody>
  423. <tr>
  424. <td>Content-Type</td>
  425. <td>application/x-www-form-urlencoded</td>
  426. <td>是</td>
  427. <td></td>
  428. <td></td>
  429. </tr>
  430. </tbody>
  431. </table>
  432. <p><strong>Body</strong></p>
  433. <table>
  434. <thead>
  435. <tr>
  436. <th>参数名称</th>
  437. <th>参数类型</th>
  438. <th>是否必须</th>
  439. <th>示例</th>
  440. <th>备注</th>
  441. </tr>
  442. </thead>
  443. <tbody>
  444. <tr>
  445. <td>mobile</td>
  446. <td>text</td>
  447. <td>是</td>
  448. <td>18888888888</td>
  449. <td>手机号</td>
  450. </tr>
  451. <tr>
  452. <td>event</td>
  453. <td>text</td>
  454. <td>是</td>
  455. <td>login</td>
  456. <td>事件:登录login,更换手机号changemobile,修改密码changepwd,重置密码:resetpwd</td>
  457. </tr>
  458. </tbody>
  459. </table>
  460. <h3 id="-6">返回数据</h3>
  461. <table>
  462. <thead class="ant-table-thead">
  463. <tr>
  464. <th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
  465. </tr>
  466. </thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> code</span></td><td key=1><span>number</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">接口状态:1成功,0失败,401请登录</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> msg</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">接口消息</span></td><td key=5></td></tr><tr key=0-2><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>null</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">接口数据</span></td><td key=5></td></tr>
  467. </tbody>
  468. </table>
  469. <h2 id="u624bu673au53f7u767bu5f550a3ca20id3du624bu673au53f7u767bu5f553e203ca3e">手机号登录
  470. <a id=手机号登录> </a></h2>
  471. <p></p>
  472. <h3 id="-7">基本信息</h3>
  473. <p><strong>Path:</strong> /api/user/mobilelogin</p>
  474. <p><strong>Method:</strong> POST</p>
  475. <p><strong>接口描述:</strong></p>
  476. <h4>返回示例:</h4>
  477. <p><span class="colour" style="color: rgb(0, 0, 0);">{</span><br>
  478. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color: rgb(163, 21, 21);">"code"</span><span class="colour" style="color: rgb(0, 0, 0);">:&nbsp;</span><span class="colour" style="color: rgb(9, 134, 88);">1</span><span class="colour" style="color: rgb(0, 0, 0);">,</span><br>
  479. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color: rgb(163, 21, 21);">"msg"</span><span class="colour" style="color: rgb(0, 0, 0);">:&nbsp;</span><span class="colour" style="color: rgb(4, 81, 165);">"登录成功"</span><span class="colour" style="color: rgb(0, 0, 0);">,</span><br>
  480. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color: rgb(163, 21, 21);">"data"</span><span class="colour" style="color: rgb(0, 0, 0);">:&nbsp;{</span><br>
  481. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color: rgb(163, 21, 21);">"nickname"</span><span class="colour" style="color: rgb(0, 0, 0);">:&nbsp;</span><span class="colour" style="color: rgb(4, 81, 165);">"188****8888"</span><span class="colour" style="color: rgb(0, 0, 0);">,</span><br>
  482. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color: rgb(163, 21, 21);">"mobile"</span><span class="colour" style="color: rgb(0, 0, 0);">:&nbsp;</span><span class="colour" style="color: rgb(4, 81, 165);">"18888888888"</span><span class="colour" style="color: rgb(0, 0, 0);">,</span><br>
  483. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color: rgb(163, 21, 21);">"avatar"</span><span class="colour" style="color: rgb(0, 0, 0);">:&nbsp;</span><span class="colour" style="color: rgb(4, 81, 165);">"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgaGVpZ2h0PSIxMDAiIHdpZHRoPSIxMDAiPjxyZWN0IGZpbGw9InJnYigyMjksMTYwLDE4MykiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48L3JlY3Q+PHRleHQgeD0iNTAiIHk9IjUwIiBmb250LXNpemU9IjUwIiB0ZXh0LWNvcHk9ImZhc3QiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRleHQtcmlnaHRzPSJhZG1pbiIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiPjE8L3RleHQ+PC9zdmc+"</span><span class="colour" style="color: rgb(0, 0, 0);">,</span><br>
  484. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="colour" style="color: rgb(163, 21, 21);">"token"</span><span class="colour" style="color: rgb(0, 0, 0);">:&nbsp;</span><span class="colour" style="color: rgb(4, 81, 165);">"efed8cf6-0e80-4991-9016-69df7bbad85c"</span><br>
  485. <span class="colour" style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;}</span><br>
  486. <span class="colour" style="color: rgb(0, 0, 0);">}</span></p>
  487. <h3 id="-8">请求参数</h3>
  488. <p><strong>Headers</strong></p>
  489. <table>
  490. <thead>
  491. <tr>
  492. <th>参数名称</th>
  493. <th>参数值</th>
  494. <th>是否必须</th>
  495. <th>示例</th>
  496. <th>备注</th>
  497. </tr>
  498. </thead>
  499. <tbody>
  500. <tr>
  501. <td>Content-Type</td>
  502. <td>application/x-www-form-urlencoded</td>
  503. <td>是</td>
  504. <td></td>
  505. <td></td>
  506. </tr>
  507. </tbody>
  508. </table>
  509. <p><strong>Body</strong></p>
  510. <table>
  511. <thead>
  512. <tr>
  513. <th>参数名称</th>
  514. <th>参数类型</th>
  515. <th>是否必须</th>
  516. <th>示例</th>
  517. <th>备注</th>
  518. </tr>
  519. </thead>
  520. <tbody>
  521. <tr>
  522. <td>mobile</td>
  523. <td>text</td>
  524. <td>是</td>
  525. <td>18888888888</td>
  526. <td>手机号</td>
  527. </tr>
  528. <tr>
  529. <td>captcha</td>
  530. <td>text</td>
  531. <td>是</td>
  532. <td>123456</td>
  533. <td>短信验证码</td>
  534. </tr>
  535. </tbody>
  536. </table>
  537. <h3 id="-9">返回数据</h3>
  538. <table>
  539. <thead class="ant-table-thead">
  540. <tr>
  541. <th key=name>名称</th><th key=type>类型</th><th key=required>是否必须</th><th key=default>默认值</th><th key=desc>备注</th><th key=sub>其他信息</th>
  542. </tr>
  543. </thead><tbody className="ant-table-tbody"><tr key=0-0><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> code</span></td><td key=1><span>number</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">接口状态:1成功,0失败,401请登录</span></td><td key=5></td></tr><tr key=0-1><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> msg</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">接口消息</span></td><td key=5></td></tr><tr key=0-2><td key=0><span style="padding-left: 0px"><span style="color: #8c8a8a"></span> data</span></td><td key=1><span>object</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">接口数据</span></td><td key=5></td></tr><tr key=0-2-0><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> nickname</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">昵称</span></td><td key=5></td></tr><tr key=0-2-1><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> mobile</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">手机</span></td><td key=5></td></tr><tr key=0-2-2><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> avatar</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">头像</span></td><td key=5></td></tr><tr key=0-2-3><td key=0><span style="padding-left: 20px"><span style="color: #8c8a8a">├─</span> token</span></td><td key=1><span>string</span></td><td key=2>非必须</td><td key=3></td><td key=4><span style="white-space: pre-wrap">TOKEN</span></td><td key=5></td></tr>
  544. </tbody>
  545. </table>
  546. <footer class="m-footer">
  547. <p>Build by <a href="https://ymfe.org/">YMFE</a>.</p>
  548. </footer>
  549. </div>
  550. </div>
  551. </body>
  552. </html>