Browse Source

Wesmiler 人人车 初始化项目 0816

APPLE 3 years ago
parent
commit
15936537b6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/v1/TaxiServiceCategory.php

+ 1 - 1
application/api/controller/v1/TaxiServiceCategory.php

@@ -32,7 +32,7 @@ class TaxiServiceCategory extends ApiController
         if ($list) {
             foreach ($list as $item) {
                 $image = json_decode($item['image'], true);
-                $item->image = implode(',', $image);
+                $item->image = $image?implode(',', $image):'';
             }
         }