|
@@ -146,7 +146,7 @@ class CommonController extends Controller
|
146
|
146
|
}
|
147
|
147
|
|
148
|
148
|
/**
|
149
|
|
- * 分页获取订单评论
|
|
149
|
+ * 获取某订单评论
|
150
|
150
|
* @param Request $request
|
151
|
151
|
* @return mixed
|
152
|
152
|
*/
|
|
@@ -154,7 +154,11 @@ class CommonController extends Controller
|
154
|
154
|
{
|
155
|
155
|
$order_type = $request->route("order_type");
|
156
|
156
|
if ($order_type) {
|
157
|
|
- return Comment::where("order_type", $order_type)->orderBy('id', 'desc')->paginate(20);
|
|
157
|
+ $record = Comment::where("order_type", $order_type)->first();
|
|
158
|
+ return Response()->json([
|
|
159
|
+ "status" => 0,
|
|
160
|
+ "data" => $record
|
|
161
|
+ ]);
|
158
|
162
|
}
|
159
|
163
|
}
|
160
|
164
|
|