...
|
...
|
@@ -397,7 +397,7 @@ class Order extends Api |
|
|
*
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
*
|
|
|
* @ApiParams (name="type", type="int", required=false, description="类型(如果为空或者为1是进行中 2是已完成3是售后)")
|
|
|
* @ApiParams (name="type", type="int", required=false, description="类型(如果为空或者为1是进行中 2是已完成3是售后4待总结5已总结)")
|
|
|
* @ApiParams (name="page", type="inter", required=false, description="当前页(默认1)")
|
|
|
* @ApiParams (name="pageNum", type="inter", required=false, description="每页显示数据个数(默认10)")
|
|
|
*
|
...
|
...
|
@@ -488,7 +488,28 @@ class Order extends Api |
|
|
'token' => ''
|
|
|
];
|
|
|
}
|
|
|
}else{
|
|
|
}elseif ($type == 4){
|
|
|
$data = Db::name('order')
|
|
|
->alias('a')
|
|
|
->join('teacher b','a.teacher_id = b.id')
|
|
|
->where('a.user_id',$user_id)
|
|
|
->where('a.finish_status',2)
|
|
|
->field('a.*,b.name,b.thumbnail')
|
|
|
->order('id desc')
|
|
|
->page($page,$pageNum)
|
|
|
->select();
|
|
|
}elseif ($type == 5){
|
|
|
$data = Db::name('order')
|
|
|
->alias('a')
|
|
|
->join('teacher b','a.teacher_id = b.id')
|
|
|
->where('a.user_id',$user_id)
|
|
|
->where('a.finish_status',3)
|
|
|
->field('a.*,b.name,b.thumbnail')
|
|
|
->order('id desc')
|
|
|
->page($page,$pageNum)
|
|
|
->select();
|
|
|
}
|
|
|
else{
|
|
|
$this->error('类型有误');
|
|
|
}
|
|
|
foreach ($data as &$v){
|
...
|
...
|
|