|
|
@@ -114,11 +114,11 @@ class DeviceWorkService extends Service
|
|
|
'details' => $data,
|
|
|
];
|
|
|
|
|
|
- foreach ($detail as $key => $value) {
|
|
|
- if (empty($value)) {
|
|
|
- $detail[$key] = (object)[]; // 转成 stdClass 对象
|
|
|
- }
|
|
|
- }
|
|
|
+ //foreach ($detail as $key => $value) {
|
|
|
+ // if (empty($value)) {
|
|
|
+ //$detail[$key] = (object)[]; // 转成 stdClass 对象
|
|
|
+ //}
|
|
|
+ //}
|
|
|
|
|
|
return $detail;
|
|
|
}
|
|
|
@@ -507,11 +507,11 @@ class DeviceWorkService extends Service
|
|
|
'details' => $data,
|
|
|
];
|
|
|
|
|
|
- foreach ($detail as $key => $value) {
|
|
|
- if (empty($value)) {
|
|
|
- $detail[$key] = (object)[]; // 转成 stdClass 对象
|
|
|
- }
|
|
|
- }
|
|
|
+ //foreach ($detail as $key => $value) {
|
|
|
+ // if (empty($value)) {
|
|
|
+ //$detail[$key] = (object)[]; // 转成 stdClass 对象
|
|
|
+ //}
|
|
|
+ //}
|
|
|
|
|
|
return $detail;
|
|
|
}
|