tv/template/eruyi/doc/b_e_set_up.html
2025-11-28 14:28:58 +08:00

93 lines
3.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="mt-1 mb-2">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="card">
<div class="card-body">
<h2 id="set_up">[API]设置用户账号密码</h2>
<p>URL地址<?php echo WEB_URL;?>/api.php?act=set_up</p>
<p>请求参数说明:</p>
<div class="table-responsive-sm">
<table class="table table-bordered table-centered">
<thead>
<tr>
<th class="text-center">字段名</th>
<th class="text-center">变量名</th>
<th class="text-center">示例值</th>
<th class="text-center">类型</th>
<th class="text-center">必填</th>
<th class="text-center">描述</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-center">应用</td>
<td class="text-center">app</td>
<td class="text-center">10000</td>
<td class="text-center">GET</td>
<td class="text-center"></td>
<td class="text-center">应用ID必填参数用于获取APP配置</td>
</tr>
<tr>
<td class="text-center">用户状态</td>
<td class="text-center">token</td>
<td class="text-center">ec7f0e4c29cc91a523608ebafc7eef97</td>
<td class="text-center">POST</td>
<td class="text-center"></td>
<td class="text-center">登录成功后获得的token参数</td>
</tr>
<tr>
<td class="text-center">账号</td>
<td class="text-center">user</td>
<td class="text-center">123456</td>
<td class="text-center">POST</td>
<td class="text-center"></td>
<td class="text-center">如果是用邮箱、手机号、微信、QQ注册的可以设置账号</td>
</tr>
<tr>
<td class="text-center">密码</td>
<td class="text-center">password</td>
<td class="text-center">654321</td>
<td class="text-center">POST</td>
<td class="text-center"></td>
<td class="text-center">如果是用微信、QQ注册的必须设置密码</td>
</tr>
<tr>
<td class="text-center">时间戳</td>
<td class="text-center">t</td>
<td class="text-center">1582266964</td>
<td class="text-center">POST</td>
<td class="text-center"></td>
<td class="text-center">如果开启了《<span class="text-primary">时间差校验</span>》就必须传入客户端时间戳</td>
</tr>
<tr>
<td class="text-center">数据签名</td>
<td class="text-center">sign</td>
<td class="text-center">16d1b8c03072c8c7c5ecb51e157b059a</td>
<td class="text-center">POST</td>
<td class="text-center"></td>
<td class="text-center">如果开启了《<a href="#sign">数据签名</a>》就必须传入签名数据</td>
</tr>
</tbody>
</table>
</div> <!-- end table-responsive-->
<p>返回结果:</p>
<div class="note-editor note-frame card codeview">
<div class="note-editing-area">
<textarea class="note-codable" role="textbox" aria-multiline="true" rows="5">
{
"code":200,
"msg":"设置成功",
"time":1582107375
}</textarea>
</div>
</div>
</div>
</div> <!-- end /.text-center-->
</div> <!-- end col -->
</div>
<!-- end row -->
</div>
<!-- end container -->
</div><!-- end page -->