...
|
...
|
@@ -156,6 +156,7 @@ class Order extends Api |
|
|
"is_summarize"://是否总结过(1是2否)
|
|
|
"is_complaint"://是否被投诉(1是2否3已处理)
|
|
|
"is_comment"://是否评价过(1是2否)
|
|
|
"right_status"://学生售后订单中的状态(1已处理2未处理)
|
|
|
}
|
|
|
})
|
|
|
*/
|
...
|
...
|
@@ -193,6 +194,14 @@ class Order extends Api |
|
|
->field('a.*,b.name,b.thumbnail')
|
|
|
->page($page,$pageNum)
|
|
|
->select();
|
|
|
foreach ($data as &$v){
|
|
|
$detail = Db::name('order')->where('id',$v['id'])->find();
|
|
|
if($detail['order_status'] == 2){
|
|
|
$v['right_status'] = 2;
|
|
|
}else{
|
|
|
$v['right_status'] = 1;
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
$this->error('类型有误');
|
|
|
}
|
...
|
...
|
|