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

103 lines
3.8 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="user_logon">[API]账号登录</h2>
<p>URL地址<?php echo WEB_URL;?>/api.php?act=user_logon</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">account</td>
<td class="text-center">123456</td>
<td class="text-center">POST</td>
<td class="text-center"></td>
<td class="text-center">可以是账号、邮箱、手机号</td>
</tr>
<tr>
<td class="text-center">密码</td>
<td class="text-center">password</td>
<td class="text-center">Abc123456.*</td>
<td class="text-center">POST</td>
<td class="text-center"></td>
<td class="text-center">密码长度最少6位,最长18位不支持中文以及.-*_以外特殊字符</td>
</tr>
<tr>
<td class="text-center">设备信息/机器码</td>
<td class="text-center">markcode</td>
<td class="text-center">6312B6FD14302752</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">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="12">
{
"code":200,
"msg":{
"token":"ec7f0e4c29cc91a523608ebafc7eef97",
"info":{
"id":1,
"pic":"http://17.u.com/data/pic/0.png",
"name":"这个人没有名字!",
"vip":1582112376,
"fen":100
},
},
"time":1582107375
}</textarea>
</div>
</div>
</div>
</div> <!-- end /.text-center-->
</div> <!-- end col -->
</div>
<!-- end row -->
</div>
<!-- end container -->
</div><!-- end page -->