Commit 307a873d by 赵增煜

去除toArray

parent 8099d283
......@@ -33,7 +33,7 @@ public function dosageList(Request $request)
if (! $pharmacy) {
return $this->failed('您的账号可能在其他设备登录,请重新登录!');
}
$dosages = DosageModel::where('pharmacy_id', $pharmacy->id)->get();
$dosages = DosageModel::where('pharmacy_id', $pharmacy->id)->get()->toArray();
return $this->success($dosages);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment