0 && is_integer((int)$item); }], ['请输入要兑换数量', '请输入大于0的整数']]], $request, true); $res = UserMoney::exchangeMoney($request->uid(), $origin_money_type, $money_type, $num); if (!$res) { return app('json')->fail(UserMoney::getErrorInfo()); } else { return app('json')->success('闪兑成功'); } } }