Commit e2e928a0 by 杨树贤

修复count不存在的bug

parent 6191a5be
......@@ -24,7 +24,7 @@ class ExchangeSettingsApiController extends Controller
return $this->apiReturn(0, 'ok', [
'data' => $data['data'],
'count' => $data['count'],
'count' => array_get($data,'count',0),
]);
}
......
......@@ -27,7 +27,7 @@ class IntegralBillsApiController extends Controller
return $this->apiReturn(0, 'ok', [
'data' => $data['data'],
'count' => $data['count'],
'count' => array_get($data,'count',0),
]);
}
}
......@@ -32,7 +32,7 @@ class UserExchangesApiController extends Controller
return $this->apiReturn(0, 'ok', [
'data' => $data['data'],
'count' => $data['count'],
'count' => array_get($data,'count',0),
]);
}
......@@ -44,7 +44,7 @@ class UserExchangesApiController extends Controller
return $this->apiReturn(0, 'ok', [
'data' => $data['data'],
'count' => $data['count'],
'count' => array_get($data,'count',0),
]);
}
......
......@@ -27,7 +27,7 @@ class UserIntegralsApiController extends Controller
return $this->apiReturn(0, 'ok', [
'data' => $data['data'],
'count' => $data['count'],
'count' => array_get($data,'count',0),
]);
}
......
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