作者 郭盛
1 个管道 的构建 通过 耗费 7 秒

修改对应接口

... ... @@ -1065,8 +1065,11 @@ class Project extends Api
->where('a.user_id',$user_id)
->order('a.createtime desc')
->select();
// print_r($data);die;
//按用户的查看时间将数据分段
foreach ($data as &$v){
$v['project_image'] = 'http://q2ugvq3qf.bkt.clouddn.com'.$v['project_image'];
$v['image'] = 'http://q2ugvq3qf.bkt.clouddn.com'.$v['image'];
$v['create_time'] = date('Y-m-d',$v['createtime']);
$v['createtime'] = date('H:i:s',$v['createtime']);
}
... ...
... ... @@ -16,15 +16,15 @@ return [
// 数据库类型
'type' => Env::get('database.type', 'mysql'),
// 服务器地址
'hostname' => Env::get('database.hostname', 'rm-m5eblhc9o3515i25neo.mysql.rds.aliyuncs.com'),
'hostname' => Env::get('database.hostname', '39.107.85.126'),
// 数据库名
'database' => Env::get('database.database', 'trace'),
'database' => Env::get('database.database', 'farm'),
// 用户名
'username' => Env::get('database.username', 'db136s1ehvo1yn73'),
'username' => Env::get('database.username', 'farm'),
// 密码
'password' => Env::get('database.password', 'cxz307311SJK'),
'password' => Env::get('database.password', 'farm@123'),
// 端口
'hostport' => Env::get('database.hostport', ''),
'hostport' => Env::get('database.hostport', '3306'),
// 连接dsn
'dsn' => '',
// 数据库连接参数
... ...
... ... @@ -12293,7 +12293,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-01-02 08:37:29 </div>
Generated on 2020-01-02 10:06:07 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...