|
@@ -285,7 +285,7 @@ class UserController
|
|
|
public function extractIntegral(Request $request, UserAwardIntegralServices $services, $id)
|
|
|
{
|
|
|
$info = $services->getIntegral($id);
|
|
|
- if ($info['uid'] != $request->uid()) {
|
|
|
+ if (!$info || $info['uid'] != $request->uid()) {
|
|
|
return app('json')->fail('记录不存在');
|
|
|
}
|
|
|
if ($info['status'] != 0) {
|