作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

个人中心接口设计

... ... @@ -51,14 +51,13 @@ class UserController extends RestBaseController
$where['o.to_post_status']=$param['status'];
}
if ($param['status']==""){
$where['o.to_post_status']='not null';
$where['o.to_post_status']=['neq',0];
}
$data=Db::name('order')
->alias('o')
->join('post p','o.post_id=p.id')
->join('user u1','p.user_id=u1.id')
->where($where)
->whereNotNull('o.to_post_status')
->field('o.*,u1.user_nickname')
->select()->each(function ($item) {
if ($item['to_post_status']!=6){
... ...