作者 郭宇鹏
1 个管道 的构建 通过 耗费 10 秒

'1-4'

... ... @@ -190,7 +190,7 @@ class Index extends BaseApi
if ($attention == 2){
$art_list[$key]['is_friend'] = 1;
}else{
$art_list[$key]['is_friend'] = 1;
$art_list[$key]['is_friend'] = 0;
}
}
}
... ... @@ -258,7 +258,7 @@ class Index extends BaseApi
if ($attention == 2){
$art_list[$key]['is_friend'] = 1;
}else{
$art_list[$key]['is_friend'] = 1;
$art_list[$key]['is_friend'] = 0;
}
}
}
... ...
... ... @@ -139,9 +139,6 @@ class Treasured extends BaseApi
->logo($this->auth->avatar)//生成logo二维码
->background(550,950,cdnurl($qr_code_bg['value'])) //给二维码加上背景
->getPath();//获取二维码生成的地址
// $qr_code = $this->createQrCode($url.$treasured['id'],4,1.97);
// $qr_code = $this->createQrCode($url.$treasured['id'],4,1.97,cdnurl($qr_code_bg['value']));
//8.更新数据
$treasured->qr_code = this_url().$qr_code;
$treasured->qr_code_d = this_url().$qr_code_d;
... ... @@ -151,21 +148,103 @@ class Treasured extends BaseApi
$this->success('增加墨宝档案成功',$treasured);
}
public function createQrCode($name,$size = 5,$bili = 2,$qr_code_bg = null){
$code = new QRcode();
if ($qr_code_bg){
$qr_code = $code->png($name) //生成二维码
->logo(ROOT_PATH.'public/assets/img/bg.png',$size,$bili) //生成logo二维码
->logo($this->auth->avatar)//生成logo二维码
->background(600,1020,$qr_code_bg) //给二维码加上背景
->getPath();//获取二维码生成的地址
}else{
$qr_code = $code->png($name) //生成二维码
->logo(ROOT_PATH.'public/assets/img/bg.png',$size,$bili) //生成logo二维码
->logo($this->auth->avatar)//生成logo二维码
->getPath();//获取二维码生成的地址
/**
* 墨宝档案基本信息
* @ApiTitle (墨宝档案基本信息)
* @ApiMethod (POST)
* @ApiRoute (/api/treasured/getJiXin)
* @ApiReturnParams (name="code", type="integer", required=true, sample="0")
* @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
* @ApiReturnParams (name="data", type="object", description="扩展数据返回")
* @ApiReturn ({
"code": 1,
"msg": "查询数据成功",
"time": "1609651935",
"data": {
"treasured_num": "墨宝档案数量",
"number": "墨宝档案浏览数量"
}
})
*/
public function getJiXin(){
//1.查询墨宝档案数量
$treasured_num = model('treasured')->where('deletetime','<>',null)->count();
//2.查询墨宝档案浏览数量
$number = model('config')->where('name','mobao_num')->find();
//3.返回数据
$this->success('查询数据成功',['treasured_num'=>$treasured_num,'number'=>$number['value']*1]);
}
/**
* 墨宝档案列表
* @ApiTitle (墨宝档案列表)
* @ApiMethod (POST)
* @ApiRoute (/api/treasured/addListTreasured)
* @ApiParams (name="page", type="integer", required=true, description="分页次数")
* @ApiParams (name="num", type="integer", required=true, description="分页数量")
* @ApiReturnParams (name="code", type="integer", required=true, sample="0")
* @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
* @ApiReturnParams (name="data", type="object", description="扩展数据返回")
* @ApiReturn ()
*/
public function addListTreasured(){
//1.获取动态id
$data = $this->get_data_array([
['page','分页次数不能为空'],
['num','分页数量不能为空']
]);
//2.查询数据
$treasured = model('treasured')
->where('deletetime',null)
->order('createtime','desc')
->page($data['page'],$data['num'])
->select();
//3.记录浏览记录
if ($treasured && $data['page'] == 1){
model('config')->where('name','mobao_num')->setInc('value');
}
//4.返回数据
$this->success('查询数据成功',$treasured);
}
/**
* 墨宝档案列表
* @ApiTitle (墨宝档案列表)
* @ApiMethod (POST)
* @ApiRoute (/api/treasured/getTreasuredShai)
* @ApiParams (name="page", type="integer", required=true, description="分页次数")
* @ApiParams (name="num", type="integer", required=true, description="分页数量")
* @ApiParams (name="author", type="string", required=false, description="作者名称")
* @ApiParams (name="start_time", type="integer", required=false, description="开始时间")
* @ApiParams (name="end_time", type="integer", required=false, description="结束时间")
* @ApiParams (name="author", type="string", required=true, description="作者名称")
* @ApiParams (name="author", type="string", required=true, description="作者名称")
* @ApiReturnParams (name="code", type="integer", required=true, sample="0")
* @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
* @ApiReturnParams (name="data", type="object", description="扩展数据返回")
* @ApiReturn ()
*/
public function getTreasuredShai(){
//1.获取动态id
$data = $this->get_data_array([
['page','分页次数不能为空'],
['num','分页数量不能为空']
]);
//2.查询数据
$treasured = model('treasured')
->where('deletetime',null)
->order('createtime','desc')
->page($data['page'],$data['num'])
->select();
//3.记录浏览记录
if ($treasured && $data['page'] == 1){
model('config')->where('name','mobao_num')->setInc('value');
}
return $qr_code;
//4.返回数据
$this->success('查询数据成功',$treasured);
}
}
\ No newline at end of file
... ...
... ... @@ -207,26 +207,28 @@
<div class="child collapse" id="墨宝档案">
<a href="javascript:;" data-id="44" class="list-group-item">获取墨宝档案尺寸</a>
<a href="javascript:;" data-id="45" class="list-group-item">增加墨宝档案</a>
<a href="javascript:;" data-id="46" class="list-group-item">墨宝档案基本信息</a>
<a href="javascript:;" data-id="47" class="list-group-item">墨宝档案列表</a>
</div>
<a href="#会员接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">会员接口 <i class="fa fa-caret-down"></i></a>
<div class="child collapse" id="会员接口">
<a href="javascript:;" data-id="46" class="list-group-item">会员中心</a>
<a href="javascript:;" data-id="47" class="list-group-item">会员登录</a>
<a href="javascript:;" data-id="48" class="list-group-item">判断是不是已经关注</a>
<a href="javascript:;" data-id="49" class="list-group-item">关注和取消关注</a>
<a href="javascript:;" data-id="48" class="list-group-item">会员中心</a>
<a href="javascript:;" data-id="49" class="list-group-item">会员登录</a>
<a href="javascript:;" data-id="50" class="list-group-item">判断是不是已经关注</a>
<a href="javascript:;" data-id="51" class="list-group-item">关注和取消关注</a>
</div>
<a href="#微信审核" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">微信审核 <i class="fa fa-caret-down"></i></a>
<div class="child collapse" id="微信审核">
<a href="javascript:;" data-id="50" class="list-group-item">判断用户是否什么身份都没有</a>
<a href="javascript:;" data-id="51" class="list-group-item">判断用户权限</a>
<a href="javascript:;" data-id="52" class="list-group-item">用户实名认证/书家申请</a>
<a href="javascript:;" data-id="53" class="list-group-item">获取 用户实名认证/书家申请</a>
<a href="javascript:;" data-id="54" class="list-group-item">书协认证/企业认证接口</a>
<a href="javascript:;" data-id="55" class="list-group-item">获取 书协认证/企业认证</a>
<a href="javascript:;" data-id="52" class="list-group-item">判断用户是否什么身份都没有</a>
<a href="javascript:;" data-id="53" class="list-group-item">判断用户权限</a>
<a href="javascript:;" data-id="54" class="list-group-item">用户实名认证/书家申请</a>
<a href="javascript:;" data-id="55" class="list-group-item">获取 用户实名认证/书家申请</a>
<a href="javascript:;" data-id="56" class="list-group-item">书协认证/企业认证接口</a>
<a href="javascript:;" data-id="57" class="list-group-item">获取 书协认证/企业认证</a>
</div>
<a href="#微信相关" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">微信相关 <i class="fa fa-caret-down"></i></a>
<div class="child collapse" id="微信相关">
<a href="javascript:;" data-id="56" class="list-group-item">jssdk配置信息</a>
<a href="javascript:;" data-id="58" class="list-group-item">jssdk配置信息</a>
</div>
</div>
</div>
... ... @@ -7020,13 +7022,11 @@
</div>
</div>
</div>
<h2>会员接口</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-46">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion46" href="#collapseOne46"> 会员中心 <span class="text-muted">/api/user/index</span></a>
<a data-toggle="collapse" data-parent="#accordion46" href="#collapseOne46"> 墨宝档案基本信息 <span class="text-muted">/api/treasured/getJiXin</span></a>
</h4>
</div>
<div id="collapseOne46" class="panel-collapse collapse">
... ... @@ -7044,7 +7044,7 @@
<div class="tab-pane active" id="info46">
<div class="well">
会员中心 </div>
墨宝档案基本信息 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
... ... @@ -7070,7 +7070,7 @@
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/index" method="POST" name="form46" id="form46">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/treasured/getJiXin" method="POST" name="form46" id="form46">
<div class="form-group">
</div>
... ... @@ -7127,10 +7127,282 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample46">
<div class="tab-pane" id="sample46">
<div class="row">
<div class="col-md-12">
<pre id="sample_response46">{
"code": 1,
"msg": "查询数据成功",
"time": "1609651935",
"data": {
"treasured_num": "墨宝档案数量",
"number": "墨宝档案浏览数量"
}
}</pre>
</div>
</div>
</div><!-- #sample -->
</div><!-- .tab-content -->
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-47">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion47" href="#collapseOne47"> 墨宝档案列表 <span class="text-muted">/api/treasured/addListTreasured</span></a>
</h4>
</div>
<div id="collapseOne47" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab47">
<li class="active"><a href="#info47" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox47" data-toggle="tab">在线测试</a></li>
<li><a href="#sample47" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info47">
<div class="well">
墨宝档案列表 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<table class="table table-hover">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必选</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>page</td>
<td>integer</td>
<td></td>
<td>分页次数</td>
</tr>
<tr>
<td>num</td>
<td>integer</td>
<td></td>
<td>分页数量</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>正文</strong></div>
<div class="panel-body">
</div>
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox47">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/treasured/addListTreasured" method="POST" name="form47" id="form47">
<div class="form-group">
<label class="control-label" for="page">page</label>
<input type="integer" class="form-control input-sm" id="page" required placeholder="分页次数" name="page">
</div>
<div class="form-group">
<label class="control-label" for="num">num</label>
<input type="integer" class="form-control input-sm" id="num" required placeholder="分页数量" name="num">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="47">提交</button>
<button type="reset" class="btn btn-info" rel="47">重置</button>
</div>
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>响应输出</strong></div>
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers47"></pre>
<pre id="response47"></pre>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>返回参数</strong></div>
<div class="panel-body">
<table class="table table-hover">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>integer</td>
<td></td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
<td></td>
</tr>
<tr>
<td>data</td>
<td>object</td>
<td>扩展数据返回</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample47">
<div class="row">
<div class="col-md-12">
<pre id="sample_response47"></pre>
</div>
</div>
</div><!-- #sample -->
</div><!-- .tab-content -->
</div>
</div>
</div>
<h2>会员接口</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-48">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion48" href="#collapseOne48"> 会员中心 <span class="text-muted">/api/user/index</span></a>
</h4>
</div>
<div id="collapseOne48" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab48">
<li class="active"><a href="#info48" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox48" data-toggle="tab">在线测试</a></li>
<li><a href="#sample48" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info48">
<div class="well">
会员中心 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>正文</strong></div>
<div class="panel-body">
</div>
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox48">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/index" method="POST" name="form48" id="form48">
<div class="form-group">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="48">提交</button>
<button type="reset" class="btn btn-info" rel="48">重置</button>
</div>
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>响应输出</strong></div>
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers48"></pre>
<pre id="response48"></pre>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>返回参数</strong></div>
<div class="panel-body">
<table class="table table-hover">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>integer</td>
<td></td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
<td></td>
</tr>
<tr>
<td>data</td>
<td>object</td>
<td>扩展数据返回</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample48">
<div class="row">
<div class="col-md-12">
<pre id="sample_response46">{
<pre id="sample_response48">{
"code": 1,
"msg": "查询用户信息成功",
"time": "1608088086",
... ... @@ -7166,26 +7438,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-47">
<div class="panel-heading" id="heading-49">
<h4 class="panel-title">
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion47" href="#collapseOne47"> 会员登录 <span class="text-muted">/api/user/login</span></a>
<a data-toggle="collapse" data-parent="#accordion49" href="#collapseOne49"> 会员登录 <span class="text-muted">/api/user/login</span></a>
</h4>
</div>
<div id="collapseOne47" class="panel-collapse collapse">
<div id="collapseOne49" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab47">
<li class="active"><a href="#info47" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox47" data-toggle="tab">在线测试</a></li>
<li><a href="#sample47" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab49">
<li class="active"><a href="#info49" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox49" data-toggle="tab">在线测试</a></li>
<li><a href="#sample49" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info47">
<div class="tab-pane active" id="info49">
<div class="well">
会员登录 </div>
<div class="panel panel-default">
... ... @@ -7230,13 +7502,13 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox47">
<div class="tab-pane" id="sandbox49">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/login" method="get" name="form47" id="form47">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/login" method="get" name="form49" id="form49">
<div class="form-group">
<label class="control-label" for="account">account</label>
<input type="string" class="form-control input-sm" id="account" required placeholder="账号" name="account">
... ... @@ -7246,8 +7518,8 @@
<input type="string" class="form-control input-sm" id="password" required placeholder="密码" name="password">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="47">提交</button>
<button type="reset" class="btn btn-info" rel="47">重置</button>
<button type="submit" class="btn btn-success send" rel="49">提交</button>
<button type="reset" class="btn btn-info" rel="49">重置</button>
</div>
</form>
</div>
... ... @@ -7257,8 +7529,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers47"></pre>
<pre id="response47"></pre>
<pre id="response_headers49"></pre>
<pre id="response49"></pre>
</div>
</div>
</div>
... ... @@ -7273,10 +7545,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample47">
<div class="tab-pane" id="sample49">
<div class="row">
<div class="col-md-12">
<pre id="sample_response47"></pre>
<pre id="sample_response49"></pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -7286,26 +7558,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-48">
<div class="panel-heading" id="heading-50">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion48" href="#collapseOne48"> 判断是不是已经关注 <span class="text-muted">/api/user/is_attention</span></a>
<a data-toggle="collapse" data-parent="#accordion50" href="#collapseOne50"> 判断是不是已经关注 <span class="text-muted">/api/user/is_attention</span></a>
</h4>
</div>
<div id="collapseOne48" class="panel-collapse collapse">
<div id="collapseOne50" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab48">
<li class="active"><a href="#info48" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox48" data-toggle="tab">在线测试</a></li>
<li><a href="#sample48" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab50">
<li class="active"><a href="#info50" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox50" data-toggle="tab">在线测试</a></li>
<li><a href="#sample50" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info48">
<div class="tab-pane active" id="info50">
<div class="well">
判断是不是已经关注 </div>
<div class="panel panel-default">
... ... @@ -7344,20 +7616,20 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox48">
<div class="tab-pane" id="sandbox50">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/is_attention" method="POST" name="form48" id="form48">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/is_attention" method="POST" name="form50" id="form50">
<div class="form-group">
<label class="control-label" for="user_id">user_id</label>
<input type="integer" class="form-control input-sm" id="user_id" required placeholder="墨宝作者" name="user_id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="48">提交</button>
<button type="reset" class="btn btn-info" rel="48">重置</button>
<button type="submit" class="btn btn-success send" rel="50">提交</button>
<button type="reset" class="btn btn-info" rel="50">重置</button>
</div>
</form>
</div>
... ... @@ -7367,8 +7639,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers48"></pre>
<pre id="response48"></pre>
<pre id="response_headers50"></pre>
<pre id="response50"></pre>
</div>
</div>
</div>
... ... @@ -7408,10 +7680,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample48">
<div class="tab-pane" id="sample50">
<div class="row">
<div class="col-md-12">
<pre id="sample_response48">{
<pre id="sample_response50">{
"code": 1,
"msg": "查询成功",
"time": "1609308298",
... ... @@ -7429,26 +7701,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-49">
<div class="panel-heading" id="heading-51">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion49" href="#collapseOne49"> 关注和取消关注 <span class="text-muted">/api/user/in_attention</span></a>
<a data-toggle="collapse" data-parent="#accordion51" href="#collapseOne51"> 关注和取消关注 <span class="text-muted">/api/user/in_attention</span></a>
</h4>
</div>
<div id="collapseOne49" class="panel-collapse collapse">
<div id="collapseOne51" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab49">
<li class="active"><a href="#info49" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox49" data-toggle="tab">在线测试</a></li>
<li><a href="#sample49" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab51">
<li class="active"><a href="#info51" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox51" data-toggle="tab">在线测试</a></li>
<li><a href="#sample51" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info49">
<div class="tab-pane active" id="info51">
<div class="well">
关注和取消关注 </div>
<div class="panel panel-default">
... ... @@ -7487,20 +7759,20 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox49">
<div class="tab-pane" id="sandbox51">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/in_attention" method="POST" name="form49" id="form49">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/in_attention" method="POST" name="form51" id="form51">
<div class="form-group">
<label class="control-label" for="user_id">user_id</label>
<input type="integer" class="form-control input-sm" id="user_id" required placeholder="墨宝作者" name="user_id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="49">提交</button>
<button type="reset" class="btn btn-info" rel="49">重置</button>
<button type="submit" class="btn btn-success send" rel="51">提交</button>
<button type="reset" class="btn btn-info" rel="51">重置</button>
</div>
</form>
</div>
... ... @@ -7510,8 +7782,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers49"></pre>
<pre id="response49"></pre>
<pre id="response_headers51"></pre>
<pre id="response51"></pre>
</div>
</div>
</div>
... ... @@ -7551,10 +7823,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample49">
<div class="tab-pane" id="sample51">
<div class="row">
<div class="col-md-12">
<pre id="sample_response49">{
<pre id="sample_response51">{
"code": 1,
"msg": "查询成功",
"time": "1609308298",
... ... @@ -7574,26 +7846,26 @@
<h2>微信审核</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-50">
<div class="panel-heading" id="heading-52">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion50" href="#collapseOne50"> 判断用户是否什么身份都没有 <span class="text-muted">/api/user_audit/is_auth_all</span></a>
<a data-toggle="collapse" data-parent="#accordion52" href="#collapseOne52"> 判断用户是否什么身份都没有 <span class="text-muted">/api/user_audit/is_auth_all</span></a>
</h4>
</div>
<div id="collapseOne50" class="panel-collapse collapse">
<div id="collapseOne52" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab50">
<li class="active"><a href="#info50" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox50" data-toggle="tab">在线测试</a></li>
<li><a href="#sample50" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab52">
<li class="active"><a href="#info52" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox52" data-toggle="tab">在线测试</a></li>
<li><a href="#sample52" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info50">
<div class="tab-pane active" id="info52">
<div class="well">
判断用户是否什么身份都没有:{用于增加文章部分} </div>
<div class="panel panel-default">
... ... @@ -7615,19 +7887,19 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox50">
<div class="tab-pane" id="sandbox52">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user_audit/is_auth_all" method="POST" name="form50" id="form50">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user_audit/is_auth_all" method="POST" name="form52" id="form52">
<div class="form-group">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="50">提交</button>
<button type="reset" class="btn btn-info" rel="50">重置</button>
<button type="submit" class="btn btn-success send" rel="52">提交</button>
<button type="reset" class="btn btn-info" rel="52">重置</button>
</div>
</form>
</div>
... ... @@ -7637,8 +7909,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers50"></pre>
<pre id="response50"></pre>
<pre id="response_headers52"></pre>
<pre id="response52"></pre>
</div>
</div>
</div>
... ... @@ -7678,10 +7950,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample50">
<div class="tab-pane" id="sample52">
<div class="row">
<div class="col-md-12">
<pre id="sample_response50">{
<pre id="sample_response52">{
"code": 1,
"msg": "有权限",
"time": "1608605278",
... ... @@ -7696,26 +7968,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-51">
<div class="panel-heading" id="heading-53">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion51" href="#collapseOne51"> 判断用户权限 <span class="text-muted">/api/user_audit/is_auth</span></a>
<a data-toggle="collapse" data-parent="#accordion53" href="#collapseOne53"> 判断用户权限 <span class="text-muted">/api/user_audit/is_auth</span></a>
</h4>
</div>
<div id="collapseOne51" class="panel-collapse collapse">
<div id="collapseOne53" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab51">
<li class="active"><a href="#info51" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox51" data-toggle="tab">在线测试</a></li>
<li><a href="#sample51" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab53">
<li class="active"><a href="#info53" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox53" data-toggle="tab">在线测试</a></li>
<li><a href="#sample53" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info51">
<div class="tab-pane active" id="info53">
<div class="well">
判断用户是不是有已经有此种身份 </div>
<div class="panel panel-default">
... ... @@ -7754,20 +8026,20 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox51">
<div class="tab-pane" id="sandbox53">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user_audit/is_auth" method="POST" name="form51" id="form51">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user_audit/is_auth" method="POST" name="form53" id="form53">
<div class="form-group">
<label class="control-label" for="status">status</label>
<input type="integer" class="form-control input-sm" id="status" required placeholder="身份:1=实名认证,2=书家,3=书协,4=企业" name="status">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="51">提交</button>
<button type="reset" class="btn btn-info" rel="51">重置</button>
<button type="submit" class="btn btn-success send" rel="53">提交</button>
<button type="reset" class="btn btn-info" rel="53">重置</button>
</div>
</form>
</div>
... ... @@ -7777,8 +8049,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers51"></pre>
<pre id="response51"></pre>
<pre id="response_headers53"></pre>
<pre id="response53"></pre>
</div>
</div>
</div>
... ... @@ -7818,10 +8090,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample51">
<div class="tab-pane" id="sample53">
<div class="row">
<div class="col-md-12">
<pre id="sample_response51">{
<pre id="sample_response53">{
"code": 0,
"msg": "身份必须必填",
"time": "1608280579",
... ... @@ -7836,26 +8108,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-52">
<div class="panel-heading" id="heading-54">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion52" href="#collapseOne52"> 用户实名认证/书家申请 <span class="text-muted">/api/user_audit/user_audit_a</span></a>
<a data-toggle="collapse" data-parent="#accordion54" href="#collapseOne54"> 用户实名认证/书家申请 <span class="text-muted">/api/user_audit/user_audit_a</span></a>
</h4>
</div>
<div id="collapseOne52" class="panel-collapse collapse">
<div id="collapseOne54" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab52">
<li class="active"><a href="#info52" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox52" data-toggle="tab">在线测试</a></li>
<li><a href="#sample52" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab54">
<li class="active"><a href="#info54" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox54" data-toggle="tab">在线测试</a></li>
<li><a href="#sample54" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info52">
<div class="tab-pane active" id="info54">
<div class="well">
用户实名认证/书家申请 调用前请先调用{判断用户权限}接口 </div>
<div class="panel panel-default">
... ... @@ -7936,13 +8208,13 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox52">
<div class="tab-pane" id="sandbox54">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user_audit/user_audit_a" method="POST" name="form52" id="form52">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user_audit/user_audit_a" method="POST" name="form54" id="form54">
<div class="form-group">
<label class="control-label" for="name">name</label>
<input type="string" class="form-control input-sm" id="name" required placeholder="用户姓名" name="name">
... ... @@ -7976,8 +8248,8 @@
<input type="integer" class="form-control input-sm" id="user_audit_a_id" placeholder="审核id:如果存在,则代表更新,用于用户审核失败时候重新审核" name="user_audit_a_id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="52">提交</button>
<button type="reset" class="btn btn-info" rel="52">重置</button>
<button type="submit" class="btn btn-success send" rel="54">提交</button>
<button type="reset" class="btn btn-info" rel="54">重置</button>
</div>
</form>
</div>
... ... @@ -7987,8 +8259,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers52"></pre>
<pre id="response52"></pre>
<pre id="response_headers54"></pre>
<pre id="response54"></pre>
</div>
</div>
</div>
... ... @@ -8028,10 +8300,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample52">
<div class="tab-pane" id="sample54">
<div class="row">
<div class="col-md-12">
<pre id="sample_response52">{
<pre id="sample_response54">{
"code": 1,
"msg": "提交成功",
"time": "1608284784",
... ... @@ -8058,26 +8330,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-53">
<div class="panel-heading" id="heading-55">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion53" href="#collapseOne53"> 获取 用户实名认证/书家申请 <span class="text-muted">/api/user_audit/get_user_audit_a</span></a>
<a data-toggle="collapse" data-parent="#accordion55" href="#collapseOne55"> 获取 用户实名认证/书家申请 <span class="text-muted">/api/user_audit/get_user_audit_a</span></a>
</h4>
</div>
<div id="collapseOne53" class="panel-collapse collapse">
<div id="collapseOne55" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab53">
<li class="active"><a href="#info53" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox53" data-toggle="tab">在线测试</a></li>
<li><a href="#sample53" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab55">
<li class="active"><a href="#info55" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox55" data-toggle="tab">在线测试</a></li>
<li><a href="#sample55" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info53">
<div class="tab-pane active" id="info55">
<div class="well">
用户实名认证/书家申请 如果有code返回1 没有返回0 </div>
<div class="panel panel-default">
... ... @@ -8116,20 +8388,20 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox53">
<div class="tab-pane" id="sandbox55">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user_audit/get_user_audit_a" method="POST" name="form53" id="form53">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user_audit/get_user_audit_a" method="POST" name="form55" id="form55">
<div class="form-group">
<label class="control-label" for="status">status</label>
<input type="integer" class="form-control input-sm" id="status" required placeholder="类别:1=实名认证审核,2=书家审核" name="status">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="53">提交</button>
<button type="reset" class="btn btn-info" rel="53">重置</button>
<button type="submit" class="btn btn-success send" rel="55">提交</button>
<button type="reset" class="btn btn-info" rel="55">重置</button>
</div>
</form>
</div>
... ... @@ -8139,8 +8411,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers53"></pre>
<pre id="response53"></pre>
<pre id="response_headers55"></pre>
<pre id="response55"></pre>
</div>
</div>
</div>
... ... @@ -8180,10 +8452,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample53">
<div class="tab-pane" id="sample55">
<div class="row">
<div class="col-md-12">
<pre id="sample_response53">{
<pre id="sample_response55">{
"code": 1,
"msg": {
"id": 19,
... ... @@ -8212,26 +8484,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-54">
<div class="panel-heading" id="heading-56">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion54" href="#collapseOne54"> 书协认证/企业认证接口 <span class="text-muted">/api/user_audit/user_audit_b</span></a>
<a data-toggle="collapse" data-parent="#accordion56" href="#collapseOne56"> 书协认证/企业认证接口 <span class="text-muted">/api/user_audit/user_audit_b</span></a>
</h4>
</div>
<div id="collapseOne54" class="panel-collapse collapse">
<div id="collapseOne56" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab54">
<li class="active"><a href="#info54" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox54" data-toggle="tab">在线测试</a></li>
<li><a href="#sample54" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab56">
<li class="active"><a href="#info56" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox56" data-toggle="tab">在线测试</a></li>
<li><a href="#sample56" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info54">
<div class="tab-pane active" id="info56">
<div class="well">
书协认证/企业认证接口 调用前请先调用{判断用户权限}接口 </div>
<div class="panel panel-default">
... ... @@ -8294,13 +8566,13 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox54">
<div class="tab-pane" id="sandbox56">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user_audit/user_audit_b" method="POST" name="form54" id="form54">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user_audit/user_audit_b" method="POST" name="form56" id="form56">
<div class="form-group">
<label class="control-label" for="name">name</label>
<input type="string" class="form-control input-sm" id="name" required placeholder="用户姓名" name="name">
... ... @@ -8322,8 +8594,8 @@
<input type="integer" class="form-control input-sm" id="user_audit_b_id" placeholder="审核id:如果存在,则代表更新,用于用户审核失败时候重新审核" name="user_audit_b_id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="54">提交</button>
<button type="reset" class="btn btn-info" rel="54">重置</button>
<button type="submit" class="btn btn-success send" rel="56">提交</button>
<button type="reset" class="btn btn-info" rel="56">重置</button>
</div>
</form>
</div>
... ... @@ -8333,8 +8605,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers54"></pre>
<pre id="response54"></pre>
<pre id="response_headers56"></pre>
<pre id="response56"></pre>
</div>
</div>
</div>
... ... @@ -8374,10 +8646,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample54">
<div class="tab-pane" id="sample56">
<div class="row">
<div class="col-md-12">
<pre id="sample_response54">{
<pre id="sample_response56">{
"code": 1,
"msg": "提交成功",
"time": "1608284784",
... ... @@ -8401,26 +8673,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-55">
<div class="panel-heading" id="heading-57">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion55" href="#collapseOne55"> 获取 书协认证/企业认证 <span class="text-muted">/api/user_audit/get_user_audit_b</span></a>
<a data-toggle="collapse" data-parent="#accordion57" href="#collapseOne57"> 获取 书协认证/企业认证 <span class="text-muted">/api/user_audit/get_user_audit_b</span></a>
</h4>
</div>
<div id="collapseOne55" class="panel-collapse collapse">
<div id="collapseOne57" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab55">
<li class="active"><a href="#info55" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox55" data-toggle="tab">在线测试</a></li>
<li><a href="#sample55" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab57">
<li class="active"><a href="#info57" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox57" data-toggle="tab">在线测试</a></li>
<li><a href="#sample57" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info55">
<div class="tab-pane active" id="info57">
<div class="well">
书协认证/企业认证 如果有code返回1 没有返回0 </div>
<div class="panel panel-default">
... ... @@ -8459,20 +8731,20 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox55">
<div class="tab-pane" id="sandbox57">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user_audit/get_user_audit_b" method="POST" name="form55" id="form55">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user_audit/get_user_audit_b" method="POST" name="form57" id="form57">
<div class="form-group">
<label class="control-label" for="status">status</label>
<input type="integer" class="form-control input-sm" id="status" required placeholder="类别:1=书协审核,2=企业审核" name="status">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="55">提交</button>
<button type="reset" class="btn btn-info" rel="55">重置</button>
<button type="submit" class="btn btn-success send" rel="57">提交</button>
<button type="reset" class="btn btn-info" rel="57">重置</button>
</div>
</form>
</div>
... ... @@ -8482,8 +8754,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers55"></pre>
<pre id="response55"></pre>
<pre id="response_headers57"></pre>
<pre id="response57"></pre>
</div>
</div>
</div>
... ... @@ -8523,10 +8795,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample55">
<div class="tab-pane" id="sample57">
<div class="row">
<div class="col-md-12">
<pre id="sample_response55">{
<pre id="sample_response57">{
"code": 1,
"msg": {
"id": 19,
... ... @@ -8554,26 +8826,26 @@
<h2>微信相关</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-56">
<div class="panel-heading" id="heading-58">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion56" href="#collapseOne56"> jssdk配置信息 <span class="text-muted">/api/wechat/wechat_jssdk</span></a>
<a data-toggle="collapse" data-parent="#accordion58" href="#collapseOne58"> jssdk配置信息 <span class="text-muted">/api/wechat/wechat_jssdk</span></a>
</h4>
</div>
<div id="collapseOne56" class="panel-collapse collapse">
<div id="collapseOne58" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab56">
<li class="active"><a href="#info56" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox56" data-toggle="tab">在线测试</a></li>
<li><a href="#sample56" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab58">
<li class="active"><a href="#info58" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox58" data-toggle="tab">在线测试</a></li>
<li><a href="#sample58" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info56">
<div class="tab-pane active" id="info58">
<div class="well">
jssdk配置信息 </div>
<div class="panel panel-default">
... ... @@ -8612,20 +8884,20 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox56">
<div class="tab-pane" id="sandbox58">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/wechat/wechat_jssdk" method="POST" name="form56" id="form56">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/wechat/wechat_jssdk" method="POST" name="form58" id="form58">
<div class="form-group">
<label class="control-label" for="url">url</label>
<input type="string" class="form-control input-sm" id="url" required placeholder="当前地址" name="url">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="56">提交</button>
<button type="reset" class="btn btn-info" rel="56">重置</button>
<button type="submit" class="btn btn-success send" rel="58">提交</button>
<button type="reset" class="btn btn-info" rel="58">重置</button>
</div>
</form>
</div>
... ... @@ -8635,8 +8907,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers56"></pre>
<pre id="response56"></pre>
<pre id="response_headers58"></pre>
<pre id="response58"></pre>
</div>
</div>
</div>
... ... @@ -8671,10 +8943,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample56">
<div class="tab-pane" id="sample58">
<div class="row">
<div class="col-md-12">
<pre id="sample_response56">{
<pre id="sample_response58">{
'code':'1',
'msg':'返回成功',
"data": {
... ... @@ -8707,7 +8979,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-12-31 11:42:33 </div>
Generated on 2021-01-03 14:18:41 </div>
<div class="col-md-6" align="right">
<a href="./" target="_blank">书法公众号</a>
</div>
... ...
... ... @@ -55,11 +55,9 @@ class QRcode
public function png($url,$outfile=false,$size=5,$evel='H'){
if(!$outfile){
$outfile = $this->cache_dir.DS.time().rand(1000,9999).'.png';
$outfile = $this->cache_dir.DS.(time()-rand(1000,9999)).'.png';
}
$this->outfile = $outfile;
\QRcode::png($url,$outfile,$evel,$size,2);
return $this;
}
... ... @@ -126,7 +124,7 @@ class QRcode
//重新组合图片并调整大小
imagecopyresampled($QR, $logo, $from_width, $from_width, 0, 0, $logo_qr_width, $logo_qr_height, $logo_width, $logo_height);
$this->outfile = $this->cache_dir.DS.time().'.png';
$this->outfile = $this->cache_dir.DS.(time()-rand(1000,9999)).'.png';
imagepng($QR, $this->outfile);
imagedestroy($QR);
return $this;
... ... @@ -158,7 +156,7 @@ class QRcode
//将覆盖图复制到目标图片上,最后个参数100是设置透明度(100是不透明),这里实现不透明效果
imagecopymerge($dst, $src,$a[0]-$b[0]-10, $a[1]-$b[1]-10, 0, 0, $src_w, $src_h, 90);
$this->outfile = $this->cache_dir.DS.time().'.png';
$this->outfile = $this->cache_dir.DS.(time()-rand(1000,9999)).'.png';
imagepng($dst, $this->outfile);//根据需要生成相应的图片
imagedestroy($dst);
return $this;
... ... @@ -186,7 +184,6 @@ class QRcode
if(!is_file($font)){
$font = dirname(__FILE__).DS.$font;
}
//获取文字信息
$info = imagettfbbox($size, $angle, $font, $text);
$minx = min($info[0], $info[2], $info[4], $info[6]);
... ... @@ -198,7 +195,6 @@ class QRcode
$y = abs($miny);
$w = $maxx - $minx;
$h = $maxy - $miny;
//背景图信息
list($dst_w, $dst_h) = getimagesize($dst_path);
... ... @@ -209,19 +205,14 @@ class QRcode
} else {
throw new Exception('不支持的文字位置类型');
}
//字体颜色
$black = imagecolorallocate($dst, $color[0], $color[1], $color[2]);
//加入文字
imagefttext($dst, $size, $angle, $x, $y, $black,$font, $text);
//生成图片
$this->outfile = $this->cache_dir.DS.time().'.png';
$this->outfile = $this->cache_dir.DS.(time()-rand(1000,9999)).'.png';
imagepng($dst, $this->outfile);
imagedestroy($dst);
return $this;
}
... ...