|
@@ -20,8 +20,6 @@ class GoodsEval extends Api
|
|
|
* @ApiParams (name=goods_id,description=商品ID)
|
|
|
* @ApiParams (name=page,description=分页)
|
|
|
* @ApiParams (name=limit,description=分页)
|
|
|
- * @ApiReturnParams (name=content,description=内容)
|
|
|
- * @ApiReturnParams (name=create_time,description=时间)
|
|
|
*/
|
|
|
public function goods(){
|
|
|
$data=$this->_validate([
|
|
@@ -54,9 +52,10 @@ class GoodsEval extends Api
|
|
|
}else{
|
|
|
$query
|
|
|
->whereExists('select * from goods_eval where goods_eval.order_id=order_info.order_id and goods_eval.goods_id=order_info.goods_id')
|
|
|
- ->whereExists("select * from orders where {$orders}.id=order_info.order_id and {$orders}.status=".Orders::S_OVER);
|
|
|
+ ->whereExists("select * from {$orders} where {$orders}.id=order_info.order_id and {$orders}.status=".Orders::S_OVER);
|
|
|
}
|
|
|
})
|
|
|
+ ->with('orders')
|
|
|
->group('order_id,goods_id')
|
|
|
->paginate(input('limit')?:15);
|
|
|
$this->success('',$goods);
|