fix 空数组返回改成空对象
This commit is contained in:
parent
78d23dd376
commit
ab757ff1c9
@ -865,8 +865,8 @@ class BpsAdController
|
||||
];
|
||||
|
||||
// 如果 data 是空数组,转换为空对象
|
||||
if (is_array($data) && empty($data)) {
|
||||
$responseData['data'] = new \stdClass();
|
||||
if (is_array($data) && empty($data['data'])) {
|
||||
$responseData['data']['data'] = new \stdClass();
|
||||
}
|
||||
|
||||
// 如果有新 token,添加到 header
|
||||
|
Loading…
Reference in New Issue
Block a user