order assign

This commit is contained in:
Tokumeikoi 2020-05-11 15:19:52 +08:00
parent d1a2e7a29e
commit a4df1416de
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ class OrderController extends Controller
public function assign(OrderAssign $request) public function assign(OrderAssign $request)
{ {
$plan = Plan::find($request->input('plan_id')); $plan = Plan::find($request->input('plan_id'));
$user = User::where('email', $request->input('email')); $user = User::where('email', $request->input('email'))->first();
if (!$user) { if (!$user) {
abort(500, '该用户不存在'); abort(500, '该用户不存在');

File diff suppressed because one or more lines are too long